Learn R Programming

bio3d (version 2.3-0)

read.cif: Read mmCIF File

Description

Read a Protein Data Bank (mmCIF) coordinate file.

Usage

read.cif(file, maxlines = -1, multi = FALSE, rm.insert = FALSE, rm.alt = TRUE, verbose = TRUE)

Arguments

file
a single element character vector containing the name of the mmCIF file to be read, or the four letter PDB identifier for online file access.
maxlines
the maximum number of lines to read before giving up with large files. By default if will read up to the end of input on the connection.
multi
logical, if TRUE multiple ATOM records are read for all models in multi-model files and their coordinates returned.
rm.insert
logical, if TRUE PDB insert records are ignored.
rm.alt
logical, if TRUE PDB alternate records are ignored.
verbose
print details of the reading process.

Value

Returns a list of class "pdb" with the following components:

Details

The current version of read.cif reads only ATOM/HETATM records and creates a pdb object of the data.

See read.pdb for more info.

References

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

See Also

read.pdb atom.select, write.pdb, trim.pdb, cat.pdb, read.prmtop, as.pdb, read.dcd, read.ncdf,

Examples

Run this code
## Read a mmCIF file from the RCSB online database
# cif <- read.cif("1hel")

Run the code above in your browser using DataLab