[gmx-developers] 4-letter residue codes in PDB files

Justin MacCallum justin.maccallum at me.com
Wed Mar 10 03:14:35 CET 2010


As you may know, using the ffamber port of the Amber forcefields requires that the terminal residue codes are transformed by prepending an 'N' or a 'C' for the N- and C-Terminal residue, respectively. I.e., THR -> NTHR. The PDB routines in gromacs appear to be able to read PDB files containing these residue codes without any problems. However, they are not able to write PDBs with four-letter residue codes. Instead, the residue name is truncated to three characters, i.e, NTHR -> NTH. This can be annoying when trying to use tools such as pdb2gmx and editconf to prepare files. In particular, I am using the gromacs tools in a scripted way and the output PDB file from mdrun cannot be used as input for another simulation without hacking the PDB file to fix the termini names each time.

Attached is a simple patch that allows for four-letter residue names in PDB files. This has not been tested extensively, but appears to work.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 1578 bytes
Desc: not available
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20100309/1a4bc7b9/attachment.obj>
-------------- next part --------------


Justin MacCallum
Post Doctoral Fellow

More information about the gromacs.org_gmx-developers mailing list