Convert Atomic Indices to a Select Object

Usage

as.select(x, ...)

Arguments

x
a numeric vector containing atomic indices to be converted to a ‘select’ object. Alternatively, a logical vector can be provided.
...
arguments passed to and from functions.

Description

Convert atomic indices to a select object with ‘atom’ and ‘xyz’ components.

Details

Convert atomic indices to a select object with ‘atom’ and ‘xyz’ components.

Value

Returns a list of class "select" with the following components:
atom
a numeric matrix of atomic indices.

xyz
a numeric matrix of xyz indices.

call
the matched call.

References

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

Examples

as.select(c(1,2,3))
Call: as.select(x = c(1, 2, 3)) Atom Indices#: 3 ($atom) XYZ Indices#: 9 ($xyz) + attr: atom, xyz, call

See also

atom.select, read.pdb

Author

Lars Skjaerven