convert.pdb(pdb, type=c("original", "pdb", "charmm", "amber", "gromacs"), renumber = FALSE, first.resno = 1, first.eleno = 1, consecutive=TRUE, rm.h = TRUE, rm.wat = FALSE, verbose=TRUE)
"pdb"
, obtained from
read.pdb
. Renumber and convert between CHARMM, Amber, Gromacs and Brookhaven PDB formats.
Convert atom names and residue names, renumber atom and residue
records, strip water and hydrogen atoms from pdb
objects.
Format type
can be one of ori, pdb, charmm,
amber or gromacs.
"pdb"
, with the following components:
atom
). nrow(atom)
with TRUE values indicating a C-alpha elety. Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
For a description of PDB format (version3.3) see: http://www.wwpdb.org/documentation/format33/v3.3.html.
For both atom
and het
list components the column names can be
used as a convenient means of data access, namely:
Atom serial number eleno ,
Atom type elety,
Alternate location indicator alt,
Residue name resid,
Chain identifier chain,
Residue sequence number resno,
Code for insertion of residues insert,
Orthogonal coordinates x,
Orthogonal coordinates y,
Orthogonal coordinates z,
Occupancy o, and
Temperature factor b.
See examples for further details.
# Read a PDB file pdb <- read.pdb("4q21")Note: Accessing on-line PDB filepdbCall: read.pdb(file = "4q21") Total Models#: 1 Total Atoms#: 1447, XYZs#: 4341 Chains#: 1 (values: A) Protein Atoms#: 1340 (residues/Calpha atoms#: 168) Nucleic acid Atoms#: 0 (residues/phosphate atoms#: 0) Non-protein/nucleic Atoms#: 107 (residues: 80) Non-protein/nucleic resid values: [ GDP (1), HOH (78), MG (1) ] Protein sequence: MTEYKLVVVGAGGVGKSALTIQLIQNHFVDEYDPTIEDSYRKQVVIDGETCLLDILDTAG QEEYSAMRDQYMRTGEGFLCVFAINNTKSFEDIHQYREQIKRVKDSDDVPMVLVGNKCDL AARTVESRQAQDLARSYGIPYIETSAKTRQGVEDAFYTLVREIRQHKL + attr: atom, xyz, seqres, helix, sheet, calpha, remark, callhead( pdb$atom[pdb$calpha,"resno"] )[1] 1 2 3 4 5 6# Convert to CHARMM format new <- convert.pdb(pdb, type="amber", renumber=TRUE, first.resno=22 )Retaining 1447 non-hydrogen atoms Renumbering residues ( from 22 ) and atoms ( from 1 ) Converting to 'amber' format Non-standard residue names present ( MG GDP HOH )head( new$atom[new$calpha,"resno"] )[1] 22 23 24 25 26 27# Write a PDB file #write.pdb(new, file="tmp4amber.pdb")