autofragment.multilevel.assignment
Layer assignment algorithms for multi-level methods.
This module provides algorithms for automatically assigning atoms to computational layers based on various criteria such as distance, residue membership, or custom selectors.
Example
>>> from autofragment.multilevel.assignment import assign_by_distance
>>> coords = np.array([[0, 0, 0], [1, 0, 0], [5, 0, 0]])
>>> layers = assign_by_distance(coords, center_atoms={0}, layer_cutoffs=[3.0])
>>> layers # [{0}, {1}, {2}] - center, within 3A, beyond 3A
Functions
|
Assign atoms to layers based on atom properties. |
|
Assign atoms to layers using a custom selector function. |
|
Assign atoms to layers based on distance from center atoms. |
|
Assign atoms to QM or MM region based on element type. |
|
Assign atoms to QM or MM region based on residue name. |
|
Assign atoms to QM or MM region based on residue number. |
|
Compute minimum distance from an atom to a set of reference atoms. |
|
Expand atom selection to include complete residues. |
|
Validate that a layer assignment covers all atoms exactly once. |