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

read.crd

Read Coordinate Data from Amber or Charmm


Description

Read a CHARMM CARD (CRD) or AMBER coordinate file.

Usage

read.crd(file, ...)

Arguments

file

the name of the coordinate file to be read.

...

additional arguments passed to the methods read.crd.charmm or read.crd.amber.

Details

read.crd is a generic function calling the corresponding function determined by the class of the input argument x. Use methods("read.crd") to get all the methods for read.crd generic:

read.crd.charmm will be used for file extension ‘.crd’.

read.crd.amber will be used for file extension ‘.rst’ or ‘.inpcrd’.

See examples for each corresponding function for more details.

Value

See the ‘value’ section for the corresponding functions for more details.

Author(s)

Barry Grant and Lars Skjaerven

References

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

See Also

Examples

## Not run: 
## Read a PRMTOP file
prmtop <- read.prmtop(system.file("examples/crambin.prmtop", package="bio3d"))
print(prmtop)

## Read a Amber CRD file
crds <- read.crd(system.file("examples/crambin.inpcrd", package="bio3d"))

## Atom selection
ca.inds <- atom.select(prmtop, "calpha")

## Convert to PDB format
pdb <- as.pdb(prmtop, crds, inds=ca.inds)

## 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.