rgpycrumbs.geom.detect_fragments¶
Detects molecular fragments in coordinate files using two distinct methodologies: 1. Geometric: Utilizes scaled covalent radii. 2. Bond Order: Employs GFN2-xTB semi-empirical calculations.
The tool supports fragment merging based on centroid proximity and batch processing for high-throughput computational chemistry workflows.
Usage for a single file: uv run python detect_fragments.py geometric your_file.xyz –multiplier 1.1 uv run python detect_fragments.py bond-order your_file.xyz –threshold 0.7 –min-dist 4.0
Usage for a directory (batch mode): uv run python detect_fragments.py batch ./your_folder/ –method geometric –min-dist 3.5
Functions¶
|
Displays analysis results in a structured table. |
|
Fragment detection suite for physical chemistry simulations. |
|
Executes geometric fragment detection. |
|
Execute fragment detection using quantum mechanical bond orders. |
|
Processes directories and outputs CSV summaries. |
Module Contents¶
- rgpycrumbs.geom.detect_fragments.print_results(console: rich.console.Console, atoms: ase.atoms.Atoms, n_components: int, labels: numpy.ndarray) None[source]¶
Displays analysis results in a structured table.
Added in version 0.0.6.
- rgpycrumbs.geom.detect_fragments.main()[source]¶
Fragment detection suite for physical chemistry simulations.
- rgpycrumbs.geom.detect_fragments.geometric(filename, multiplier, radius_type, min_dist, visualize)[source]¶
Executes geometric fragment detection.