cryst1(...)
"cryst1"(abc, abg = c(90, 90, 90), sgroup = "P1", ...)
is.cryst1(x)cryst1 returns a list of class cryst1 with the following components:
is.Cryst1 returns TRUE if x is an object of class cryst1 and FALSE otherwise.
cryst1 is a generic function to create objects of class cryst1.
The purpose of this class is to store CRYST1 records from PDB files which contain the unit cell parameters
and the name of the space group of a molecular system stored in a PDB file.
The default method of the cryst1 function create an object of class cryst1 from its different components, i.e.: abc, abg and sgroup. At least abc has to be specified.is.cryst1 tests if an object of class cryst1, i.e. if it has a class attribute equal to cryst1.
cell.coords, pdb
x <- cryst1(abc = c(10, 10, 10), abg = c(90,90,90), sgroup = "P1")
is.cryst1(x)
Run the code above in your browser using DataLab