chain.pdb | R Documentation |
Find possible chain breaks based on connective Calpha or peptide bond (C-N) atom separation.
chain.pdb(pdb, ca.dist = 4, bond=TRUE, bond.dist=1.5, blank = "X", rtn.vec = TRUE)
pdb |
a PDB structure object obtained from
|
ca.dist |
the maximum distance that separates Calpha atoms considered to be in the same chain. |
bond |
logical, if TRUE inspect peptide bond (C-N) instead of Calpha-Calpha distances whenever possible. |
bond.dist |
cutoff value for C-N distance separation. |
blank |
a character to assign non-protein atoms. |
rtn.vec |
logical, if TRUE then the one-letter chain vector consisting of the 26 upper-case letters of the Roman alphabet is returned. |
This is a basic function for finding possible chain breaks in PDB
structure files, i.e. connective Calpha atoms that are further than
ca.dist
apart or peptide bond (C-N) atoms separated by at
least bond.dist
.
Prints basic chain information and if rtn.vec
is TRUE returns a
character vector of chain ids consisting of the 26 upper-case letters of the
Roman alphabet plus possible blank
entries for non-protein atoms.
Barry Grant
Grant, B.J. et al. (2006) Bioinformatics 22, 2695–2696.
read.pdb
, atom.select
, trim.pdb
,
write.pdb
# PDB server connection required - testing excluded
try({
full.pdb <- read.pdb( get.pdb("5p21", URLonly=TRUE) )
inds <- atom.select(full.pdb, resno=c(10:20,30:33))
cut.pdb <- trim.pdb(full.pdb, inds)
chain.pdb(cut.pdb)
}, silent=TRUE)
if(inherits(.Last.value, "try-error")) {
message("Need internet to run the example")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.