OENearestNbrs

class OENearestNbrs

This class represents OENearestNbrs.

Constructors

OENearestNbrs(mol: Union[OEGraphMol,OEMol,OEQMol], maxdist: float,
              method: int) -> OENearestNbrs

Creates an OENearestNbrs object for nearest neighbor search.

method

Determines the algorithm that is used to find the nearest neighbors. This value has to be from the OENearestNbrsMethod namespace.

GetNbrs

GetNbrs(coords: float) -> OENbrsIter

Returns an iterator over all atom pairs of the molecule that are closer to each other than the maxdist limit. When calculating the distances the coordinates passed as a parameter are utilized rather then the coordinates stored in the molecule of which the OENearestNbrs was initialized.

GetNbrs(mol: Union[OEGraphMol,OEMol,OEQMol]) -> OENbrsIter

Returns an iterator over all atoms that are closer to the given atom than the maxdist limit.

Returns an iterator over all atom pairs of the two molecules that are closer to each other than the maxdist limit. This function calculates intra-molecular distances.

GetNbrs(atom: OEAtomBase) -> OENbrsIter

Returns an iterator over all atoms that are closer to the given atom than the maxdist limit.

See also