PDB editing using BASH (Linux)
1
0
Entering edit mode
2.9 years ago

Hi gurus!

I need to do some modifications in a set of 20k PDB files for the same complex (solutions of Brownian dynamics) so that they are suitable for runnig some calculations in a NMR prediction program.

To do that, I'm using BASH. One of the modifications that I need consists of renumbering residues from a certain point (not all of them), because I need two chains with consecutive residue numbering. I'm trying to do it with awk, but I canĀ“t find the way to do it.

Any help?

Thanks in advance!

Renumbering awk BASH PDB • 599 views
ADD COMMENT
1
Entering edit mode
2.9 years ago
Mensur Dlakic ★ 27k

One of the programs I find useful for manipulating PDB files is pdbset, which is a part of the CCP4 package.

For example, to renumber a file 1xyz.pdb so the first residue number is 1, this is all it takes:

pdbset xyzin 1xyz.pdb xyzout 1xyz_renumbered.pdb << EOF
renumber 1
end
EOF

You could easily write a small script that would do this for many files automatically.

A simple Google search turns up bunch of other solutions.

ADD COMMENT

Login before adding your answer.

Traffic: 2385 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6