Learn R Programming

bio3d (version 2.3-3)

as.select: Convert Atomic Indices to a Select Object

Description

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

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.

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.

Details

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

References

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

See Also

atom.select, read.pdb

Examples

Run this code
# NOT RUN {
as.select(c(1,2,3))
# }

Run the code above in your browser using DataLab