conect is a generic function to create objects of class conect.
The purpose of this class is to store CONECT records from PDB files, indicating the connectivity of a molecular system.The default method creates a conect object from its different components, i.e.: eleid.1 and eleid.2.
Both arguments have to be specified.
The S3 method for object of class coords determine the connectivity from atomic coordinates. A distance matrix is computed, then, for each pair of atom the distance is compared to a bounding distance computed from atomic radii. If this distance is lower than the bounding distance then the atoms are assumed to be connected.
The S3 method for object of class pdb first use element names to search for atomic radii in the elements data set. Then atomic coordinates and radii are passed to conect.coords.
If by.block == TRUE, a grid is defined to determined the connectivity by block. The method is slow but allow to deal with very large systems.