powered by
Return a vector of the one-letter IUPAC or three-letter PDB style aminoacid codes from a given PDB object.
pdbseq(pdb, inds = NULL, aa1 = TRUE)
a PDB structure object obtained from read.pdb.
read.pdb
a list object of ATOM and XYZ indices as obtained from atom.select.
atom.select
logical, if TRUE then the one-letter IUPAC sequence is returned. IF FALSE then the three-letter PDB style sequence is returned.
A character vector of aminoacid codes.
See the examples below and the functions atom.select and aa321 for further details.
aa321
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
For a description of IUPAC one-letter codes see: http://www.chem.qmul.ac.uk/iupac/AminoAcid/
For more information on PDB residue codes see: http://ligand-expo.rcsb.org/ld-search.html
read.pdb, atom.select, aa321, read.fasta
read.fasta
# NOT RUN { pdb <- read.pdb( "5p21" ) pdbseq(pdb) #pdbseq(pdb, inds=atom.select(pdb, resno=5:15, elety="CA"), aa1=FALSE) # }
Run the code above in your browser using DataLab