atom2xyz {bio3d}R Documentation

Convert Between Atom and xyz Indices

Description

Basic function to return the Calpha xyz indices given their corresponding Calpha only atom indices.

Usage

atom2xyz(num)

Arguments

num a numeric vector of atom indices.

Value

A numeric vector of xyz indices.

Author(s)

Barry Grant

References

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

See Also

atom.select, read.pdb

Examples

xyz.ind <- atom2xyz(c(1,10,15))

## For xyz2atom:
unique( ceiling(xyz.ind/3) )

[Package bio3d version 1.0-5 Index]