is.select.Rd
Checks whether its argument is an object of class ‘select’.
is.select(x)
x | an R object to be tested. |
---|
Tests if x is an object of class ‘select’, i.e. if x has a “class” attribute equal to select
.
TRUE if x is an object of class ‘select’ and FALSE otherwise
Julien Ide
# Read a PDB file pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") ) # Print structure summary atom.select(pdb)#> #> Call: atom.select.pdb(pdb = pdb) #> #> Atom Indices#: 1001 ($atom) #> XYZ Indices#: 3003 ($xyz) #> #> + attr: atom, xyz, call# Select all C-alpha atoms with residues numbers between 43 and 54 ca.inds <- atom.select(pdb, "calpha", resno=43:54) is.select(ca.inds)#> [1] TRUE