atoms(...)## S3 method for class 'default':
atoms(recname, eleid, elename, alt, resname, chainid,
resid, insert, x1, x2, x3, occ, temp, segid, basis = "xyz", ...)
is.atoms(x)
atoms returns a data.frame of class is.atoms returns TRUE if x is an object of class atoms is a generic function to create objects of class atoms object from its different components, i.e.:
recname, eleid, elename, alt, resname,
chainid, resid, insert, x1, x2, x3,
occ, temp, segid and basis.
All the arguments have to be specified except basis
which by default is set to "xyz" (Cartesian coordinates).is.atoms tests if an object of class atoms.
basis, coords, pdbx <- atoms(recname = c("ATOM","ATOM"), eleid = 1:2, elename = c("H","H"), alt = "",
resname = c("H2","H2"), chainid = "", resid = c(1,1), insert = "",
x1 = c(0,0), x2 = c(0,0), x3 = c(0,1), occ = c(0.0,0.0), temp = c(1.0,1.0),
segid = c("H2","H2"))
print(x)
is.atoms(x)Run the code above in your browser using DataLab