Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cat.pdb

Concatenate Multiple PDB Objects


Description

Produce a new concatenated PDB object from two or more smaller PDB objects.

Usage

cat.pdb(..., renumber=FALSE, rechain=TRUE)

Arguments

...

two or more PDB structure objects obtained from read.pdb.

renumber

logical, if ‘TRUE’ residues will be renumbered.

rechain

logical, if ‘TRUE’ molecules will be assigned new chain identifiers.

Details

This is a basic utility function for creating a concatenated PDB object based on multipe smaller PDB objects.

Value

Returns an object of class "pdb". See read.pdb for further details.

Author(s)

Lars Skjaerven

References

Grant, B.J. et al. (2006) Bioinformatics 22, 2695–2696.

See Also

Examples

## Not run: 
## Read a PDB file from the RCSB online database
pdb1 <- read.pdb("1etl")
pdb2 <- read.pdb("1hel")

## Concat
new.pdb <- cat.pdb(pdb1, pdb2, pdb1, rechain=TRUE, renumber=TRUE)

## Write to file
write.pdb(new.pdb, file="concat.pdb")

## End(Not run)

bio3d

Biological Structure Analysis

v2.4-2
GPL (>= 2)
Authors
Barry Grant [aut, cre], Xin-Qiu Yao [aut], Lars Skjaerven [aut], Julien Ide [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.