"trim"(mol, ..., inds = NULL)
read.mol2
. atom.select
. If
inds
is also provided, these arguments will be ignored. atom.select
. If NULL, atom selection will be obtained
from calling atom.select(mol, ...)
. Produce a new smaller MOL2 object, containing a subset of atoms, from a given larger MOL2 object.
This is a basic utility function for creating a new MOL2 object based on a selection of atoms.
"mol2"
.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
## Read a MOL2 file from those included with the package mol <- read.mol2( system.file("examples/aspirin.mol2", package="bio3d")) ## Trim away H-atoms mol <- trim(mol, "noh")Summary of PDB generation: .. number of atoms in PDB determined by 'xyz' .. 0 atom(s) from 'string' selection .. 0 atom(s) in final combined selection .. number of atoms in PDB: 20 .. number of calphas in PDB: 0 .. number of residues in PDB: 1