contact_map.MinimumDistanceCounter¶
-
class
contact_map.MinimumDistanceCounter(trajectory, query, haystack)[source]¶ Count how often each atom pair is the minimum distance.
- Parameters
-
topology¶ the topology object associated with the class
- Type
mdtraj.Topology
-
atom_pairs¶ list of 2-tuples representing atom index pairs to use when looking for the minimum distance
- Type
-
minimum_distances¶ the minimum distance between query group and haystack group at each frame of the trajectory
- Type
-
__init__(trajectory, query, haystack)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(trajectory, query, haystack)Initialize self.
Attributes
atom_countcollections.Counter: map from atom pair to the number of times that pair is the minimum distanceatom_historylist of 2-tuples: list of atom pairs when represent the minimum distance at each frame of the trajectory
residue_countcollections.Counter: map from residue pair to the number of times that pair is the minimum distanceresidue_historylist of 2-tuples: list of residue pairs when represent the minimum distance at each frame of the trajectory