11.2.3. Neighbor Search wrapper for MDAnalysis — MDAnalysis.lib.NeighborSearch
¶
This module contains classes that allow neighbor searches directly with AtomGroup objects from MDAnalysis.
-
class
MDAnalysis.lib.NeighborSearch.
AtomNeighborSearch
(atom_group, bucket_size=10)[source]¶ This class can be used to find all atoms/residues/segements within the radius of a given query position.
This class is using the BioPython KDTree for the neighborsearch. This class also does not apply PBC to the distance calculattions. So you have to ensure yourself that the trajectory has been corrected for PBC artifacts.
Parameters: -
search
(atoms, radius, level=’A’)[source]¶ Return all atoms/residues/segments that are within radius of the atoms in atoms.
Parameters: - atoms (AtomGroup, MDAnalysis.core.groups.Atom) – list of atoms
- radius (float) – Radius for search in Angstrom.
- level (str) – char (A, R, S). Return atoms(A), residues(R) or segments(S) within radius of atoms.
-