cmds#
CLI command implementations. With run_multiple=True nothing is printed.
- irmsd.interfaces.cmds.Presorted_sort_structures_and_print(molecule_list: Sequence[Molecule], rthr: float, iinversion: int = 0, allcanon: bool = True, printlvl: int = 0, ethr: float | None = None, ewin: float | None = None, outfile: str | None = None) List[Molecule][source]#
Run the iRMSD sorter on one presorted group; return the first structure of each resulting group.
Parameters as in
sort_structures_and_print(), exceptiinversionis already mapped to 0/1/2 (auto/on/off).outfileis unused.
- irmsd.interfaces.cmds._summarize_operations(symbol: str, ops) str[source]#
Class-style summary, e.g. “E, 8 C3, 3 C2, 6 S4, 6 sigma” for Td. Counted per element type and power, not conjugacy class: D4h gives “5 C2”.
- irmsd.interfaces.cmds.compute_axis_and_print(molecule_list: Sequence[Molecule], run_multiple: bool = False) List[dict][source]#
Compute and print rotational constants and principal axes.
- Returns:
Per structure, “Rotational constants (MHz)” (3,) and “Rotation matrix” (3, 3).
- Return type:
list[dict]
- irmsd.interfaces.cmds.compute_canonical_and_print(molecule_list: Sequence[Molecule], heavy: bool = False, run_multiple: bool = False) List[ndarray][source]#
Compute and print canonical atom ranks (heavy atoms only if
heavy); one integer array per structure.
- irmsd.interfaces.cmds.compute_cn_and_print(molecule_list: Sequence[Molecule], run_multiple: bool = False) List[ndarray][source]#
Compute and print coordination numbers; one integer array per structure.
- irmsd.interfaces.cmds.compute_irmsd_and_print(molecule_list: Sequence[Molecule], inversion=None, outfile=None, idx_ref=0, idx_align=1) None[source]#
Align one pair and print the iRMSD (Angstrom).
- Parameters:
inversion (
{"auto", "on", "off"}) – Inversion handling in the iRMSD routine.outfile (
strorNone) – Write the aligned pair to<stem>_refand<stem>_alignedinstead of printing it.idx_ref (
int) – Reference and probe indices inmolecule_list.idx_align (
int) – Reference and probe indices inmolecule_list.
- irmsd.interfaces.cmds.compute_quaternion_rmsd_and_print(molecule_list: Sequence[Molecule], heavy=False, outfile=None, idx_ref=0, idx_align=1) None[source]#
Align one pair and print the Cartesian RMSD (Angstrom) and U matrix.
- irmsd.interfaces.cmds.compute_symmetry_and_print(molecule_list: Sequence[Molecule], run_multiple: bool = False, **settings) List[dict][source]#
Determine and print the Schoenflies point group and operations.
- Parameters:
**settings – threshold, primary_threshold, max_axis_order, max_opt_cycles, max_atoms; see
irmsd.get_point_group().- Returns:
Per structure, the printed “Point group” and “Symmetry operations” strings and the
irmsd.SymmetryOperationlist under “operations”. Structures skipped for size carry only a “skipped” point group.- Return type:
list[dict]
- irmsd.interfaces.cmds.get_ref_and_align_molecules(molecule_list: Sequence[Molecule], idx_ref: int, idx_align: int) Tuple[Molecule, Molecule][source]#
Select and print the reference/probe pair; raise on bad indices.
- irmsd.interfaces.cmds.run_cregen_and_print(molecule_list: Sequence[Molecule], rthr: float, ethr: float, bthr: float, ewin: float | None = None, printlvl: int = 0, maxprint: int = 25, outfile: str | None = None) None[source]#
Run CREGEN per sum-formula group and print a summary per group.
- Parameters:
rthr (
float) – RMSD, energy, and rotational-constant thresholds for conformer identification.ethr (
float) – RMSD, energy, and rotational-constant thresholds for conformer identification.bthr (
float) – RMSD, energy, and rotational-constant thresholds for conformer identification.maxprint (
int) – Max rows per printed result table.outfile (
strorNone) – Write the representatives here; with several formulas, one<root>_<formula><ext>file each.
- irmsd.interfaces.cmds.sort_get_delta_irmsd_and_print(molecule_list: Sequence[Molecule], inversion: str = None, allcanon: bool = True, printlvl: int = 0, maxprint: int = 25, outfile: str | None = None) None[source]#
Split by sum formula, energy-sort, and print the iRMSD between consecutive structures of each group.
- irmsd.interfaces.cmds.sort_structures_and_print(molecule_list: Sequence[Molecule], rthr: float, inversion: str = None, allcanon: bool = True, printlvl: int = 0, maxprint: int = 25, ethr: float | None = None, ewin: float | None = None, outfile: str | None = None) None[source]#
Split by sum formula, energy-sort, prune each group with the iRMSD sorter, and print a summary per group.
- Parameters:
rthr (
float) – Distance threshold for the sorter.inversion (
{"auto", "on", "off"})maxprint (
int) – Max rows per printed result table.ethr (
floatorNone) – Inter-conformer energy threshold for presorting.ewin (
floatorNone) – Energy window around the lowest-energy structure.outfile (
strorNone) – Write the representatives here; with several formulas, one<root>_<formula><ext>file each.