atoms(...)## S3 method for class 'default':
atoms(recname, eleid, elename, alt, resname, chainid,
resid, insert, x1, x2, x3, occ, temp, segid, basis = "xyz", ...)
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).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)
class(x)Run the code above in your browser using DataLab