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

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.

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.

Author

Lars Skjaerven

See also

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