Changes
From CCP4 wiki
Jump to navigation
Jump to search
← Older edit
Newer edit →
Split NMR-style multiple model pdb files into individual models
(edit)
Revision as of 21:45, 4 January 2011
11 bytes added
,
21:45, 4 January 2011
→Bash/awk one-liner
Line 9:
Line 9:
grep -n 'MODEL\|ENDMDL' models.pdb | cut -d: -f 1 | \
grep -n 'MODEL\|ENDMDL' models.pdb | cut -d: -f 1 | \
−
awk '{if(NR%2) printf "sed -n %d,",$1+1; else printf "%dp > model_%03d.pdb\n", $1-1,NR/2;}' | bash -sf
+
awk '{if(NR%2) printf "sed -n %d,",$1+1; else printf "%dp
models.pdb
> model_%03d.pdb\n", $1-1,NR/2;}' | bash -sf
== Bash script ==
== Bash script ==
Pozharski
67
edits
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK
Navigation menu
Page actions
Page
Discussion
Edit
Edit source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
Not logged in
Talk
Contributions
Log in
Request account
Topics
Proteins
Crystals
Crystallography
Bioinformatics
Computers
FAQ and Links
Events
Conferences
Positions
Navigation
Main Page
Recent changes
Help
Tools
Special pages
Printable version
Search