API Reference¶
- cosmolkit.bio_from_mmcif(text) BioStructure¶
Parse mmCIF text into a BioStructure using the native structural reader, retaining supported hierarchy, coordinates and metadata.
- cosmolkit.bio_from_pdb(text: str, *, max_line_length: SupportsIndex | None = None, check_non_ascii: bool | None = None, ignore_ter: bool | None = None, split_chain_on_ter: bool | None = None, skip_remarks: bool | None = None) BioStructure¶
- cosmolkit.bio_from_pdb(text: str, params: BioPdbReadParams | None = None) BioStructure
Parse PDB text into a BioStructure, retaining hierarchy, coordinates and supported structural metadata under the selected reader options.
- cosmolkit.canonical_tautomer_from_molecules(molecules, params=None) Molecule¶
Select the canonical tautomer from supplied molecular candidates using the native scoring policy.
- cosmolkit.canonical_tautomer_from_molecules_with_params(molecules, params) Molecule¶
Select the canonical tautomer from supplied candidates using the explicit native scoring parameters.
- cosmolkit.compile_query(query) CompiledQuery¶
Compile a QueryGraph into a reusable native query; invalid query state produces a structured error.
- cosmolkit.default_tautomer_score_terms() list[TautomerScoreTerm]¶
Return independent values for the canonical default tautomer-scoring terms.
- cosmolkit.element_info(element) ElementInfo¶
Return periodic-table metadata for the supplied Element from the canonical native table.
- cosmolkit.expand_one_letter(code, kind) str | None¶
Expand a one-letter residue code in the selected residue category; return None when the native table has no expansion.
- cosmolkit.expand_one_letter_sequence(sequence, kind) list[str]¶
Expand one-letter sequence codes using the selected residue category and native sequence expansion rules.
- cosmolkit.explain_path_score(score, size=4) list[tuple[str, int, int]]¶
Decode a topological-torsion path score into the canonical atom-code components for the specified path size.
- cosmolkit.feature_spec(name) FeatureSpec | None¶
Look up a public feature declaration by its exact name; return None for an unknown feature.
- cosmolkit.feature_specs() FeatureSpecIter¶
Iterate the canonical public feature declarations compiled into this library.
- cosmolkit.find_residue_info(name) ResidueInfo¶
Look up canonical residue information by name, returning the native unknown-residue entry when unrecognized.
- cosmolkit.find_residue_info_index(name) int¶
Look up a residue name in the canonical table, preserving the native unknown-name sentinel.
- cosmolkit.fingerprint_layered_query_with_output_with_params(query, params) LayeredFingerprintResult¶
Calculate a QueryGraph layered fingerprint with native additional output.
- cosmolkit.fingerprint_layered_query_with_params(query, params) Fingerprint¶
Calculate a layered path fingerprint for a QueryGraph using explicit LayeredFingerprintParams.
- cosmolkit.fingerprint_pattern_query(query: QueryGraph, *, n_bits: SupportsIndex | None = None, tautomeric: bool | None = None) Fingerprint¶
- cosmolkit.fingerprint_pattern_query(query: QueryGraph, params: PatternFingerprintParams | None = None) Fingerprint
Calculate the native pattern fingerprint for a QueryGraph with the selected bit width and query options.
- cosmolkit.fingerprint_pattern_query_with_params(query, params) Fingerprint¶
Calculate a QueryGraph pattern fingerprint with explicit PatternFingerprintParams.
- cosmolkit.fingerprint_topological_query_with_output_with_params(query, params, request) TopologicalFingerprintResult¶
Calculate a QueryGraph topological fingerprint together with the requested atom/bit provenance.
- cosmolkit.fingerprint_topological_query_with_params(query, params) Fingerprint¶
Calculate a path-based topological fingerprint for a QueryGraph using explicit parameters.
- cosmolkit.inchi_to_key(inchi) str¶
Convert an InChI string to its InChIKey; invalid input retains the native structured error.
- cosmolkit.maximum_common_substructure(inputs: _typeshed.SupportsGetItem[int, Molecule], *, store_all: bool | None = None, maximize_bonds: bool | None = None, threshold: SupportsFloat | SupportsIndex | None = None, timeout: SupportsIndex | None = None, verbose: bool | None = None, atom_compare_parameters: McsAtomCompareParameters | None = None, bond_compare_parameters: McsBondCompareParameters | None = None, atom_comparator: McsAtomComparator | str | None = None, bond_comparator: McsBondComparator | str | None = None, initial_seed: str | None = None) McsResult¶
- cosmolkit.maximum_common_substructure(inputs: _typeshed.SupportsGetItem[int, Molecule], params: McsParameters | None = None) McsResult
Search for the maximum common substructure of the supplied molecules using the selected matching, timeout and callback policy.
- cosmolkit.maximum_common_substructure_with_params(inputs, params) McsResult¶
Search for the maximum common substructure with explicit McsParameters, retaining native completion status and diagnostics.
- cosmolkit.mol_from_binary(data) Molecule¶
Decode COSMolKit molecular archive bytes through the canonical binary reader.
- cosmolkit.mol_from_inchi(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None) Molecule¶
- cosmolkit.mol_from_inchi(text: str, params: InchiReadParams | None = None) Molecule
Parse an InChI string into a molecular value with the selected sanitization and hydrogen-removal policy.
- cosmolkit.mol_from_mmcif(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, flavor: PdbReadFlags | None = None, proximity_bonding: bool | None = None) Molecule¶
- cosmolkit.mol_from_mmcif(text: str, params: BioMoleculeParams | None = None) Molecule
Parse mmCIF text into a molecular value using the selected structural and chemical conversion policy. This accepts content, not a path.
- cosmolkit.mol_from_mol(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, strict_parsing: bool | None = None, expand_attachment_points: bool | None = None, process_property_lists: bool | None = None, coordinate_mode: SdfCoordinateMode | str | None = None) Molecule¶
- cosmolkit.mol_from_mol(text: str, params: SdfReadParams | None = None) Molecule
Parse an MDL MolBlock into a molecular value using SdfReadParams or keyword options, not both.
- cosmolkit.mol_from_mol2(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, variant: Mol2Type | str | None = None, cleanup_substructures: bool | None = None) Molecule¶
- cosmolkit.mol_from_mol2(text: str, params: Mol2ReadParams | None = None) Molecule
Parse Tripos MOL2 text into a molecular value with the selected reader parameters.
- cosmolkit.mol_from_pdb(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, flavor: PdbReadFlags | None = None, proximity_bonding: bool | None = None) Molecule¶
- cosmolkit.mol_from_pdb(text: str, params: BioMoleculeParams | None = None) Molecule
Parse PDB text into a molecular value using the selected model, connectivity and sanitization policy. This accepts file content, not a path.
- cosmolkit.mol_from_rdkit(rdmol, sanitize=None) Molecule¶
Import an RDKit molecule through the native adapter, preserving the selected sanitization policy.
- cosmolkit.mol_from_sdf(input: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, strict_parsing: bool | None = None, expand_attachment_points: bool | None = None, process_property_lists: bool | None = None, coordinate_mode: SdfCoordinateMode | str | None = None) Molecule¶
- cosmolkit.mol_from_sdf(input: str, params: SdfReadParams | None = None) Molecule
Parse SDF text into a molecular value using SdfReadParams or keyword options, not both.
- cosmolkit.mol_from_smiles(text: str, *, sanitize: bool | None = None, allow_cxsmiles: bool | None = None, strict_cxsmiles: bool | None = None, parse_name: bool | None = None, remove_hs: bool | None = None, skip_cleanup: bool | None = None, debug_parse: bool | None = None, replacements: dict[str, str] | None = None) Molecule¶
- cosmolkit.mol_from_smiles(text: str, params: SmilesParseParams | None = None) Molecule
Parse SMILES into a new Molecule. Supply SmilesParseParams or keyword options, not both; the native parsing and sanitization defaults are preserved.
- cosmolkit.mol_from_xyz_block(text) Molecule¶
Parse XYZ text into a molecular value with atom identities and coordinates; XYZ does not encode chemical bonds.
- cosmolkit.mols_from_records(records, errors=None) MoleculeBatch¶
Construct an ordered MoleculeBatch from the supplied native batch records, preserving missing records and their errors.
- cosmolkit.mols_from_sdf_records(text: str, *, errors: BatchErrorMode | str | None = None, n_jobs: SupportsIndex | None = None, progress_bar: bool | None = None, sanitize: bool | None = None, remove_hs: bool | None = None, strict_parsing: bool | None = None, expand_attachment_points: bool | None = None, process_property_lists: bool | None = None, coordinate_mode: SdfCoordinateMode | str | None = None) MoleculeBatch¶
- cosmolkit.mols_from_sdf_records(text: str, read: SdfReadParams | None = None, *, errors: BatchErrorMode | str | None = None, n_jobs: SupportsIndex | None = None, progress_bar: bool | None = None) MoleculeBatch
Convert SDF records into an ordered MoleculeBatch using the selected native record-conversion policy.
- cosmolkit.mols_from_smiles_list(smiles: _typeshed.SupportsGetItem[int, str], *, params: BatchParams | None = None, errors: BatchErrorMode | str | None = None, n_jobs: SupportsIndex | None = None, progress_bar: bool | None = None, sanitize: bool | None = None, allow_cxsmiles: bool | None = None, strict_cxsmiles: bool | None = None, parse_name: bool | None = None, remove_hs: bool | None = None, skip_cleanup: bool | None = None, debug_parse: bool | None = None, replacements: dict[str, str] | None = None) MoleculeBatch¶
- cosmolkit.mols_from_smiles_list(smiles: _typeshed.SupportsGetItem[int, str], parse: SmilesParseParams | None = None, params: BatchParams | None = None, *, errors: BatchErrorMode | str | None = None, n_jobs: SupportsIndex | None = None, progress_bar: bool | None = None) MoleculeBatch
Parse SMILES strings into an ordered MoleculeBatch. Parsing failures follow the selected errors policy; n_jobs controls native parallel work.
- cosmolkit.operation_invariant(method) OperationInvariantEntry | None¶
Look up invariant requirements for an exact operation method name, or None when unregistered.
- cosmolkit.operation_invariant_matrix() list[OperationInvariantEntry]¶
Return declared operation invariant requirements, generated from canonical operation declarations.
- cosmolkit.operation_parity(method) ParityMatrixEntry | None¶
Look up declared parity metadata for an exact operation method name, or None when unregistered.
- cosmolkit.operation_spec(method) MoleculeOpSpec | None¶
Look up the operation specification for an exact method name, or None if it is unregistered.
- cosmolkit.operation_specs() list[MoleculeOpSpec]¶
Return the molecule-operation specifications generated from the canonical operation declarations.
- cosmolkit.parity_matrix() list[ParityMatrixEntry]¶
Return declared operation parity metadata; this is not a report of a newly executed comparison.
- cosmolkit.parse_smarts(text: str, *, allow_cxsmiles: bool | None = None, strict_cxsmiles: bool | None = None, parse_name: bool | None = None, merge_hs: bool | None = None, skip_cleanup: bool | None = None, debug_parse: bool | None = None, replacements: dict[str, str] | None = None) QueryGraph¶
- cosmolkit.parse_smarts(text: str, params: SmartsParseParams | None = None) QueryGraph
Parse SMARTS into a QueryGraph. Supply SmartsParseParams or keyword options, not both; syntax failures retain structured diagnostics.
- cosmolkit.parse_smarts_with_params(text, params) QueryGraph¶
Parse SMARTS into a QueryGraph with explicit SmartsParseParams.
- cosmolkit.parse_smirks(text: str, *, use_smiles: bool | None = None, sanitize: bool | None = None, replacements: dict[str, str] | None = None, allow_cxsmiles: bool | None = None, strict_cxsmiles: bool | None = None) Reaction¶
- cosmolkit.parse_smirks(text: str, params: ReactionParseParams | None = None) Reaction
Parse reaction SMIRKS into a Reaction using the selected native parsing parameters.
- cosmolkit.parse_smirks_with_params(text, params) Reaction¶
Parse reaction SMIRKS into a Reaction with explicit ReactionParseParams.
- cosmolkit.property_value_to_text(value) str¶
Convert a typed PropertyValue to text using the canonical native conversion; conversion errors propagate.
- cosmolkit.protein_from_mmcif(text) Protein¶
Parse mmCIF text and construct the canonical Protein projection.
- cosmolkit.protein_from_pdb(text: str, *, max_line_length: SupportsIndex | None = None, check_non_ascii: bool | None = None, ignore_ter: bool | None = None, split_chain_on_ter: bool | None = None, skip_remarks: bool | None = None) Protein¶
- cosmolkit.protein_from_pdb(text: str, params: BioPdbReadParams | None = None) Protein
Parse PDB text and construct the canonical Protein projection under the supplied reader parameters.
- cosmolkit.reaction_from_smirks(text: str, *, use_smiles: bool | None = None, sanitize: bool | None = None, replacements: dict[str, str] | None = None, allow_cxsmiles: bool | None = None, strict_cxsmiles: bool | None = None) Reaction¶
- cosmolkit.reaction_from_smirks(text: str, params: ReactionParseParams | None = None) Reaction
Construct a Reaction from SMIRKS using the same canonical parser as parse_smirks.
- cosmolkit.residue_code(name) ResidueCode¶
Convert a residue name to the canonical ResidueCode, preserving the native unknown-name value.
- cosmolkit.residue_info(index) ResidueInfo¶
Return residue-table information at the given index; invalid indices raise IndexError.
- cosmolkit.residue_info_checked(index) ResidueInfo | None¶
Return residue-table information at the given index, or None when out of bounds.
- cosmolkit.support_matrix() list[SupportMatrixEntry]¶
Return the declared language/feature support matrix generated from canonical operations; registration alone is not a parity result.
- cosmolkit.version() str¶
Return the COSMolKit package version compiled into this extension.
- cosmolkit.write_cx_smarts(query: QueryGraph, *, include_atom_maps: bool | None = None, isomeric_smiles: bool | None = None, include_dative_bonds: bool | None = None, rooted_at_atom: SupportsIndex | None = None) str¶
- cosmolkit.write_cx_smarts(query: QueryGraph, params: SmartsWriteParams | None = None) str
Serialize a QueryGraph as SMARTS with the selected CX extensions; returns text.
- cosmolkit.write_smarts(query: QueryGraph, *, include_atom_maps: bool | None = None, isomeric_smiles: bool | None = None, include_dative_bonds: bool | None = None, rooted_at_atom: SupportsIndex | None = None) str¶
- cosmolkit.write_smarts(query: QueryGraph, params: SmartsWriteParams | None = None) str
Serialize a QueryGraph as SMARTS using the selected writer parameters; returns text.
- class cosmolkit.Molecule¶
Molecular graph, properties and independently selected 2D/3D coordinates. Value-returning operations leave their source unchanged; methods ending in an underscore modify this value in place. copy() initially shares molecular storage, with changes isolated by copy-on-write.
Members (434)
- add_2d_coordinates_(*, coordinate_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, canonical_orientation: bool | None = None, clear_existing_2d: bool | None = None, flips_per_sample: SupportsIndex | None = None, samples: SupportsIndex | None = None, sample_seed: SupportsIndex | None = None, permute_degree_four: bool | None = None, force_rdkit: bool | None = None, use_ring_templates: bool | None = None, use_path_angle_expansion: bool | None = None) None¶
- add_2d_coordinates_(params: Coordinate2DParams | None = None) None
Generate and install a 2D depiction layout in place. Supply Coordinate2DParams or keyword layout options, not both.
- add_2d_coordinates_with_params_(params) None¶
Generate and install a 2D depiction layout in place using Coordinate2DParams.
- add_3d_conformer_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], *, is_3d: bool | None = None) int¶
- add_3d_conformer_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], params: Coordinate3DInputParams | None = None) int
Add a 3D conformer from supplied coordinates in place; existing conformers are retained.
- add_3d_conformer_with_params_(coordinates, params) int¶
Add a 3D conformer from supplied coordinates in place; existing conformers are retained. Uses the explicit configuration argument.
- add_hydrogens_(*, explicit_only: bool | None = None, add_coords: bool | None = None, add_residue_info: bool | None = None, skip_queries: bool | None = None, only_on_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) None¶
- add_hydrogens_(params: AddHsParams | None = None) None
In place, add explicit hydrogen atoms using AddHsParams or keyword options. Copy-on-write isolates molecular values sharing the original storage. Returns None; use with_hydrogens to obtain a new molecule instead.
- add_hydrogens_with_params_(params) None¶
Add hydrogen atoms in place using AddHsParams and copy-on-write isolation from other molecule values.
- align_conformers_(*, atom_indices: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, conformer_ids: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, reflect: bool | None = None, max_iterations: SupportsIndex | None = None) ConformerAlignmentReport¶
- align_conformers_(params: ConformerAlignmentParameters | None = None) ConformerAlignmentReport
Align the stored conformers in place according to the supplied parameters.
- align_conformers_with_params_(params) ConformerAlignmentReport¶
Align this molecule’s conformers in place using explicit alignment parameters.
- align_to_(reference: Molecule, *, probe_conformer_id: SupportsIndex | None = None, reference_conformer_id: SupportsIndex | None = None, atom_map: _typeshed.SupportsGetItem[int, AlignmentAtomMap] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, reflect: bool | None = None, max_iterations: SupportsIndex | None = None) AlignmentResult¶
- align_to_(reference: Molecule, params: AlignmentParameters | None = None) AlignmentResult
Align this molecule to the reference coordinates in place; COW isolates other molecular values.
- align_to_with_params_(reference, params) AlignmentResult¶
Align this molecule’s selected conformer to a reference in place using explicit alignment parameters.
- alignment_transform_to(reference: Molecule, *, probe_conformer_id: SupportsIndex | None = None, reference_conformer_id: SupportsIndex | None = None, atom_map: _typeshed.SupportsGetItem[int, AlignmentAtomMap] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, reflect: bool | None = None, max_iterations: SupportsIndex | None = None) AlignmentResult¶
- alignment_transform_to(reference: Molecule, params: AlignmentParameters | None = None) AlignmentResult
Calculate a coordinate alignment transform to a reference without applying it. Parameters select conformers, atom correspondences, weights and reflection.
- alignment_transform_to_with_params(reference, params) AlignmentResult¶
Calculate a coordinate alignment transform to a reference without applying it. Parameters select conformers, atom correspondences, weights and reflection. This entry accepts the explicit native parameter form.
- all_conformer_best_rmsds(*, atom_maps: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, AlignmentAtomMap]] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, max_matches: SupportsIndex | None = None, symmetrize_conjugated_terminal_groups: bool | None = None, ignore_hydrogens: bool | None = None, num_threads: SupportsIndex | None = None) list[ConformerRmsd]¶
- all_conformer_best_rmsds(params: AllConformerRmsdParameters | None = None) list[ConformerRmsd]
Calculate symmetry-aware best RMSDs between this molecule’s conformers using the selected matching and alignment parameters.
- all_conformer_best_rmsds_with_params(params) list[ConformerRmsd]¶
Calculate symmetry-aware best RMSDs between this molecule’s conformers using the selected matching and alignment parameters. This entry accepts the explicit native parameter form.
- apply_reaction(reaction: Reaction, *, remove_unmatched_atoms: bool | None = None) ReactionApplyResult¶
- apply_reaction(reaction: Reaction, params: ReactionApplyParams | None = None) ReactionApplyResult
Return the native single-reactant application result as a new molecular value, leaving this molecule unchanged.
- apply_reaction_(reaction: Reaction, *, remove_unmatched_atoms: bool | None = None) bool¶
- apply_reaction_(reaction: Reaction, params: ReactionApplyParams | None = None) bool
Apply a single-reactant reaction in place and return whether it changed the molecule. COW isolates other molecular values.
- apply_reaction_with_params(reaction, params) ReactionApplyResult¶
Return the native single-reactant application result as a new molecular value, leaving this molecule unchanged. Uses the explicit configuration argument.
- apply_reaction_with_params_(reaction, params) bool¶
Apply a single-reactant reaction in place and return whether it changed the molecule. COW isolates other molecular values. Uses the explicit configuration argument.
- assign_aromaticity_(*, model: AromaticityModel | str | None = None) None¶
- assign_aromaticity_(params: AromaticityParams | None = None) None
Assign aromaticity in place using the selected aromaticity model.
- assign_aromaticity_with_params_(params) None¶
Assign aromaticity in place using the selected aromaticity model. Uses the explicit configuration argument.
- assign_chiral_tags_from_structure_(*, conformer_id: SupportsIndex | None = None, replace_existing_tags: bool | None = None) None¶
- assign_chiral_tags_from_structure_(params: StructureTagParams | None = None) None
Assign chiral tags in place from the selected coordinate structure.
- assign_chiral_tags_from_structure_with_params_(params) None¶
Assign chiral tags in place from the selected coordinate structure. Uses the explicit configuration argument.
- assign_cip_labels_(*, atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, bonds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, max_recursive_iterations: SupportsIndex | None = None) None¶
- assign_cip_labels_(options: CipLabelOptions | None = None) None
Assign CIP labels in place under the selected complete or partial assignment options.
- assign_cip_labels_with_options_(options) None¶
Assign CIP labels in place under the selected complete or partial assignment options. Uses the explicit configuration argument.
- assign_radicals_() None¶
Assign radical-electron counts in place using the native radical assignment.
- assign_ring_families_(*, include_dative_bonds: bool | None = None, include_hydrogen_bonds: bool | None = None) None¶
- assign_ring_families_(params: RingSearchParams | None = None) None
Calculate and install ring families in place using the selected ring-search policy.
- assign_ring_families_with_params_(params) None¶
Calculate and install ring families in place using the selected ring-search policy. Uses the explicit configuration argument.
- assign_rings_() None¶
Calculate and install ordinary ring information in place.
- assign_valence_(*, model: ValenceModel | str | None = None, strict: bool | None = None) None¶
- assign_valence_(params: ValenceParams | None = None) None
Assign valence information in place under the selected valence model and strictness.
- assign_valence_with_params_(params) None¶
Assign valence information in place under the selected valence model and strictness. Uses the explicit configuration argument.
- atom(atom_id) MoleculeAtom | None¶
Return the atom at a zero-based index, or None when the index is absent. The returned atom retains this molecular version; later edits to the source molecule do not change its topology or contextual properties.
- atom_metadata(recalculate=True) list[AtomMetadata]¶
Return per-atom degree, valence and hydrogen information in atom-index order. recalculate explicitly requests rebuilding the required information.
- atom_property_bool(atom, key) bool | None¶
Read the atom’s boolean property. A missing key returns None; an incompatible stored type or invalid atom index raises a structured error.
- atom_property_double(atom, key) float | None¶
Read the atom’s 64-bit floating-point property. A missing key returns None; an incompatible stored type or invalid atom index raises a structured error.
- atom_property_int(atom, key) int | None¶
Read the atom’s signed 32-bit integer property. A missing key returns None; an incompatible stored type or invalid atom index raises a structured error.
- atom_property_int_vector(atom, key) list[int] | None¶
Read the atom’s signed-integer vector property. A missing key returns None; an incompatible stored type or invalid atom index raises a structured error.
- atom_property_string(atom, key) str | None¶
Read the atom’s text property. A missing key returns None; an incompatible stored type or invalid atom index raises a structured error.
- atom_property_string_vector(atom, key) list[str] | None¶
Read the atom’s text-vector property. A missing key returns None; an incompatible stored type or invalid atom index raises a structured error.
- atom_property_uint(atom, key) int | None¶
Read the atom’s unsigned 32-bit integer property. A missing key returns None; an incompatible stored type or invalid atom index raises a structured error.
- atomic_numbers() list[int]¶
Return an independent list of atomic numbers in atom-index order, without creating atom handles. Dummy atoms are zero.
- atoms: list[MoleculeAtom]¶
Atoms in index order, each retaining this molecular version for contextual reads.
- best_alignment_to(reference: Molecule, *, probe_conformer_id: SupportsIndex | None = None, reference_conformer_id: SupportsIndex | None = None, atom_maps: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, AlignmentAtomMap]] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, reflect: bool | None = None, max_iterations: SupportsIndex | None = None, max_matches: SupportsIndex | None = None, symmetrize_conjugated_terminal_groups: bool | None = None, ignore_hydrogens: bool | None = None, num_threads: SupportsIndex | None = None) AlignmentResult¶
- best_alignment_to(reference: Molecule, params: BestAlignmentParameters | None = None) AlignmentResult
Find the best alignment to a reference across allowed atom mappings, returning its transform and RMSD without changing either molecule.
- best_alignment_to_with_params(reference, params) AlignmentResult¶
Find the best alignment to a reference across allowed atom mappings, returning its transform and RMSD without changing either molecule. This entry accepts the explicit native parameter form.
- best_rmsd_to(reference: Molecule, *, probe_conformer_id: SupportsIndex | None = None, reference_conformer_id: SupportsIndex | None = None, atom_maps: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, AlignmentAtomMap]] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, reflect: bool | None = None, max_iterations: SupportsIndex | None = None, max_matches: SupportsIndex | None = None, symmetrize_conjugated_terminal_groups: bool | None = None, ignore_hydrogens: bool | None = None, num_threads: SupportsIndex | None = None) float¶
- best_rmsd_to(reference: Molecule, params: BestAlignmentParameters | None = None) float
Calculate the best alignment RMSD to a reference across allowed atom mappings without changing either molecule.
- best_rmsd_to_with_params(reference, params) float¶
Calculate the best alignment RMSD to a reference across allowed atom mappings without changing either molecule. This entry accepts the explicit native parameter form.
- bond(bond_id) Bond | None¶
Return a detached bond value at a zero-based index, or None when the index is absent.
- bond_property_string(id, key) str | None¶
Read the selected bond’s text property, returning None for an absent key and a structured error for an incompatible value.
- canonical_tautomer(*, max_tautomers: SupportsIndex | None = None, max_transforms: SupportsIndex | None = None, remove_sp3_stereo: bool | None = None, remove_bond_stereo: bool | None = None, remove_isotopic_hydrogens: bool | None = None, reassign_stereo: bool | None = None, callback: collections.abc.Callable[[TautomerMoleculeView, TautomerProgress], bool] | None = None, scorer: collections.abc.Callable[[TautomerMoleculeView], int] | None = None, score_params: TautomerScoreParams | None = None) Molecule¶
- canonical_tautomer(params: TautomerParams | None = None) Molecule
Select the canonical tautomer using the supplied enumeration and scoring policy.
- canonical_tautomer_with_params(params) Molecule¶
Select the canonical tautomer using the supplied enumeration and scoring policy. Uses the explicitly supplied parameter form.
- chi_0() float¶
Calculate the zeroth-order connectivity index from atomic degrees.
- chi_0_n(*, force=None) float¶
Calculate the order-0 normalized connectivity index. force requests recalculation.
- chi_0_n_with_params(force) float¶
Calculate the order-0 normalized connectivity index. force requests recalculation.
- chi_0_v(*, force=None) float¶
Calculate the order-0 valence connectivity index. force requests recalculation.
- chi_0_v_with_params(force) float¶
Calculate the order-0 valence connectivity index. force requests recalculation.
- chi_1() float¶
Calculate the first-order connectivity index from bonded atomic degrees.
- chi_1_n(*, force=None) float¶
Calculate the order-1 normalized connectivity index. force requests recalculation.
- chi_1_n_with_params(force) float¶
Calculate the order-1 normalized connectivity index. force requests recalculation.
- chi_1_v(*, force=None) float¶
Calculate the order-1 valence connectivity index. force requests recalculation.
- chi_1_v_with_params(force) float¶
Calculate the order-1 valence connectivity index. force requests recalculation.
- chi_2_n(*, force=None) float¶
Calculate the order-2 normalized connectivity index. force requests recalculation.
- chi_2_n_with_params(force) float¶
Calculate the order-2 normalized connectivity index. force requests recalculation.
- chi_2_v(*, force=None) float¶
Calculate the order-2 valence connectivity index. force requests recalculation.
- chi_2_v_with_params(force) float¶
Calculate the order-2 valence connectivity index. force requests recalculation.
- chi_3_n(*, force=None) float¶
Calculate the order-3 normalized connectivity index. force requests recalculation.
- chi_3_n_with_params(force) float¶
Calculate the order-3 normalized connectivity index. force requests recalculation.
- chi_3_v(*, force=None) float¶
Calculate the order-3 valence connectivity index. force requests recalculation.
- chi_3_v_with_params(force) float¶
Calculate the order-3 valence connectivity index. force requests recalculation.
- chi_4_n(*, force=None) float¶
Calculate the order-4 normalized connectivity index. force requests recalculation.
- chi_4_n_with_params(force) float¶
Calculate the order-4 normalized connectivity index. force requests recalculation.
- chi_4_v(*, force=None) float¶
Calculate the order-4 valence connectivity index. force requests recalculation.
- chi_4_v_with_params(force) float¶
Calculate the order-4 valence connectivity index. force requests recalculation.
- chi_n_n(order, *, force=None) float¶
Calculate the normalized connectivity index at the requested path order. force requests recalculation.
- chi_n_n_with_params(order, force) float¶
Calculate the normalized connectivity index at the requested path order. force requests recalculation. Uses the explicitly supplied parameter form.
- chi_n_v(order, *, force=None) float¶
Calculate the valence connectivity index at the requested path order. force requests recalculation.
- chi_n_v_with_params(order, force) float¶
Calculate the valence connectivity index at the requested path order. force requests recalculation. Uses the explicitly supplied parameter form.
- cip_computed: bool¶
Whether a complete molecular CIP assignment is recorded. A partial assignment does not imply this flag.
- clear_3d_conformers_() None¶
Remove all 3D conformers in place. The 2D coordinate block is unchanged; returns None.
- conformers_3d: list[Conformer3D]¶
Return stored 3D conformer values in native storage order.
- coordinate_rmsd_to(reference: Molecule, *, probe_conformer_id: SupportsIndex | None = None, reference_conformer_id: SupportsIndex | None = None, atom_maps: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, AlignmentAtomMap]] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, max_matches: SupportsIndex | None = None, symmetrize_conjugated_terminal_groups: bool | None = None) float¶
- coordinate_rmsd_to(reference: Molecule, params: CoordinateRmsdParameters | None = None) float
Calculate coordinate RMSD to the reference without first aligning the coordinates.
- coordinate_rmsd_to_with_params(reference, params) float¶
Calculate coordinate RMSD to the reference without first aligning the coordinates. This entry accepts the explicit native parameter form.
- coordinates_2d: numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]] | None¶
[“numpy”], “type”: “numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]] | None”} Independent float64 array of shape (num_atoms, 2), in atom-index order, or None when no 2D coordinate block is stored. Does not generate a layout.
- Type:
{“role”
- Type:
“return_type”, “imports”
- coordinates_3d(conformer_id=0) numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]¶
Return an independent float64 array of shape (num_atoms, 3) for conformer_id. An absent conformer raises Coordinate3DReadError.
- copy() Molecule¶
Return an independent molecule value using copy-on-write. Molecular storage is initially shared, not eagerly deep-copied. Subsequent modifications to either molecule do not affect the other.
- crippen_descriptors(*, include_hydrogens=None, force=None) CrippenTotals¶
Calculate the Wildman-Crippen logP and molar-refractivity descriptors. include_hydrogens controls hydrogen contributions; force requests recalculation.
- crippen_descriptors_with_params(include_hydrogens, force) CrippenTotals¶
Calculate the Wildman-Crippen logP and molar-refractivity descriptors. include_hydrogens controls hydrogen contributions; force requests recalculation. This entry accepts the explicit native parameter form.
- detect_chemistry_problems(*, operations: SanitizeOperations | str | None = None) ChemistryProblemReport¶
- detect_chemistry_problems(params: SanitizeParams | None = None) ChemistryProblemReport
Inspect the molecule under the selected sanitization checks and return structured chemical-problem diagnostics.
- detect_chemistry_problems_with_params(params) ChemistryProblemReport¶
Inspect the molecule under the selected sanitization checks and return structured chemical-problem diagnostics. This entry accepts the explicit native parameter form.
- dg_bounds_matrix() numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]¶
Return an independent NumPy distance-geometry bounds matrix in atom-index order.
- distance_matrix(*, use_bond_order: bool | None = None, use_atom_weights: bool | None = None) DenseMatrix¶
- distance_matrix(params: DistanceMatrixParams | None = None) DenseMatrix
Return the topological atom-distance matrix, with rows and columns in atom-index order.
- distance_matrix_3d(*, conformer_id: SupportsIndex | None = None, use_atom_weights: bool | None = None) DenseMatrix¶
- distance_matrix_3d(params: DistanceMatrix3dParams | None = None) DenseMatrix
Return the coordinate-distance matrix for the selected 3D conformer, in atom-index order.
- distance_matrix_3d_with_params(params) DenseMatrix¶
Return the coordinate-distance matrix for the selected 3D conformer, in atom-index order. Uses the explicitly supplied parameter form.
- distance_matrix_with_params(params) DenseMatrix¶
Return the topological atom-distance matrix, with rows and columns in atom-index order. Uses the explicitly supplied parameter form.
- embed_3d_conformer_(*, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) None¶
- embed_3d_conformer_(params: EmbedParams | None = None) None
Embed a 3D conformer in place using the selected distance-geometry parameters.
- embed_3d_conformer_result_(*, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) EmbedMoleculeResult¶
- embed_3d_conformer_result_(params: EmbedParams | None = None) EmbedMoleculeResult
Embed a 3D conformer in place and return the native generation outcome and diagnostics.
- embed_3d_conformer_result_with_params_(params) EmbedMoleculeResult¶
Embed a 3D conformer in place and return the native generation outcome and diagnostics. Uses the explicit configuration argument.
- embed_3d_conformer_with_params_(params) None¶
Embed a 3D conformer in place using the selected distance-geometry parameters. Uses the explicit configuration argument.
- embed_3d_conformers_(num_confs: SupportsIndex, *, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) None¶
- embed_3d_conformers_(num_confs: SupportsIndex, params: EmbedParams | None = None) None
Embed the requested number of 3D conformers in place under the selected sampling and pruning policy.
- embed_3d_conformers_result_(num_confs: SupportsIndex, *, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) EmbedMultipleConfsResult¶
- embed_3d_conformers_result_(num_confs: SupportsIndex, params: EmbedParams | None = None) EmbedMultipleConfsResult
Embed multiple conformers in place and return native generation results and diagnostics.
- embed_3d_conformers_result_with_params_(num_confs, params) EmbedMultipleConfsResult¶
Embed multiple conformers in place and return native generation results and diagnostics. Uses the explicit configuration argument.
- embed_3d_conformers_with_params_(num_confs, params) None¶
Embed the requested number of 3D conformers in place under the selected sampling and pruning policy. Uses the explicit configuration argument.
- enumerate_stereoisomers(*, try_embedding: bool | None = None, only_unassigned: bool | None = None, max_isomers: SupportsIndex | None = None, random_source: StereoisomerRandomSource | None = None, unique: bool | None = None, only_stereo_groups: bool | None = None) StereoisomerIterator¶
- enumerate_stereoisomers(options: StereoisomerOptions | None = None) StereoisomerIterator
Enumerate stereoisomer molecules under the configured assignment, uniqueness and sampling policy.
- enumerate_stereoisomers_with_options(options) StereoisomerIterator¶
Enumerate stereoisomer molecules under the configured assignment, uniqueness and sampling policy. Uses the explicitly supplied options.
- enumerate_stereoisomers_with_random_bits(options, callback) StereoisomerIterator¶
Enumerate stereoisomers with the explicitly supplied random-bit source, preserving its native state and sampling behavior.
- enumerate_tautomers(*, max_tautomers: SupportsIndex | None = None, max_transforms: SupportsIndex | None = None, remove_sp3_stereo: bool | None = None, remove_bond_stereo: bool | None = None, remove_isotopic_hydrogens: bool | None = None, reassign_stereo: bool | None = None, callback: collections.abc.Callable[[TautomerMoleculeView, TautomerProgress], bool] | None = None, scorer: collections.abc.Callable[[TautomerMoleculeView], int] | None = None, score_params: TautomerScoreParams | None = None) TautomerEnumeration¶
- enumerate_tautomers(params: TautomerParams | None = None) TautomerEnumeration
Enumerate tautomers using the supplied transformation, limit and callback policy; return the native result and enumeration status.
- enumerate_tautomers_with_params(params) TautomerEnumeration¶
Enumerate tautomers using the supplied transformation, limit and callback policy; return the native result and enumeration status. Uses the explicitly supplied parameter form.
- exact_molecular_weight(*, only_heavy=None) float¶
Calculate exact molecular weight using isotopic masses. only_heavy excludes hydrogens.
- exact_molecular_weight_with_params(only_heavy) float¶
Calculate exact molecular weight using isotopic masses. only_heavy excludes hydrogens. This entry accepts the explicit native parameter form.
- find_chiral_centers(include_unassigned=False) list[tuple[int, str]]¶
Return pairs of atom indices and chiral labels; include_unassigned controls inclusion of unassigned centers.
- fingerprint_atom_pair(additional_output: FingerprintAdditionalOutput | None = None, *, min_distance: SupportsIndex | None = ..., max_distance: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_2d: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., conformer_id: SupportsIndex | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) Fingerprint¶
- fingerprint_atom_pair(params: AtomPairFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) Fingerprint
Calculate a fixed-width bit fingerprint from atom-pair atom types and distances. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_atom_pair_count(additional_output: FingerprintAdditionalOutput | None = None, *, min_distance: SupportsIndex | None = ..., max_distance: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_2d: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., conformer_id: SupportsIndex | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) SparseCountFingerprint32¶
- fingerprint_atom_pair_count(params: AtomPairFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint32
Calculate a fixed-width count fingerprint from atom-pair atom types and distances. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_atom_pair_count_with_params(params, additional_output=None) SparseCountFingerprint32¶
Calculate a fixed-width count fingerprint from atom-pair atom types and distances using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_atom_pair_sparse(additional_output: FingerprintAdditionalOutput | None = None, *, min_distance: SupportsIndex | None = ..., max_distance: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_2d: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., conformer_id: SupportsIndex | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) SparseBitFingerprint¶
- fingerprint_atom_pair_sparse(params: AtomPairFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseBitFingerprint
Calculate a sparse bit fingerprint from atom-pair atom types and distances. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_atom_pair_sparse_count(additional_output: FingerprintAdditionalOutput | None = None, *, min_distance: SupportsIndex | None = ..., max_distance: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_2d: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., conformer_id: SupportsIndex | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) SparseCountFingerprint¶
- fingerprint_atom_pair_sparse_count(params: AtomPairFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint
Calculate a sparse count fingerprint from atom-pair atom types and distances. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_atom_pair_sparse_count_with_params(params, additional_output=None) SparseCountFingerprint¶
Calculate a sparse count fingerprint from atom-pair atom types and distances using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_atom_pair_sparse_with_params(params, additional_output=None) SparseBitFingerprint¶
Calculate a sparse bit fingerprint from atom-pair atom types and distances using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_atom_pair_with_params(params, additional_output=None) Fingerprint¶
Calculate a fixed-width bit fingerprint from atom-pair atom types and distances using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_avalon(*, n_bits: SupportsIndex | None = None, is_query: bool | None = None, bit_flags: SupportsIndex | None = None) Fingerprint¶
- fingerprint_avalon(params: AvalonFingerprintParams | None = None) Fingerprint
Calculate the Avalon fingerprint using the selected native Avalon options.
- fingerprint_avalon_with_params(params) Fingerprint¶
Calculate the Avalon fingerprint using the selected native Avalon options. Uses the explicit configuration argument.
- fingerprint_layered(*, layers: SupportsIndex | None = None, min_path: SupportsIndex | None = None, max_path: SupportsIndex | None = None, fp_size: SupportsIndex | None = None, atom_counts: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, set_only_bits: Fingerprint | None = None, branched_paths: bool | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) Fingerprint¶
- fingerprint_layered(params: LayeredFingerprintParams | None = None) Fingerprint
Calculate a layered path fingerprint using the selected layer flags, path bounds and bit width.
- fingerprint_layered_with_output(*, layers: SupportsIndex | None = None, min_path: SupportsIndex | None = None, max_path: SupportsIndex | None = None, fp_size: SupportsIndex | None = None, atom_counts: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, set_only_bits: Fingerprint | None = None, branched_paths: bool | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) LayeredFingerprintResult¶
- fingerprint_layered_with_output(params: LayeredFingerprintParams | None = None) LayeredFingerprintResult
Calculate a layered path fingerprint together with its native additional output.
- fingerprint_layered_with_output_with_params(params) LayeredFingerprintResult¶
Calculate a layered path fingerprint together with its native additional output. Uses the explicit configuration argument.
- fingerprint_layered_with_params(params) Fingerprint¶
Calculate a layered path fingerprint using the selected layer flags, path bounds and bit width. Uses the explicit configuration argument.
- fingerprint_maccs(*, n_bits: SupportsIndex | None = None) Fingerprint¶
- fingerprint_maccs(params: MaccsFingerprintParams | None = None) Fingerprint
Calculate MACCS keys using MaccsFingerprintParams or the n_bits keyword, not both.
- fingerprint_maccs_raw() Fingerprint¶
Return the raw 167-bit MACCS fingerprint with bit zero unused. The ordinary fingerprint_maccs entry projects keys 1..166 to 166 bits.
- fingerprint_maccs_with_params(params) Fingerprint¶
Calculate MACCS keys using MaccsFingerprintParams or the n_bits keyword, not both. Uses the explicitly supplied parameter form.
- fingerprint_morgan(additional_output: FingerprintAdditionalOutput | None = None, *, radius: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_bond_types: bool | None = ..., include_ring_membership: bool | None = ..., only_nonzero_invariants: bool | None = ..., include_redundant_environments: bool | None = ..., fp_size: SupportsIndex | None = ..., count_simulation: bool | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., invariants: MorganInvariants | None = ...) Fingerprint¶
- fingerprint_morgan(params: MorganFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) Fingerprint
Calculate a fixed-width bit fingerprint from Morgan circular atom environments. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_morgan_count(additional_output: FingerprintAdditionalOutput | None = None, *, radius: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_bond_types: bool | None = ..., include_ring_membership: bool | None = ..., only_nonzero_invariants: bool | None = ..., include_redundant_environments: bool | None = ..., fp_size: SupportsIndex | None = ..., count_simulation: bool | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., invariants: MorganInvariants | None = ...) SparseCountFingerprint32¶
- fingerprint_morgan_count(params: MorganFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint32
Calculate a fixed-width count fingerprint from Morgan circular atom environments. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_morgan_count_with_generator(generator: MorganFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) SparseCountFingerprint32¶
- fingerprint_morgan_count_with_generator(generator: MorganFingerprintGenerator, params: MorganCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint32
Calculate a fixed-width count fingerprint from Morgan circular atom environments with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_morgan_count_with_params(params, additional_output=None) SparseCountFingerprint32¶
Calculate a fixed-width count fingerprint from Morgan circular atom environments using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_morgan_sparse(additional_output: FingerprintAdditionalOutput | None = None, *, radius: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_bond_types: bool | None = ..., include_ring_membership: bool | None = ..., only_nonzero_invariants: bool | None = ..., include_redundant_environments: bool | None = ..., fp_size: SupportsIndex | None = ..., count_simulation: bool | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., invariants: MorganInvariants | None = ...) SparseBitFingerprint¶
- fingerprint_morgan_sparse(params: MorganFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseBitFingerprint
Calculate a sparse bit fingerprint from Morgan circular atom environments. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_morgan_sparse_count(additional_output: FingerprintAdditionalOutput | None = None, *, radius: SupportsIndex | None = ..., include_chirality: bool | None = ..., use_bond_types: bool | None = ..., include_ring_membership: bool | None = ..., only_nonzero_invariants: bool | None = ..., include_redundant_environments: bool | None = ..., fp_size: SupportsIndex | None = ..., count_simulation: bool | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., invariants: MorganInvariants | None = ...) SparseCountFingerprint¶
- fingerprint_morgan_sparse_count(params: MorganFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint
Calculate a sparse count fingerprint from Morgan circular atom environments. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_morgan_sparse_count_with_generator(generator: MorganFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) SparseCountFingerprint¶
- fingerprint_morgan_sparse_count_with_generator(generator: MorganFingerprintGenerator, params: MorganCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint
Calculate a sparse count fingerprint from Morgan circular atom environments with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_morgan_sparse_count_with_params(params, additional_output=None) SparseCountFingerprint¶
Calculate a sparse count fingerprint from Morgan circular atom environments using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_morgan_sparse_with_generator(generator: MorganFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) SparseBitFingerprint¶
- fingerprint_morgan_sparse_with_generator(generator: MorganFingerprintGenerator, params: MorganCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseBitFingerprint
Calculate a sparse bit fingerprint from Morgan circular atom environments with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_morgan_sparse_with_params(params, additional_output=None) SparseBitFingerprint¶
Calculate a sparse bit fingerprint from Morgan circular atom environments using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_morgan_with_generator(generator: MorganFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) Fingerprint¶
- fingerprint_morgan_with_generator(generator: MorganFingerprintGenerator, params: MorganCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) Fingerprint
Calculate a fixed-width bit fingerprint from Morgan circular atom environments with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_morgan_with_params(params, additional_output=None) Fingerprint¶
Calculate a fixed-width bit fingerprint from Morgan circular atom environments using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_pattern(*, n_bits: SupportsIndex | None = None, tautomeric: bool | None = None) Fingerprint¶
- fingerprint_pattern(params: PatternFingerprintParams | None = None) Fingerprint
Calculate the canonical pattern fingerprint using the requested bit width and pattern options.
- fingerprint_pattern_with_params(params) Fingerprint¶
Calculate the canonical pattern fingerprint using the requested bit width and pattern options. Uses the explicit configuration argument.
- fingerprint_topological(*, min_path: SupportsIndex | None = None, max_path: SupportsIndex | None = None, fp_size: SupportsIndex | None = None, num_bits_per_feature: SupportsIndex | None = None, use_hs: bool | None = None, target_density: SupportsFloat | SupportsIndex | None = None, min_size: SupportsIndex | None = None, branched_paths: bool | None = None, use_bond_order: bool | None = None, atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) Fingerprint¶
- fingerprint_topological(params: TopologicalFingerprintParams | None = None) Fingerprint
Calculate the RDKit-style path-based topological bit fingerprint with the supplied path and folding settings.
- fingerprint_topological_torsion(additional_output: FingerprintAdditionalOutput | None = None, *, torsion_atom_count: SupportsIndex | None = ..., only_shortest_paths: bool | None = ..., include_chirality: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) Fingerprint¶
- fingerprint_topological_torsion(params: TopologicalTorsionFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) Fingerprint
Calculate a fixed-width bit fingerprint from topological torsion paths. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_topological_torsion_count(additional_output: FingerprintAdditionalOutput | None = None, *, torsion_atom_count: SupportsIndex | None = ..., only_shortest_paths: bool | None = ..., include_chirality: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) SparseCountFingerprint32¶
- fingerprint_topological_torsion_count(params: TopologicalTorsionFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint32
Calculate a fixed-width count fingerprint from topological torsion paths. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_topological_torsion_count_legacy(*, torsion_atom_count: SupportsIndex | None = None, include_chirality: bool | None = None, fp_size: SupportsIndex | None = None, bits_per_entry: SupportsIndex | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) SparseCountFingerprint¶
- fingerprint_topological_torsion_count_legacy(params: LegacyTopologicalTorsionParams | None = None) SparseCountFingerprint
Calculate the legacy topological-torsion count fingerprint with the selected encoding policy.
- fingerprint_topological_torsion_count_legacy_with_params(params) SparseCountFingerprint¶
Calculate the legacy topological-torsion count fingerprint with the selected encoding policy. Uses the explicit configuration argument.
- fingerprint_topological_torsion_count_with_generator(generator: TopologicalTorsionFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, use_legacy_stereo_perception: bool | None = None) SparseCountFingerprint32¶
- fingerprint_topological_torsion_count_with_generator(generator: TopologicalTorsionFingerprintGenerator, params: TopologicalTorsionCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint32
Calculate a fixed-width count fingerprint from topological torsion paths with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_topological_torsion_count_with_params(params, additional_output=None) SparseCountFingerprint32¶
Calculate a fixed-width count fingerprint from topological torsion paths using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_topological_torsion_legacy(*, torsion_atom_count: SupportsIndex | None = None, include_chirality: bool | None = None, fp_size: SupportsIndex | None = None, bits_per_entry: SupportsIndex | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) Fingerprint¶
- fingerprint_topological_torsion_legacy(params: LegacyTopologicalTorsionParams | None = None) Fingerprint
Calculate the legacy topological-torsion bit fingerprint with the selected torsion length and chirality policy.
- fingerprint_topological_torsion_legacy_with_params(params) Fingerprint¶
Calculate the legacy topological-torsion bit fingerprint with the selected torsion length and chirality policy. Uses the explicit configuration argument.
- fingerprint_topological_torsion_sparse(additional_output: FingerprintAdditionalOutput | None = None, *, torsion_atom_count: SupportsIndex | None = ..., only_shortest_paths: bool | None = ..., include_chirality: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) SparseBitFingerprint¶
- fingerprint_topological_torsion_sparse(params: TopologicalTorsionFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseBitFingerprint
Calculate a sparse bit fingerprint from topological torsion paths. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_topological_torsion_sparse_count(additional_output: FingerprintAdditionalOutput | None = None, *, torsion_atom_count: SupportsIndex | None = ..., only_shortest_paths: bool | None = ..., include_chirality: bool | None = ..., count_simulation: bool | None = ..., fp_size: SupportsIndex | None = ..., bits_per_feature: SupportsIndex | None = ..., count_bounds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = ..., atom_invariants_generator: AtomPairAtomInvariantsGenerator | None = ..., use_legacy_stereo_perception: bool | None = ...) SparseCountFingerprint¶
- fingerprint_topological_torsion_sparse_count(params: TopologicalTorsionFingerprintParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint
Calculate a sparse count fingerprint from topological torsion paths. Supply a parameter object or keyword options, not both. additional_output, when supplied, collects the requested provenance in that output object.
- fingerprint_topological_torsion_sparse_count_legacy(*, torsion_atom_count: SupportsIndex | None = None, include_chirality: bool | None = None, fp_size: SupportsIndex | None = None, bits_per_entry: SupportsIndex | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) SparseCountFingerprint¶
- fingerprint_topological_torsion_sparse_count_legacy(params: LegacyTopologicalTorsionParams | None = None) SparseCountFingerprint
Calculate sparse legacy topological-torsion counts keyed by torsion identifiers.
- fingerprint_topological_torsion_sparse_count_legacy_with_params(params) SparseCountFingerprint¶
Calculate sparse legacy topological-torsion counts keyed by torsion identifiers. Uses the explicit configuration argument.
- fingerprint_topological_torsion_sparse_count_with_generator(generator: TopologicalTorsionFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, use_legacy_stereo_perception: bool | None = None) SparseCountFingerprint¶
- fingerprint_topological_torsion_sparse_count_with_generator(generator: TopologicalTorsionFingerprintGenerator, params: TopologicalTorsionCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseCountFingerprint
Calculate a sparse count fingerprint from topological torsion paths with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_topological_torsion_sparse_count_with_params(params, additional_output=None) SparseCountFingerprint¶
Calculate a sparse count fingerprint from topological torsion paths using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_topological_torsion_sparse_with_generator(generator: TopologicalTorsionFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, use_legacy_stereo_perception: bool | None = None) SparseBitFingerprint¶
- fingerprint_topological_torsion_sparse_with_generator(generator: TopologicalTorsionFingerprintGenerator, params: TopologicalTorsionCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) SparseBitFingerprint
Calculate a sparse bit fingerprint from topological torsion paths with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_topological_torsion_sparse_with_params(params, additional_output=None) SparseBitFingerprint¶
Calculate a sparse bit fingerprint from topological torsion paths using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_topological_torsion_with_generator(generator: TopologicalTorsionFingerprintGenerator, additional_output: FingerprintAdditionalOutput | None = None, *, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, custom_bond_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, use_legacy_stereo_perception: bool | None = None) Fingerprint¶
- fingerprint_topological_torsion_with_generator(generator: TopologicalTorsionFingerprintGenerator, params: TopologicalTorsionCallParams | None = None, additional_output: FingerprintAdditionalOutput | None = None) Fingerprint
Calculate a fixed-width bit fingerprint from topological torsion paths with a reusable generator. The generator supplies algorithm settings; per-call parameters select atoms and custom invariants. Supply per-call Params or keywords, not both.
- fingerprint_topological_torsion_with_params(params, additional_output=None) Fingerprint¶
Calculate a fixed-width bit fingerprint from topological torsion paths using the supplied parameter object. The input molecule is unchanged; additional_output collects requested provenance.
- fingerprint_topological_with_output(*, request: TopologicalFingerprintOutputRequest | None = None, min_path: SupportsIndex | None = None, max_path: SupportsIndex | None = None, fp_size: SupportsIndex | None = None, num_bits_per_feature: SupportsIndex | None = None, use_hs: bool | None = None, target_density: SupportsFloat | SupportsIndex | None = None, min_size: SupportsIndex | None = None, branched_paths: bool | None = None, use_bond_order: bool | None = None, atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) TopologicalFingerprintResult¶
- fingerprint_topological_with_output(*, atom_bits: bool | None = None, bit_info: bool | None = None, min_path: SupportsIndex | None = None, max_path: SupportsIndex | None = None, fp_size: SupportsIndex | None = None, num_bits_per_feature: SupportsIndex | None = None, use_hs: bool | None = None, target_density: SupportsFloat | SupportsIndex | None = None, min_size: SupportsIndex | None = None, branched_paths: bool | None = None, use_bond_order: bool | None = None, atom_invariants: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, from_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, ignore_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) TopologicalFingerprintResult
- fingerprint_topological_with_output(params: TopologicalFingerprintParams | None = None, request: TopologicalFingerprintOutputRequest | None = None) TopologicalFingerprintResult
- fingerprint_topological_with_output(params: TopologicalFingerprintParams | None = None, *, atom_bits: bool | None = None, bit_info: bool | None = None) TopologicalFingerprintResult
Calculate the path-based topological fingerprint and requested atom/bit provenance.
- fingerprint_topological_with_output_with_params(params, request) TopologicalFingerprintResult¶
Calculate the path-based topological fingerprint and requested atom/bit provenance. Uses the explicit configuration argument.
- fingerprint_topological_with_params(params) Fingerprint¶
Calculate the RDKit-style path-based topological bit fingerprint with the supplied path and folding settings. Uses the explicit configuration argument.
- fraction_csp3() float¶
Return the fraction of carbon atoms with sp3 hybridization.
- fragments() list[Molecule]¶
Split disconnected components into new molecular values in native component order.
- static from_binary(data) Molecule¶
Decode a COSMolKit molecular archive, preserving the serialized molecular state. Malformed or unsupported data raises its native archive error.
- static from_inchi(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None) Molecule¶
- static from_inchi(text: str, params: InchiReadParams | None = None) Molecule
Parse InChI into a new molecular value using the selected sanitization and hydrogen-removal policy.
- static from_inchi_with_params(text, params) Molecule¶
Parse InChI into a new molecular value using the selected sanitization and hydrogen-removal policy. Uses the explicitly supplied parameter form.
- static from_mmcif(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, flavor: PdbReadFlags | None = None, proximity_bonding: bool | None = None) Molecule¶
- static from_mmcif(text: str, params: BioMoleculeParams | None = None) Molecule
Parse mmCIF text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path.
- static from_mmcif_with_params(text, params) Molecule¶
Parse mmCIF text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path. Uses the explicit reader parameters.
- static from_mol(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, strict_parsing: bool | None = None, expand_attachment_points: bool | None = None, process_property_lists: bool | None = None, coordinate_mode: SdfCoordinateMode | str | None = None) Molecule¶
- static from_mol(text: str, params: SdfReadParams | None = None) Molecule
Parse MDL MolBlock text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path.
- static from_mol2(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, variant: Mol2Type | str | None = None, cleanup_substructures: bool | None = None) Molecule¶
- static from_mol2(text: str, params: Mol2ReadParams | None = None) Molecule
Parse Tripos MOL2 text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path.
- static from_mol2_with_params(text, params) Molecule¶
Parse Tripos MOL2 text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path. Uses the explicit reader parameters.
- static from_mol_with_params(text, params) Molecule¶
Parse MDL MolBlock text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path. Uses the explicit reader parameters.
- static from_parts(topology, coordinates, properties) Molecule¶
Construct a molecule from explicit topology, coordinates and molecular properties using the canonical validation boundary.
- static from_pdb(text: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, flavor: PdbReadFlags | None = None, proximity_bonding: bool | None = None) Molecule¶
- static from_pdb(text: str, params: BioMoleculeParams | None = None) Molecule
Parse PDB text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path.
- static from_pdb_with_params(text, params) Molecule¶
Parse PDB text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path. Uses the explicit reader parameters.
- static from_rdkit(rdmol, sanitize=None) Molecule¶
Import an RDKit molecule through the canonical adapter; sanitize selects whether to sanitize the imported molecular value.
- static from_sdf(input: str, *, sanitize: bool | None = None, remove_hs: bool | None = None, strict_parsing: bool | None = None, expand_attachment_points: bool | None = None, process_property_lists: bool | None = None, coordinate_mode: SdfCoordinateMode | str | None = None) Molecule¶
- static from_sdf(input: str, params: SdfReadParams | None = None) Molecule
Parse SDF text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path.
- static from_sdf_with_params(input, params) Molecule¶
Parse SDF text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path. Uses the explicit reader parameters.
- static from_smiles(text: str, *, sanitize: bool | None = None, allow_cxsmiles: bool | None = None, strict_cxsmiles: bool | None = None, parse_name: bool | None = None, remove_hs: bool | None = None, skip_cleanup: bool | None = None, debug_parse: bool | None = None, replacements: dict[str, str] | None = None) Molecule¶
- static from_smiles(text: str, params: SmilesParseParams | None = None) Molecule
Parse SMILES into a new molecule. Supply SmilesParseParams or keyword options, not both; sanitization follows the selected parsing policy.
- static from_smiles_with_params(text, params) Molecule¶
Parse SMILES into a new molecule. Supply SmilesParseParams or keyword options, not both; sanitization follows the selected parsing policy. Uses the explicitly supplied parameter form.
- static from_xyz_block(text) Molecule¶
Parse XYZ text into a new molecule using the canonical reader and selected input policy. This accepts content, not a filesystem path.
- hall_kier_alpha() float¶
Calculate the Hall-Kier alpha correction used by molecular shape descriptors.
- hall_kier_alpha_with_contributions() tuple[float, list[float]]¶
Return Hall-Kier alpha and its per-atom contributions in atom-index order.
- has_2d_coordinates: bool¶
Whether a 2D coordinate block is stored; does not generate coordinates.
- has_substruct_match(query: QueryGraph, *, max_matches: SupportsIndex | None = None, uniquify: bool | None = None, use_chirality: bool | None = None, use_enhanced_stereo: bool | None = None, specified_stereo_query_matches_unspecified: bool | None = None, use_query_query_matches: bool | None = None, recursion_possible: bool | None = None, max_recursive_matches: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, aromatic_matches_conjugated: bool | None = None, aromatic_matches_single_or_double: bool | None = None, extra_atom_check_overrides_default_check: bool | None = None, extra_bond_check_overrides_default_check: bool | None = None, use_generic_matchers: bool | None = None, atom_properties: _typeshed.SupportsGetItem[int, str] | None = None, bond_properties: _typeshed.SupportsGetItem[int, str] | None = None, final_match: collections.abc.Callable[[Molecule, collections.abc.Sequence[int]], bool] | None = None, atom_match: collections.abc.Callable[[QueryGraph, QueryAtom, Molecule, Atom], bool] | None = None, bond_match: collections.abc.Callable[[Bond, Bond], bool] | None = None, extra_final_check: collections.abc.Callable[[Molecule, collections.abc.Sequence[int]], bool] | None = None, extra_atom_check: collections.abc.Callable[[QueryGraph, QueryAtom, Molecule, Atom], bool] | None = None, extra_bond_check: collections.abc.Callable[[Bond, Bond], bool] | None = None) bool¶
- has_substruct_match(query: QueryGraph, params: SubstructMatchParams | None = None) bool
Return whether the query has an accepted match. Supply SubstructMatchParams or keyword options, not both.
- has_substruct_match_with_params(query, params) bool¶
Return whether the query has an accepted match. Supply SubstructMatchParams or keyword options, not both. Uses the explicitly supplied parameter form.
- has_valence_violation(atom_id) bool¶
Check whether the selected atom violates the canonical valence rules.
- kappa_1() float¶
Calculate the first-order Kier kappa molecular shape index.
- kappa_2() float¶
Calculate the second-order Kier kappa molecular shape index.
- kappa_3() float¶
Calculate the third-order Kier kappa molecular shape index.
- kekulize_bonds_(*, mark_atoms_bonds: bool | None = None, canonical: bool | None = None, max_backtracks: SupportsIndex | None = None) None¶
- kekulize_bonds_(params: KekulizeParams | None = None) None
Assign Kekule bond orders in place under the selected aromatic-flag policy.
- kekulize_bonds_with_params_(params) None¶
Assign Kekule bond orders in place under the selected aromatic-flag policy. Uses the explicit configuration argument.
- labute_asa(*, include_hydrogens=None, force=None) float¶
Calculate Labute’s approximate molecular surface area. include_hydrogens controls hydrogen contributions; force requests recalculation.
- labute_asa_contributions(*, include_hydrogens=None, force=None) LabuteAsaContributions¶
Return per-atom Labute surface contributions and the hydrogen contribution, preserving atom-index order.
- labute_asa_contributions_with_params(include_hydrogens, force) LabuteAsaContributions¶
Return per-atom Labute surface contributions and the hydrogen contribution, preserving atom-index order. This entry accepts the explicit native parameter form.
- labute_asa_with_params(include_hydrogens, force) float¶
Calculate Labute’s approximate molecular surface area. include_hydrogens controls hydrogen contributions; force requests recalculation. This entry accepts the explicit native parameter form.
- largest_fragment() Molecule¶
Return the fragment selected by the native largest-fragment policy; the source is unchanged.
- lipinski_hba() int¶
Return the Lipinski nitrogen/oxygen acceptor count, not the SMARTS-based num_hba definition.
- lipinski_hbd() int¶
Return the Lipinski donor-hydrogen count, not the SMARTS-based donor-atom count num_hbd.
- mmff_energy_gradient(*, mmff_variant: MmffVariant | str | None = None, non_bonded_threshold: SupportsFloat | SupportsIndex | None = None, conformer_id: SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) MmffEnergyGradient | None¶
- mmff_energy_gradient(params: MmffEvaluationParams | None = None) MmffEnergyGradient | None
Evaluate MMFF energy and coordinate gradients for the selected conformer and MMFF variant without minimizing it.
- mmff_energy_gradient_with_params(params) MmffEnergyGradient | None¶
Evaluate MMFF energy and coordinate gradients for the selected conformer and MMFF variant without minimizing it. Uses the explicitly supplied parameter form.
- mmff_force_field(*, conformer_id: SupportsIndex | None = None, mmff_variant: MmffVariant | str | None = None, non_bonded_threshold: SupportsFloat | SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) MolecularForceField¶
- mmff_force_field(params: MmffForceFieldParams | None = None) MolecularForceField
Construct a persistent MMFF force field for the selected conformer and MMFF variant, for evaluation, constraints and minimization without rebuilding the field.
- mmff_has_all_molecule_params() bool¶
Return whether MMFF parameters are available for every required atom in the molecule.
- mmff_properties(*, mmff_variant: MmffVariant | str | None = None) MmffProperties¶
- mmff_properties(params: MmffPropertiesParams | None = None) MmffProperties
Prepare MMFF atom typing and molecular properties with the selected MMFF variant.
- mmff_properties_with_params(params) MmffProperties¶
Prepare MMFF atom typing and molecular properties with the selected MMFF variant. Uses the explicitly supplied parameter form.
- molecular_formula(*, separate_isotopes=None, abbreviate_h_isotopes=None) str¶
Return the molecular formula, with optional isotope separation and hydrogen-isotope abbreviations.
- molecular_formula_with_params(separate_isotopes, abbreviate_h_isotopes) str¶
Return the molecular formula, with optional isotope separation and hydrogen-isotope abbreviations. This entry accepts the explicit native parameter form.
- molecular_hash() int¶
Calculate the canonical molecular graph hash.
- molecular_hash_with_ranks(ranks) int¶
Calculate the molecular graph hash using the supplied per-atom ranks.
- molecular_weight(*, only_heavy=None) float¶
Calculate molecular weight using average atomic masses. only_heavy excludes hydrogens.
- molecular_weight_with_params(only_heavy) float¶
Calculate molecular weight using average atomic masses. only_heavy excludes hydrogens. This entry accepts the explicit native parameter form.
- mqns(force=False) list[int]¶
Return the 42 molecular quantum numbers in their canonical feature order. force requests recalculation.
- net_scaffold() Molecule¶
Return the native net scaffold as a new molecule, leaving the source unchanged.
- num_3d_conformers: int¶
Number of stored 3D conformers, not the count of attempted embeddings.
- num_aliphatic_carbocycles() int¶
Count non-aromatic all-carbon rings in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_aliphatic_heterocycles() int¶
Count non-aromatic rings containing a non-carbon atom in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_aliphatic_rings() int¶
Count non-aromatic rings in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_amide_bonds() int¶
Count amide bonds using the canonical amide pattern.
- num_aromatic_carbocycles() int¶
Count aromatic all-carbon rings in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_aromatic_heterocycles() int¶
Count aromatic rings containing a non-carbon atom in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_aromatic_rings() int¶
Count aromatic rings in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_atom_stereo_centers() int¶
Count assigned and unassigned atom stereocenters recognized by the canonical stereo analysis.
- num_atoms: int¶
Number of stored atom rows. Implicit hydrogens are not separate rows.
- num_bonds: int¶
Number of stored bond rows.
- num_bridgehead_atoms() int¶
Count bridgehead atoms from the molecule’s ring information.
- num_hba() int¶
Count hydrogen-bond acceptor atoms using the canonical SMARTS definitions. Requires prepared valence and ring information.
- num_hbd() int¶
Count hydrogen-bond donor atoms using the canonical SMARTS definitions. Requires prepared valence information.
- num_heavy_atoms() int¶
Count atoms other than hydrogen.
- num_heteroatoms() int¶
Count atoms other than carbon and hydrogen using the canonical heteroatom query.
- num_heterocycles() int¶
Count rings containing a non-carbon atom in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_rings() int¶
Read the initialized ring count. Does not calculate rings; missing initialized ring information raises DescriptorReadError.
- num_rotatable_bonds(params=None) int¶
Count rotatable bonds under the selected strictness definition; None uses the native default.
- num_rotatable_bonds_with_params(params) int¶
Count rotatable bonds under the explicitly selected strictness definition.
- num_saturated_carbocycles() int¶
Count saturated all-carbon rings in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_saturated_heterocycles() int¶
Count saturated rings containing a non-carbon atom in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_saturated_rings() int¶
Count saturated rings in the stored ring information. Does not calculate rings; an empty or absent ring assignment yields zero.
- num_spiro_atoms() int¶
Count spiro atoms from the molecule’s ring information.
- num_unspecified_atom_stereo_centers() int¶
Count recognized atom stereocenters without a specified stereochemical assignment.
- perceive_stereochemistry() None¶
Run the native stereochemistry perception query and propagate any error.
- phi() float¶
Calculate the molecular flexibility index from the canonical kappa descriptors.
- potential_stereo(*, clean: bool | None = None, flag_possible: bool | None = None, allow_nontetrahedral: bool | None = None) PotentialStereoResult¶
- potential_stereo(params: PotentialStereoParams | None = None) PotentialStereoResult
Return the native potential-stereo information for atoms and bonds under the selected options.
- potential_stereo_with_params(params) PotentialStereoResult¶
Return the native potential-stereo information for atoms and bonds under the selected options. Uses the explicitly supplied parameter form.
- properties: MoleculeProperties¶
Return the molecule-level property value collection.
- property(key) PropertyValue | None¶
Read a molecule-level property as a typed PropertyValue, or None when the key is absent.
- qed() float¶
Calculate the quantitative estimate of drug-likeness with the canonical default weights.
- reaction_products(reaction: Reaction, reactant_template: SupportsIndex, *, coordinate_selection: ReactionCoordinateSelection | None = None) list[list[Molecule]]¶
- reaction_products(reaction: Reaction, reactant_template: SupportsIndex, params: ReactionSingleRunParams | None = None) list[list[Molecule]]
Apply this molecule to the selected reactant template and return product sets. Matching callbacks and coordinate selection follow the supplied reaction policy.
- reaction_products_from_inputs(reaction: Reaction, reactants: _typeshed.SupportsGetItem[int, Molecule], *, max_products: SupportsIndex | None = None, coordinate_selections: _typeshed.SupportsGetItem[int, ReactionCoordinateSelection] | None = None, copy_atom_properties: bool | None = None) list[list[Molecule]]¶
- reaction_products_from_inputs(reaction: Reaction, reactants: _typeshed.SupportsGetItem[int, Molecule], params: ReactionRunParams | None = None) list[list[Molecule]]
Run the reaction with this molecule and the supplied additional reactant inputs, returning product sets in native order.
- reaction_products_with_params(reaction, reactant_template, params) list[list[Molecule]]¶
Apply this molecule to the selected reactant template and return product sets. Matching callbacks and coordinate selection follow the supplied reaction policy. Uses the explicit configuration argument.
- static read_mol(path: str | os.PathLike[str], *, sanitize: bool | None = None, remove_hs: bool | None = None, strict_parsing: bool | None = None, expand_attachment_points: bool | None = None, process_property_lists: bool | None = None, coordinate_mode: SdfCoordinateMode | str | None = None) Molecule¶
- static read_mol(path: str | os.PathLike[str], params: SdfReadParams | None = None) Molecule
Read a molecule from a MDL MolBlock file at the supplied path using the canonical reader. IO and parsing errors propagate.
- static read_mol2(path: str | os.PathLike[str], *, sanitize: bool | None = None, remove_hs: bool | None = None, variant: Mol2Type | str | None = None, cleanup_substructures: bool | None = None) Molecule¶
- static read_mol2(path: str | os.PathLike[str], params: Mol2ReadParams | None = None) Molecule
Read a molecule from a Tripos MOL2 file at the supplied path using the canonical reader. IO and parsing errors propagate.
- static read_mol2_with_params(path, params) Molecule¶
Read a molecule from a Tripos MOL2 file at the supplied path using the canonical reader. IO and parsing errors propagate. Uses explicit reader parameters.
- static read_mol_with_params(path, params) Molecule¶
Read a molecule from a MDL MolBlock file at the supplied path using the canonical reader. IO and parsing errors propagate. Uses explicit reader parameters.
- static read_sdf(path: str | os.PathLike[str], *, sanitize: bool | None = None, remove_hs: bool | None = None, strict_parsing: bool | None = None, expand_attachment_points: bool | None = None, process_property_lists: bool | None = None, coordinate_mode: SdfCoordinateMode | str | None = None) Molecule¶
- static read_sdf(path: str | os.PathLike[str], params: SdfReadParams | None = None) Molecule
Read a molecule from a SDF file at the supplied path using the canonical reader. IO and parsing errors propagate.
- static read_sdf_with_params(path, params) Molecule¶
Read a molecule from a SDF file at the supplied path using the canonical reader. IO and parsing errors propagate. Uses explicit reader parameters.
- static read_xyz(path) Molecule¶
Read a molecule from a XYZ file at the supplied path using the canonical reader. IO and parsing errors propagate.
- remove_hydrogens_(*, remove_degree_zero: bool | None = None, remove_higher_degrees: bool | None = None, remove_only_h_neighbors: bool | None = None, remove_isotopes: bool | None = None, remove_and_track_isotopes: bool | None = None, remove_dummy_neighbors: bool | None = None, remove_defining_bond_stereo: bool | None = None, remove_with_wedged_bond: bool | None = None, remove_with_query: bool | None = None, remove_mapped: bool | None = None, remove_in_sgroups: bool | None = None, show_warnings: bool | None = None, remove_nonimplicit: bool | None = None, update_explicit_count: bool | None = None, remove_hydrides: bool | None = None, remove_nontetrahedral_neighbors: bool | None = None, sanitize: bool | None = None) None¶
- remove_hydrogens_(params: RemoveHsParams | None = None) None
Remove eligible hydrogen atoms in place under RemoveHsParams. The removal policy determines which isotopic, mapped and stereochemistry-defining hydrogens remain.
- remove_hydrogens_with_params_(params) None¶
Remove eligible hydrogen atoms in place under RemoveHsParams. The removal policy determines which isotopic, mapped and stereochemistry-defining hydrogens remain. Uses the explicit configuration argument.
- sanitize(*, operations: SanitizeOperations | str | None = None) Molecule¶
- sanitize(params: SanitizeParams | None = None) Molecule
Return a sanitized molecular value using the requested sanitization stages. The source is unchanged; errors retain their native type and cause.
- sanitize_(*, operations: SanitizeOperations | str | None = None) None¶
- sanitize_(params: SanitizeParams | None = None) None
Run the requested sanitization stages in place. Errors retain their native type and cause.
- sanitize_with_params(params) Molecule¶
Return a sanitized molecular value using the requested sanitization stages. The source is unchanged; errors retain their native type and cause. Uses the explicit configuration argument.
- sanitize_with_params_(params) None¶
Run the requested sanitization stages in place. Errors retain their native type and cause. Uses the explicit configuration argument.
- set_2d_coordinates_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex]], *, z_policy: CoordinateZPolicy | str | None = None) None¶
- set_2d_coordinates_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex]], params: Coordinate2DInputParams | None = None) None
Install the supplied 2D coordinates in place. Coordinate rows must match the atom count and the declared coordinate-input policy.
- set_2d_coordinates_with_params_(coordinates, params) None¶
Install the supplied 2D coordinates in place. Coordinate rows must match the atom count and the declared coordinate-input policy. Uses the explicit configuration argument.
- set_3d_coordinates_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], *, conformer_id: SupportsIndex | None = None) None¶
- set_3d_coordinates_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], params: Replace3DCoordinatesParams | None = None) None
Install supplied 3D coordinate rows in place under the selected input policy. Does not run conformer embedding.
- set_3d_coordinates_with_params_(coordinates, params) None¶
Install supplied 3D coordinate rows in place under the selected input policy. Does not run conformer embedding. Uses the explicit configuration argument.
- set_atom_position_(atom: SupportsIndex, position: _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex], *, conformer_id: SupportsIndex | None = None) None¶
- set_atom_position_(atom: SupportsIndex, position: _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex], params: AtomPositionParams | None = None) None
Replace one atom position in place under the selected coordinate and Z policy.
- set_atom_position_with_params_(atom, position, params) None¶
Replace one atom position in place under the selected coordinate and Z policy. Uses the explicit configuration argument.
- set_atom_property_bool_(atom, key, value) None¶
Set the atom’s boolean property in place. atom is a zero-based index; COW isolates other molecular values sharing the original storage.
- set_atom_property_double_(atom, key, value) None¶
Set the atom’s 64-bit floating-point property in place. atom is a zero-based index; COW isolates other molecular values sharing the original storage.
- set_atom_property_int_(atom, key, value) None¶
Set the atom’s signed 32-bit integer property in place. atom is a zero-based index; COW isolates other molecular values sharing the original storage.
- set_atom_property_int_vector_(atom, key, value) None¶
Set the atom’s signed-integer vector property in place. atom is a zero-based index; COW isolates other molecular values sharing the original storage.
- set_atom_property_string_(atom, key, value) None¶
Set the atom’s text property in place. atom is a zero-based index; COW isolates other molecular values sharing the original storage.
- set_atom_property_string_vector_(atom, key, value) None¶
Set the atom’s text-vector property in place. atom is a zero-based index; COW isolates other molecular values sharing the original storage.
- set_atom_property_uint_(atom, key, value) None¶
Set the atom’s unsigned 32-bit integer property in place. atom is a zero-based index; COW isolates other molecular values sharing the original storage.
- set_only_3d_conformer_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], *, is_3d: bool | None = None) int¶
- set_only_3d_conformer_(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], params: Coordinate3DInputParams | None = None) int
Replace all 3D conformers with one containing the supplied coordinates. Each row contains exactly three numeric components.
- set_only_3d_conformer_with_params_(coordinates, params) int¶
Replace all 3D conformers with one containing the supplied coordinates. Each row contains exactly three numeric components. Uses the explicit configuration argument.
- slogp_vsa(*, bins=None, force=None) list[float]¶
Return surface-area bins classified by atomic Crippen logP contributions. bins supplies ordered cut points; None uses native default bins.
- slogp_vsa_1() float¶
Return bin 1 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_10() float¶
Return bin 10 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_11() float¶
Return bin 11 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_12() float¶
Return bin 12 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_2() float¶
Return bin 2 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_3() float¶
Return bin 3 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_4() float¶
Return bin 4 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_5() float¶
Return bin 5 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_6() float¶
Return bin 6 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_7() float¶
Return bin 7 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_8() float¶
Return bin 8 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_9() float¶
Return bin 9 of the default surface-area descriptor classified by atomic Crippen logP.
- slogp_vsa_with_params(bins, force) list[float]¶
Return surface-area bins classified by atomic Crippen logP contributions. bins supplies ordered cut points; None uses native default bins. This entry accepts the explicit native parameter form.
- smr_vsa(*, bins=None, force=None) list[float]¶
Return surface-area bins classified by atomic Crippen molar-refractivity contributions. bins supplies ordered cut points; None uses native defaults.
- smr_vsa_1() float¶
Return bin 1 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_10() float¶
Return bin 10 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_2() float¶
Return bin 2 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_3() float¶
Return bin 3 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_4() float¶
Return bin 4 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_5() float¶
Return bin 5 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_6() float¶
Return bin 6 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_7() float¶
Return bin 7 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_8() float¶
Return bin 8 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_9() float¶
Return bin 9 of the default surface-area descriptor classified by atomic Crippen molar refractivity.
- smr_vsa_with_params(bins, force) list[float]¶
Return surface-area bins classified by atomic Crippen molar-refractivity contributions. bins supplies ordered cut points; None uses native defaults. This entry accepts the explicit native parameter form.
- stereoisomer_count(*, try_embedding: bool | None = None, only_unassigned: bool | None = None, max_isomers: SupportsIndex | None = None, random_source: StereoisomerRandomSource | None = None, unique: bool | None = None, only_stereo_groups: bool | None = None) int¶
- stereoisomer_count(options: StereoisomerOptions | None = None) int
Return the arbitrary-precision count from the native stereoisomer enumeration policy.
- stereoisomer_count_with_options(options) int¶
Return the arbitrary-precision count from the native stereoisomer enumeration policy. Uses the explicitly supplied options.
- substruct_match(query: QueryGraph, *, max_matches: SupportsIndex | None = None, uniquify: bool | None = None, use_chirality: bool | None = None, use_enhanced_stereo: bool | None = None, specified_stereo_query_matches_unspecified: bool | None = None, use_query_query_matches: bool | None = None, recursion_possible: bool | None = None, max_recursive_matches: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, aromatic_matches_conjugated: bool | None = None, aromatic_matches_single_or_double: bool | None = None, extra_atom_check_overrides_default_check: bool | None = None, extra_bond_check_overrides_default_check: bool | None = None, use_generic_matchers: bool | None = None, atom_properties: _typeshed.SupportsGetItem[int, str] | None = None, bond_properties: _typeshed.SupportsGetItem[int, str] | None = None, final_match: collections.abc.Callable[[Molecule, collections.abc.Sequence[int]], bool] | None = None, atom_match: collections.abc.Callable[[QueryGraph, QueryAtom, Molecule, Atom], bool] | None = None, bond_match: collections.abc.Callable[[Bond, Bond], bool] | None = None, extra_final_check: collections.abc.Callable[[Molecule, collections.abc.Sequence[int]], bool] | None = None, extra_atom_check: collections.abc.Callable[[QueryGraph, QueryAtom, Molecule, Atom], bool] | None = None, extra_bond_check: collections.abc.Callable[[Bond, Bond], bool] | None = None) MatchResult | None¶
- substruct_match(query: QueryGraph, params: SubstructMatchParams | None = None) MatchResult | None
Find the first query match, returning its atom mapping or None. Supply SubstructMatchParams or keyword options, not both.
- substruct_match_with_params(query, params) MatchResult | None¶
Find the first query match, returning its atom mapping or None. Supply SubstructMatchParams or keyword options, not both. Uses the explicitly supplied parameter form.
- substruct_matches(query: QueryGraph, *, max_matches: SupportsIndex | None = None, uniquify: bool | None = None, use_chirality: bool | None = None, use_enhanced_stereo: bool | None = None, specified_stereo_query_matches_unspecified: bool | None = None, use_query_query_matches: bool | None = None, recursion_possible: bool | None = None, max_recursive_matches: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, aromatic_matches_conjugated: bool | None = None, aromatic_matches_single_or_double: bool | None = None, extra_atom_check_overrides_default_check: bool | None = None, extra_bond_check_overrides_default_check: bool | None = None, use_generic_matchers: bool | None = None, atom_properties: _typeshed.SupportsGetItem[int, str] | None = None, bond_properties: _typeshed.SupportsGetItem[int, str] | None = None, final_match: collections.abc.Callable[[Molecule, collections.abc.Sequence[int]], bool] | None = None, atom_match: collections.abc.Callable[[QueryGraph, QueryAtom, Molecule, Atom], bool] | None = None, bond_match: collections.abc.Callable[[Bond, Bond], bool] | None = None, extra_final_check: collections.abc.Callable[[Molecule, collections.abc.Sequence[int]], bool] | None = None, extra_atom_check: collections.abc.Callable[[QueryGraph, QueryAtom, Molecule, Atom], bool] | None = None, extra_bond_check: collections.abc.Callable[[Bond, Bond], bool] | None = None) list[MatchResult]¶
- substruct_matches(query: QueryGraph, params: SubstructMatchParams | None = None) list[MatchResult]
Return query matches in native order under the selected uniqueness, chirality and match-limit settings. Supply Params or keywords, not both.
- substruct_matches_compiled(query) list[MatchResult]¶
Match an already compiled query without recompiling its query representation.
- substruct_matches_with_params(query, params) list[MatchResult]¶
Return query matches in native order under the selected uniqueness, chirality and match-limit settings. Supply Params or keywords, not both. Uses the explicitly supplied parameter form.
- symmetrized_sssr(*, include_dative_bonds: bool | None = None, include_hydrogen_bonds: bool | None = None) RingSearchResult¶
- symmetrized_sssr(params: RingSearchParams | None = None) RingSearchResult
Calculate the complete symmetrized SSSR ring collection without modifying the source molecule.
- symmetrized_sssr_with_params(params) RingSearchResult¶
Calculate the complete symmetrized SSSR ring collection without modifying the source molecule. Uses the explicitly supplied parameter form.
- tautomer_score(*, terms: _typeshed.SupportsGetItem[int, TautomerScoreTerm] | None = None) TautomerScore¶
- tautomer_score(params: TautomerScoreParams | None = None) TautomerScore
Calculate the tautomer score using the supplied scoring terms and options.
- tautomer_score_with_params(params) TautomerScore¶
Calculate the tautomer score using the supplied scoring terms and options. Uses the explicitly supplied parameter form.
- tetrahedral_stereo(include_unassigned=True) list[tuple[int, list[int | None] | None]]¶
Return (center, configuration) pairs. An undetermined configuration is None; within an ordered configuration, None denotes hydrogen or a lone pair.
- to_binary() bytes¶
Serialize the molecular value to COSMolKit archive bytes for later from_binary or pickle reconstruction.
- to_builder() MoleculeBuilder¶
Create a molecule builder initialized from this molecular value.
- to_cx_smarts(*, include_atom_maps: bool | None = None, isomeric_smiles: bool | None = None, include_dative_bonds: bool | None = None, rooted_at_atom: SupportsIndex | None = None) str¶
- to_cx_smarts(params: SmartsWriteParams | None = None) str
Serialize SMARTS with CX extensions without changing the molecule. Supply SmartsWriteParams or keyword options, not both.
- to_cx_smarts_with_params(params) str¶
Serialize SMARTS with CX extensions without changing the molecule. Supply SmartsWriteParams or keyword options, not both. This entry accepts the explicit native parameter form.
- to_cx_smiles(*, smiles: SmilesWriteParams | None = None, fields: CxSmilesFields | str | None = None, coordinate_selection: CxCoordinateSelection | str | None = None) str¶
- to_cx_smiles(params: CxSmilesWriteParams | None = None) str
Serialize SMILES with the selected CX extensions. Supply CxSmilesWriteParams or keyword options, not both.
- to_cx_smiles_with_params(params) str¶
Serialize SMILES with the selected CX extensions. Supply CxSmilesWriteParams or keyword options, not both. Uses the explicitly supplied parameter form.
- to_fragment_cx_smiles(atoms: _typeshed.SupportsGetItem[int, SupportsIndex], *, cx: CxSmilesWriteParams | None = None, bonds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, atom_symbols: _typeshed.SupportsGetItem[int, str] | None = None, bond_symbols: _typeshed.SupportsGetItem[int, str] | None = None) str¶
- to_fragment_cx_smiles(params: FragmentCxSmilesWriteParams) str
Serialize selected atoms and bonds as fragment CXSMILES with the requested extensions.
- to_fragment_cx_smiles_with_params(params) str¶
Serialize selected atoms and bonds as fragment CXSMILES with the requested extensions. Uses the explicitly supplied parameter form.
- to_fragment_smiles(atoms: _typeshed.SupportsGetItem[int, SupportsIndex], *, smiles: SmilesWriteParams | None = None, bonds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, atom_symbols: _typeshed.SupportsGetItem[int, str] | None = None, bond_symbols: _typeshed.SupportsGetItem[int, str] | None = None) str¶
- to_fragment_smiles(params: FragmentSmilesWriteParams) str
Serialize only the selected atoms and bonds as fragment SMILES, without changing the molecule.
- to_fragment_smiles_with_params(params) str¶
Serialize only the selected atoms and bonds as fragment SMILES, without changing the molecule. Uses the explicitly supplied parameter form.
- to_inchi(*, options: str | None = None) str¶
- to_inchi(params: InchiWriteParams | None = None) str
Generate an InChI string using the selected native InChI options.
- to_inchi_key(*, options: str | None = None) str¶
- to_inchi_key(params: InchiWriteParams | None = None) str
Generate the InChIKey for this molecule with the selected InChI options.
- to_inchi_key_with_params(params) str¶
Generate the InChIKey for this molecule with the selected InChI options. Uses the explicitly supplied parameter form.
- to_inchi_result(*, options: str | None = None) InchiResult¶
- to_inchi_result(params: InchiWriteParams | None = None) InchiResult
Generate InChI with the native result metadata and diagnostic information.
- to_inchi_result_with_params(params) InchiResult¶
Generate InChI with the native result metadata and diagnostic information. Uses the explicitly supplied parameter form.
- to_inchi_with_params(params) str¶
Generate an InChI string using the selected native InChI options. Uses the explicitly supplied parameter form.
- to_mol(*, format: SdfFormat | str | None = None, force_2d: bool | None = None, include_stereo: bool | None = None, kekulize: bool | None = None, precision: SupportsIndex | None = None, coordinate_selection: MolCoordinateSelection | str | None = None, include_coordinates: bool | None = None) str¶
- to_mol(params: MolBlockWriteParams | None = None) str
Serialize the molecule as MDL MolBlock text with the selected writer and coordinate options; does not write a file.
- to_mol_with_params(params) str¶
Serialize the molecule as MDL MolBlock text with the selected writer and coordinate options; does not write a file. Uses explicit writer parameters.
- to_pdb(*, coordinate_selection: MolCoordinateSelection | str | None = None, all_conformers: bool | None = None, flavor: PdbWriteFlags | None = None) str¶
- to_pdb(params: PdbWriteParams | None = None) str
Serialize the molecule as PDB text with the selected writer and coordinate options; does not write a file.
- to_pdb_with_params(params) str¶
Serialize the molecule as PDB text with the selected writer and coordinate options; does not write a file. Uses explicit writer parameters.
- to_random_smiles(count: SupportsIndex, seed: SupportsIndex, *, isomeric_smiles: bool | None = None, kekule: bool | None = None, all_bonds_explicit: bool | None = None, all_hydrogens_explicit: bool | None = None) list[str]¶
- to_random_smiles(count: SupportsIndex, seed: SupportsIndex, params: RandomSmilesWriteParams | None = None) list[str]
Generate randomized SMILES using the requested count and random seed; molecular chemistry is unchanged.
- to_random_smiles_with_params(count, seed, params) list[str]¶
Generate randomized SMILES using the requested count and random seed; molecular chemistry is unchanged. Uses the explicitly supplied parameter form.
- to_sdf(*, format: SdfFormat | str | None = None, force_2d: bool | None = None, include_stereo: bool | None = None, kekulize: bool | None = None, precision: SupportsIndex | None = None, coordinate_selection: MolCoordinateSelection | str | None = None, include_coordinates: bool | None = None) str¶
- to_sdf(params: MolBlockWriteParams | None = None) str
Serialize the molecule as SDF text with the selected writer and coordinate options; does not write a file.
- to_sdf_2d(*, format: SdfFormat | str | None = None, force_2d: bool | None = None, include_stereo: bool | None = None, kekulize: bool | None = None, precision: SupportsIndex | None = None, coordinate_selection: MolCoordinateSelection | str | None = None, include_coordinates: bool | None = None) str¶
- to_sdf_2d(params: MolBlockWriteParams | None = None) str
Serialize SDF using the molecule’s 2D coordinate selection and the supplied writer options. Returns text without writing a file.
- to_sdf_2d_with_params(params) str¶
Serialize SDF using the molecule’s 2D coordinate selection and the supplied writer options. Returns text without writing a file.
- to_sdf_3d(*, format: SdfFormat | str | None = None, force_2d: bool | None = None, include_stereo: bool | None = None, kekulize: bool | None = None, precision: SupportsIndex | None = None, coordinate_selection: MolCoordinateSelection | str | None = None, include_coordinates: bool | None = None) str¶
- to_sdf_3d(params: MolBlockWriteParams | None = None) str
Serialize SDF using the molecule’s 3D coordinate selection and the supplied writer options. Returns text without writing a file.
- to_sdf_3d_with_params(params) str¶
Serialize SDF using the molecule’s 3D coordinate selection and the supplied writer options. Returns text without writing a file.
- to_sdf_with_params(params) str¶
Serialize the molecule as SDF text with the selected writer and coordinate options; does not write a file. Uses explicit writer parameters.
- to_smarts(*, include_atom_maps: bool | None = None, isomeric_smiles: bool | None = None, include_dative_bonds: bool | None = None, rooted_at_atom: SupportsIndex | None = None) str¶
- to_smarts(params: SmartsWriteParams | None = None) str
Serialize the molecule as SMARTS without changing it. Supply SmartsWriteParams or keyword options, not both.
- to_smarts_with_params(params) str¶
Serialize the molecule as SMARTS without changing it. Supply SmartsWriteParams or keyword options, not both. This entry accepts the explicit native parameter form.
- to_smiles(*, isomeric_smiles: bool | None = None, kekule: bool | None = None, canonical: bool | None = None, clean_stereo: bool | None = None, rooted_at_atom: SupportsIndex | None = None, all_bonds_explicit: bool | None = None, all_hydrogens_explicit: bool | None = None, include_dative_bonds: bool | None = None, ignore_atom_map_numbers: bool | None = None) str¶
- to_smiles(params: SmilesWriteParams | None = None) str
Serialize SMILES with the selected canonicalization, stereochemistry and atom-order options. Supply SmilesWriteParams or keywords, not both.
- to_smiles_with_params(params) str¶
Serialize SMILES with the selected canonicalization, stereochemistry and atom-order options. Supply SmilesWriteParams or keywords, not both. Uses the explicitly supplied parameter form.
- to_svg(width=300, height=300) str¶
Render SVG XML text. Width and height default to 300 pixels each.
- to_xyz(*, conformer_id: SupportsIndex | None = None, precision: SupportsIndex | None = None) str¶
- to_xyz(params: XyzWriteParams | None = None) str
Serialize the molecule as XYZ text with the selected writer and coordinate options; does not write a file.
- to_xyz_with_params(params) str¶
Serialize the molecule as XYZ text with the selected writer and coordinate options; does not write a file. Uses explicit writer parameters.
- topological_torsion_ids(torsion_atom_count=None) list[int]¶
Return legacy topological torsion identifiers with the requested torsion and chirality settings.
- topological_torsion_ids_with_params(torsion_atom_count) list[int]¶
Return legacy topological torsion identifiers with the requested torsion and chirality settings. This entry accepts the explicit native parameter form.
- topological_torsion_path_score(path, size, atom_codes=None) int¶
Calculate the canonical topological torsion score for the supplied atom path.
- topology: TopologyBlock¶
Return the detached topology value; modifying another molecule cannot invalidate this read.
- total_atom_count() int¶
Count atoms including explicit and implicit hydrogens, rather than only stored atom rows.
- tpsa(*, include_sulfur_phosphorus=None, force=None) float¶
Calculate topological polar surface area. include_sulfur_phosphorus includes sulfur and phosphorus fragments; force requests recalculation.
- tpsa_with_params(include_sulfur_phosphorus, force) float¶
Calculate topological polar surface area. include_sulfur_phosphorus includes sulfur and phosphorus fragments; force requests recalculation. This entry accepts the explicit native parameter form.
- uff_energy_gradient(*, vdw_threshold: SupportsFloat | SupportsIndex | None = None, conformer_id: SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) UffEnergyGradient¶
- uff_energy_gradient(params: UffEvaluationParams | None = None) UffEnergyGradient
Evaluate UFF energy and coordinate gradients for the selected conformer without minimizing it.
- uff_energy_gradient_with_params(params) UffEnergyGradient¶
Evaluate UFF energy and coordinate gradients for the selected conformer without minimizing it. Uses the explicitly supplied parameter form.
- uff_force_field(*, conformer_id: SupportsIndex | None = None, vdw_threshold: SupportsFloat | SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) MolecularForceField¶
- uff_force_field(params: UffForceFieldParams | None = None) MolecularForceField
Construct a persistent UFF force field for the selected conformer, for evaluation, constraints and minimization without rebuilding the field.
- uff_has_all_molecule_params() bool¶
Return whether UFF parameters are available for every required atom in the molecule.
- with_2d_coordinate_block(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex]], *, z_policy: CoordinateZPolicy | str | None = None) Molecule¶
- with_2d_coordinate_block(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex]], params: Coordinate2DInputParams | None = None) Molecule
Return a new molecule with the supplied 2D coordinate block installed. This installs coordinates rather than generating a layout.
- with_2d_coordinate_block_with_params(coordinates, params) Molecule¶
Return a new molecule with the supplied 2D coordinate block installed. This installs coordinates rather than generating a layout. Uses the explicit configuration argument.
- with_2d_coordinates(*, coordinate_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, canonical_orientation: bool | None = None, clear_existing_2d: bool | None = None, flips_per_sample: SupportsIndex | None = None, samples: SupportsIndex | None = None, sample_seed: SupportsIndex | None = None, permute_degree_four: bool | None = None, force_rdkit: bool | None = None, use_ring_templates: bool | None = None, use_path_angle_expansion: bool | None = None) Molecule¶
- with_2d_coordinates(params: Coordinate2DParams | None = None) Molecule
Generate a 2D depiction layout in a new molecule. Supply Coordinate2DParams or keyword layout options, not both; the source is unchanged.
- with_2d_coordinates_with_params(params) Molecule¶
Generate a 2D depiction layout in a new molecule using Coordinate2DParams; the source is unchanged.
- with_3d_conformer(*, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) Molecule¶
- with_3d_conformer(params: EmbedParams | None = None) Molecule
Embed a 3D conformer in a new molecular value using the selected distance-geometry parameters.
- with_3d_conformer_result(*, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) EmbedMoleculeResult¶
- with_3d_conformer_result(params: EmbedParams | None = None) EmbedMoleculeResult
Embed a 3D conformer and return a new molecule with its generation outcome and diagnostics. A failed attempt is not a valid conformer identifier.
- with_3d_conformer_result_with_params(params) EmbedMoleculeResult¶
Embed a 3D conformer and return a new molecule with its generation outcome and diagnostics. A failed attempt is not a valid conformer identifier. Uses the explicit configuration argument.
- with_3d_conformer_with_params(params) Molecule¶
Embed a 3D conformer in a new molecular value using the selected distance-geometry parameters. Uses the explicit configuration argument.
- with_3d_conformers(num_confs: SupportsIndex, *, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) Molecule¶
- with_3d_conformers(num_confs: SupportsIndex, params: EmbedParams | None = None) Molecule
Embed the requested number of 3D conformers in a new molecular value under the selected sampling and pruning policy.
- with_3d_conformers_result(num_confs: SupportsIndex, *, max_iterations: SupportsIndex | None = None, num_threads: SupportsIndex | None = None, random_seed: SupportsIndex | None = None, clear_conformers: bool | None = None, use_random_coords: bool | None = None, box_size_mult: SupportsFloat | SupportsIndex | None = None, rand_neg_eig: bool | None = None, num_zero_fail: SupportsIndex | None = None, coord_map: dict[SupportsIndex, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]] | None = None, optimizer_force_tol: SupportsFloat | SupportsIndex | None = None, ignore_smoothing_failures: bool | None = None, enforce_chirality: bool | None = None, use_exp_torsion_angle_prefs: bool | None = None, use_basic_knowledge: bool | None = None, verbose: bool | None = None, basin_thresh: SupportsFloat | SupportsIndex | None = None, prune_rms_thresh: SupportsFloat | SupportsIndex | None = None, only_heavy_atoms_for_rms: bool | None = None, et_version: SupportsIndex | None = None, embed_fragments_separately: bool | None = None, use_small_ring_torsions: bool | None = None, use_macrocycle_torsions: bool | None = None, use_macrocycle14config: bool | None = None, timeout: SupportsIndex | None = None, cpci: dict[tuple[SupportsIndex, SupportsIndex], SupportsFloat | SupportsIndex] | None = None, force_trans_amides: bool | None = None, use_symmetry_for_pruning: bool | None = None, bounds_mat_force_scaling: SupportsFloat | SupportsIndex | None = None, track_failures: bool | None = None, enable_sequential_random_seeds: bool | None = None, symmetrize_conjugated_terminal_groups_for_pruning: bool | None = None) EmbedMultipleConfsResult¶
- with_3d_conformers_result(num_confs: SupportsIndex, params: EmbedParams | None = None) EmbedMultipleConfsResult
Return a new molecule with multiple-conformer generation results and diagnostics. Requested attempts and successful conformers are distinct counts.
- with_3d_conformers_result_with_params(num_confs, params) EmbedMultipleConfsResult¶
Return a new molecule with multiple-conformer generation results and diagnostics. Requested attempts and successful conformers are distinct counts. Uses the explicit configuration argument.
- with_3d_conformers_with_params(num_confs, params) Molecule¶
Embed the requested number of 3D conformers in a new molecular value under the selected sampling and pruning policy. Uses the explicit configuration argument.
- with_3d_coordinates(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], *, conformer_id: SupportsIndex | None = None) Molecule¶
- with_3d_coordinates(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], params: Replace3DCoordinatesParams | None = None) Molecule
Return a new molecule with supplied 3D coordinate rows installed under the selected input policy. Does not run conformer embedding.
- with_3d_coordinates_with_params(coordinates, params) Molecule¶
Return a new molecule with supplied 3D coordinate rows installed under the selected input policy. Does not run conformer embedding. Uses the explicit configuration argument.
- with_added_3d_conformer(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], *, is_3d: bool | None = None) Molecule¶
- with_added_3d_conformer(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], params: Coordinate3DInputParams | None = None) Molecule
Return a new molecule with an additional 3D conformer containing the supplied coordinates.
- with_added_3d_conformer_with_params(coordinates, params) Molecule¶
Return a new molecule with an additional 3D conformer containing the supplied coordinates. Uses the explicit configuration argument.
- with_aligned_conformers(*, atom_indices: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, conformer_ids: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, reflect: bool | None = None, max_iterations: SupportsIndex | None = None) tuple[Molecule, ConformerAlignmentReport]¶
- with_aligned_conformers(params: ConformerAlignmentParameters | None = None) tuple[Molecule, ConformerAlignmentReport]
Return a new molecule with its conformers aligned according to the supplied parameters.
- with_aligned_conformers_with_params(params) tuple[Molecule, ConformerAlignmentReport]¶
Return a new molecule with its conformers aligned according to the supplied parameters. Uses the explicitly supplied parameter form.
- with_alignment_to(reference: Molecule, *, probe_conformer_id: SupportsIndex | None = None, reference_conformer_id: SupportsIndex | None = None, atom_map: _typeshed.SupportsGetItem[int, AlignmentAtomMap] | None = None, weights: _typeshed.SupportsGetItem[int, SupportsFloat | SupportsIndex] | None = None, reflect: bool | None = None, max_iterations: SupportsIndex | None = None) tuple[Molecule, AlignmentResult]¶
- with_alignment_to(reference: Molecule, params: AlignmentParameters | None = None) tuple[Molecule, AlignmentResult]
Return a new molecule aligned to the reference coordinates, preserving the source molecule.
- with_alignment_to_with_params(reference, params) tuple[Molecule, AlignmentResult]¶
Return a new molecule aligned to the reference coordinates, preserving the source molecule. Uses the explicitly supplied parameter form.
- with_assigned_aromaticity(*, model: AromaticityModel | str | None = None) Molecule¶
- with_assigned_aromaticity(params: AromaticityParams | None = None) Molecule
Return a new molecule with aromaticity assigned by the selected aromaticity model.
- with_assigned_aromaticity_with_params(params) Molecule¶
Return a new molecule with aromaticity assigned by the selected aromaticity model. Uses the explicit configuration argument.
- with_assigned_radicals() Molecule¶
Return a new molecule with radical-electron counts assigned by the native radical assignment.
- with_assigned_ring_families(*, include_dative_bonds: bool | None = None, include_hydrogen_bonds: bool | None = None) Molecule¶
- with_assigned_ring_families(params: RingSearchParams | None = None) Molecule
Return a new molecule with ring families calculated using the selected ring-search policy.
- with_assigned_ring_families_with_params(params) Molecule¶
Return a new molecule with ring families calculated using the selected ring-search policy. Uses the explicit configuration argument.
- with_assigned_valence(*, model: ValenceModel | str | None = None, strict: bool | None = None) Molecule¶
- with_assigned_valence(params: ValenceParams | None = None) Molecule
Return a new molecule with valence information assigned under the selected valence model and strictness.
- with_assigned_valence_with_params(params) Molecule¶
Return a new molecule with valence information assigned under the selected valence model and strictness. Uses the explicit configuration argument.
- with_atom_pair_atom_code(atom_id, branch_subtract=0, include_chirality=False, use_legacy_stereo_perception=True) AtomPairAtomCodeResult¶
Return the native atom-pair code result for the selected atom and encoding options.
- with_atom_position(atom: SupportsIndex, position: _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex], *, conformer_id: SupportsIndex | None = None) Molecule¶
- with_atom_position(atom: SupportsIndex, position: _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex], params: AtomPositionParams | None = None) Molecule
Return a new molecule with one atom position replaced under the selected coordinate and Z policy. The source is unchanged.
- with_atom_position_with_params(atom, position, params) Molecule¶
Return a new molecule with one atom position replaced under the selected coordinate and Z policy. The source is unchanged. Uses the explicit configuration argument.
- with_atom_property_bool(atom, key, value) Molecule¶
Return a new molecule with the atom’s boolean property set to value. The source molecule is unchanged; atom is a zero-based index.
- with_atom_property_double(atom, key, value) Molecule¶
Return a new molecule with the atom’s 64-bit floating-point property set to value. The source molecule is unchanged; atom is a zero-based index.
- with_atom_property_int(atom, key, value) Molecule¶
Return a new molecule with the atom’s signed 32-bit integer property set to value. The source molecule is unchanged; atom is a zero-based index.
- with_atom_property_int_vector(atom, key, value) Molecule¶
Return a new molecule with the atom’s signed-integer vector property set to value. The source molecule is unchanged; atom is a zero-based index.
- with_atom_property_string(atom, key, value) Molecule¶
Return a new molecule with the atom’s text property set to value. The source molecule is unchanged; atom is a zero-based index.
- with_atom_property_string_vector(atom, key, value) Molecule¶
Return a new molecule with the atom’s text-vector property set to value. The source molecule is unchanged; atom is a zero-based index.
- with_atom_property_uint(atom, key, value) Molecule¶
Return a new molecule with the atom’s unsigned 32-bit integer property set to value. The source molecule is unchanged; atom is a zero-based index.
- with_chiral_tags_from_structure(*, conformer_id: SupportsIndex | None = None, replace_existing_tags: bool | None = None) Molecule¶
- with_chiral_tags_from_structure(params: StructureTagParams | None = None) Molecule
Return a new molecule with chiral tags assigned from the selected coordinate structure.
- with_chiral_tags_from_structure_with_params(params) Molecule¶
Return a new molecule with chiral tags assigned from the selected coordinate structure. Uses the explicit configuration argument.
- with_cip_labels(*, atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, bonds: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None, max_recursive_iterations: SupportsIndex | None = None) Molecule¶
- with_cip_labels(options: CipLabelOptions | None = None) Molecule
Return a new molecule with CIP labels assigned under the selected complete or partial assignment options.
- with_cip_labels_with_options(options) Molecule¶
Return a new molecule with CIP labels assigned under the selected complete or partial assignment options. Uses the explicit configuration argument.
- with_cleared_3d_conformers() Molecule¶
Return a new molecule with all 3D conformers removed. The source molecule and its 2D coordinate block are unchanged.
- with_hydrogens(*, explicit_only: bool | None = None, add_coords: bool | None = None, add_residue_info: bool | None = None, skip_queries: bool | None = None, only_on_atoms: _typeshed.SupportsGetItem[int, SupportsIndex] | None = None) Molecule¶
- with_hydrogens(params: AddHsParams | None = None) Molecule
Return a molecule with explicit hydrogen atoms added; the source molecule is unchanged. Supply either AddHsParams or keyword options, never both. With no options, use the Rust defaults. only_on_atoms limits addition to the selected zero-based atom indices; add_coords requests hydrogen coordinates.
- with_hydrogens_with_params(params) Molecule¶
Return a new molecule with explicit hydrogen atoms added using AddHsParams; the source molecule is unchanged.
- with_kekulized_bonds(*, mark_atoms_bonds: bool | None = None, canonical: bool | None = None, max_backtracks: SupportsIndex | None = None) Molecule¶
- with_kekulized_bonds(params: KekulizeParams | None = None) Molecule
Return a new molecule with Kekule bond orders assigned under the selected aromatic-flag policy.
- with_kekulized_bonds_with_params(params) Molecule¶
Return a new molecule with Kekule bond orders assigned under the selected aromatic-flag policy. Uses the explicit configuration argument.
- with_mmff_optimized(*, mmff_variant: MmffVariant | str | None = None, max_iterations: SupportsIndex | None = None, non_bonded_threshold: SupportsFloat | SupportsIndex | None = None, conformer_id: SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) MmffOptimizeMoleculeResult¶
- with_mmff_optimized(params: MmffOptimizationParams | None = None) MmffOptimizeMoleculeResult
Return a new molecule and MMFF minimization outcome for the selected conformer, leaving the source unchanged.
- with_mmff_optimized_conformers(*, num_threads: SupportsIndex | None = None, max_iterations: SupportsIndex | None = None, mmff_variant: MmffVariant | str | None = None, non_bonded_threshold: SupportsFloat | SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) MmffOptimizeMoleculeConfsResult¶
- with_mmff_optimized_conformers(params: MmffConformerOptimizationParams | None = None) MmffOptimizeMoleculeConfsResult
Optimize the molecule’s conformers with MMFF and return the new molecule with per-conformer outcomes.
- with_mmff_optimized_conformers_with_params(params) MmffOptimizeMoleculeConfsResult¶
Optimize the molecule’s conformers with MMFF and return the new molecule with per-conformer outcomes. Uses the explicitly supplied parameter form.
- with_mmff_optimized_with_params(params) MmffOptimizeMoleculeResult¶
Return a new molecule and MMFF minimization outcome for the selected conformer, leaving the source unchanged. Uses the explicitly supplied parameter form.
- with_only_3d_conformer(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], *, is_3d: bool | None = None) Molecule¶
- with_only_3d_conformer(coordinates: _typeshed.SupportsGetItem[int, _typeshed.SupportsLenAndGetItem[SupportsFloat | SupportsIndex]], params: Coordinate3DInputParams | None = None) Molecule
Return a new molecule whose only 3D conformer contains the supplied coordinates. Rows contain exactly three numeric components.
- with_only_3d_conformer_with_params(coordinates, params) Molecule¶
Return a new molecule whose only 3D conformer contains the supplied coordinates. Rows contain exactly three numeric components. Uses the explicit configuration argument.
- with_uff_optimized(*, max_iterations: SupportsIndex | None = None, vdw_threshold: SupportsFloat | SupportsIndex | None = None, conformer_id: SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) UffOptimizationResult¶
- with_uff_optimized(params: UffOptimizationParams | None = None) UffOptimizationResult
Return a new molecule and UFF minimization outcome for the selected conformer, leaving the source unchanged.
- with_uff_optimized_conformers(*, num_threads: SupportsIndex | None = None, max_iterations: SupportsIndex | None = None, vdw_threshold: SupportsFloat | SupportsIndex | None = None, ignore_interfragment_interactions: bool | None = None) UffConformerOptimizationResult¶
- with_uff_optimized_conformers(params: UffConformerOptimizationParams | None = None) UffConformerOptimizationResult
Optimize the molecule’s conformers with UFF and return the new molecule with per-conformer outcomes.
- with_uff_optimized_conformers_with_params(params) UffConformerOptimizationResult¶
Optimize the molecule’s conformers with UFF and return the new molecule with per-conformer outcomes. Uses the explicitly supplied parameter form.
- with_uff_optimized_with_params(params) UffOptimizationResult¶
Return a new molecule and UFF minimization outcome for the selected conformer, leaving the source unchanged. Uses the explicitly supplied parameter form.
- without_hydrogens(*, remove_degree_zero: bool | None = None, remove_higher_degrees: bool | None = None, remove_only_h_neighbors: bool | None = None, remove_isotopes: bool | None = None, remove_and_track_isotopes: bool | None = None, remove_dummy_neighbors: bool | None = None, remove_defining_bond_stereo: bool | None = None, remove_with_wedged_bond: bool | None = None, remove_with_query: bool | None = None, remove_mapped: bool | None = None, remove_in_sgroups: bool | None = None, show_warnings: bool | None = None, remove_nonimplicit: bool | None = None, update_explicit_count: bool | None = None, remove_hydrides: bool | None = None, remove_nontetrahedral_neighbors: bool | None = None, sanitize: bool | None = None) Molecule¶
- without_hydrogens(params: RemoveHsParams | None = None) Molecule
Return a new molecule with eligible hydrogen atoms removed under RemoveHsParams. The removal policy determines which isotopic, mapped and stereochemistry-defining hydrogens remain.
- without_hydrogens_with_params(params) Molecule¶
Return a new molecule with eligible hydrogen atoms removed under RemoveHsParams. The removal policy determines which isotopic, mapped and stereochemistry-defining hydrogens remain. Uses the explicit configuration argument.
- write_mol(path: str | os.PathLike[str], *, format: SdfFormat | str | None = None, force_2d: bool | None = None, include_stereo: bool | None = None, kekulize: bool | None = None, precision: SupportsIndex | None = None, coordinate_selection: MolCoordinateSelection | str | None = None, include_coordinates: bool | None = None) None¶
- write_mol(path: str | os.PathLike[str], params: MolBlockWriteParams | None = None) None
Write the molecule as MDL MolBlock to the supplied filesystem path with the selected writer options. IO errors propagate.
- write_mol_with_params(path, params) None¶
Write the molecule as MDL MolBlock to the supplied filesystem path with the selected writer options. IO errors propagate. Uses explicit writer parameters.
- write_png(path, width=300, height=300) None¶
Write PNG to a filesystem path. Width and height default to 300 pixels each.
- write_sdf(path: str | os.PathLike[str], *, format: SdfFormat | str | None = None, force_2d: bool | None = None, include_stereo: bool | None = None, kekulize: bool | None = None, precision: SupportsIndex | None = None, coordinate_selection: MolCoordinateSelection | str | None = None, include_coordinates: bool | None = None) None¶
- write_sdf(path: str | os.PathLike[str], params: MolBlockWriteParams | None = None) None
Write the molecule as SDF to the supplied filesystem path with the selected writer options. IO errors propagate.
- write_sdf_files(directory: str | os.PathLike[str], file_name: str | None = None, *, format: SdfFormat | str | None = None, force_2d: bool | None = None, include_stereo: bool | None = None, kekulize: bool | None = None, precision: SupportsIndex | None = None, coordinate_selection: MolCoordinateSelection | str | None = None, include_coordinates: bool | None = None) pathlib.Path¶
- write_sdf_files(directory: str | os.PathLike[str], file_name: str | None = None, params: MolBlockWriteParams | None = None) pathlib.Path
Write native SDF file outputs under the requested coordinate and writer policy, preserving the canonical file naming and error behavior.
- write_sdf_files_with_params(directory, file_name, params) pathlib.Path¶
Write native SDF file outputs under the requested coordinate and writer policy, preserving the canonical file naming and error behavior.
- write_sdf_with_params(path, params) None¶
Write the molecule as SDF to the supplied filesystem path with the selected writer options. IO errors propagate. Uses explicit writer parameters.
- write_svg(path, width=300, height=300) None¶
Write SVG to a filesystem path. Width and height default to 300 pixels each.
- write_xyz(path: str | os.PathLike[str], *, conformer_id: SupportsIndex | None = None, precision: SupportsIndex | None = None) None¶
- write_xyz(path: str | os.PathLike[str], params: XyzWriteParams | None = None) None
Write the molecule as XYZ to the supplied filesystem path with the selected writer options. IO errors propagate.
- write_xyz_with_params(path, params) None¶
Write the molecule as XYZ to the supplied filesystem path with the selected writer options. IO errors propagate. Uses explicit writer parameters.
- class cosmolkit.BioStructure¶
Owned structural hierarchy, coordinates and source metadata with copy-on-write updates. Models, chains, residues and atoms retain the structure version from which they were obtained.
Members (65)
- assemblies: list[BioAssembly]¶
Independent list of biological assembly definitions.
- atom(id) BioAtom | None¶
Return the atom view at a local ID, or None if the ID is outside the structure.
- atom_by_altloc(residue_id, name, altloc=None) tuple[int, BioAtom]¶
Resolve an atom by residue, name and alternate location; native lookup failures raise BioStructureError.
- atom_position(atom) list[float] | None¶
Return a Cartesian position for the local atom ID, or None if out of range.
- chain(id) BioChain | None¶
Return the chain view at a local ID, or None if the ID is outside the structure.
- connections: list[BioConnection]¶
Independent list of explicit structural connections.
- coordinates: BioCoordinateBlock¶
Detached coordinate block in atom-row order.
- crystal: BioCrystalInfo | None¶
Crystallographic cell and symmetry information, or None when absent.
- entities: list[BioEntityRow]¶
Independent list of detached entity rows.
- find_atom(residue_id, name, request, element=None) tuple[int, BioAtom] | None¶
Find an atom by residue, name, alternate-location request and optional element; return its local ID and view, or None.
- find_entity(source_id) tuple[int, BioEntityRow] | None¶
Find an entity by source identifier, returning its local ID and detached row, or None.
- find_entity_of_subchain(subchain) tuple[int, BioEntityRow] | None¶
Find the entity assigned to a source subchain identifier, or None.
- static from_mmcif(text) BioStructure¶
Parse mmCIF text into a structure preserving hierarchy and source metadata.
- static from_parts(parts) BioStructure¶
Validate detached structure parts and construct an owned BioStructure.
- static from_pdb(text: str, *, max_line_length: SupportsIndex | None = None, check_non_ascii: bool | None = None, ignore_ter: bool | None = None, split_chain_on_ter: bool | None = None, skip_remarks: bool | None = None) BioStructure¶
- static from_pdb(text: str, params: BioPdbReadParams | None = None) BioStructure
Parse PDB text into a structure, preserving hierarchy and source metadata. Use a parameter object or keyword options, not both.
- static from_pdb_with_params(text, params) BioStructure¶
Parse PDB text with explicit native reader parameters.
- static from_text(text: str, *, format: BioCoordinateFormat | str | SupportsIndex | None = None, source_name: str | None = None) BioStructure¶
- static from_text(text: str, params: BioReadParams | None = None) BioStructure
Parse structural-coordinate text using native format selection and source labeling.
- static from_text_with_params(text, params) BioStructure¶
Parse structural-coordinate text with explicit format and source-label parameters.
- has_origx: bool¶
Whether the source explicitly supplied an original-coordinate transform.
- input_format: BioCoordinateFormat¶
Coordinate-file format recorded by the source reader.
- into_parts() BioStructureParts¶
Return detached parts without invalidating Python aliases of this value. The canonical Rust conversion operates on a COW snapshot.
- metadata: BioMetadata¶
Detached copy of experimental, refinement and provenance metadata.
- model(id) BioModel | None¶
Return the model view at a local ID, or None if the ID is outside the structure.
- name: str¶
Structure name retained from the input.
- ncs_oper_identity_id: str | None¶
Identifier of the native identity NCS operator, or None when absent.
- ncs_operators: list[BioNcsOperator]¶
Independent list of non-crystallographic symmetry operators.
- num_atoms: int¶
Number of stored atom rows, including retained alternate locations.
- num_chains: int¶
Number of stored chain rows.
- num_entities: int¶
Number of stored entity rows.
- num_models: int¶
Number of stored model rows.
- num_residues: int¶
Number of stored residue rows.
- origx: BioTransform¶
Original-coordinate transform retained in the source state.
- protein() Protein¶
Create the native protein projection of this structure; projection errors retain their structured cause.
- static read(path, *, format=None) BioStructure¶
Read a structure from a filesystem path with optional explicit format selection.
- static read_with_format(path, format) BioStructure¶
Read a structure from a filesystem path in the specified coordinate format.
- residue(id) BioResidue | None¶
Return the residue view at a local ID, or None if the ID is outside the structure.
- residue_atoms(residue) list[BioAtom] | None¶
Return atom views for the local residue ID, or None if the residue does not exist.
- residues: list[BioResidue]¶
Residue views in stored order, each retaining this structure version.
- resolution: float¶
Resolution value reported in the source, retaining the native missing-value convention.
- retain_selection_(selection) None¶
Retain the selected structure contents in place with native copy-on-write isolation.
- selected_atom_ids(selection) list[int]¶
Return local atom IDs matching the supplied structural selection.
- source_state: BioStructureSourceState¶
Detached source-format state, including retained record annotations.
- ter_status: int¶
Native status of retained PDB TER information.
- to_mmcif(*, atoms: bool | None = None, block_name: bool | None = None, entry: bool | None = None, database_status: bool | None = None, author: bool | None = None, cell: bool | None = None, symmetry: bool | None = None, entity: bool | None = None, entity_poly: bool | None = None, struct_ref: bool | None = None, chem_comp: bool | None = None, exptl: bool | None = None, diffrn: bool | None = None, reflns: bool | None = None, refine: bool | None = None, title_keywords: bool | None = None, ncs: bool | None = None, struct_asym: bool | None = None, origx: bool | None = None, struct_conf: bool | None = None, struct_sheet: bool | None = None, struct_biol: bool | None = None, assembly: bool | None = None, conn: bool | None = None, cis: bool | None = None, modres: bool | None = None, scale: bool | None = None, atom_type: bool | None = None, entity_poly_seq: bool | None = None, tls: bool | None = None, software: bool | None = None, group_pdb: bool | None = None, auth_all: bool | None = None, prefer_pairs: bool | None = None, compact: bool | None = None, misuse_hash: bool | None = None, align_pairs: SupportsIndex | None = None, align_loops: SupportsIndex | None = None) str¶
- to_mmcif(params: BioMmcifWriteParams | None = None) str
Serialize this structure as mmCIF text. Supply a parameter object or category/formatting keywords, not both.
- to_mmcif_with_params(params) str¶
Serialize this structure as mmCIF using explicit category and formatting parameters.
- to_molecule(*, sanitize: bool | None = None, remove_hs: bool | None = None, flavor: PdbReadFlags | None = None, proximity_bonding: bool | None = None) Molecule¶
- to_molecule(params: BioMoleculeParams | None = None) Molecule
Convert the structure through the native molecular reader using a parameter object or mutually exclusive keyword options.
- to_molecule_with_params(params) Molecule¶
Convert the structure to a Molecule using explicit conversion parameters.
- to_pdb(*, ter_records: bool | None = None, numbered_ter: bool | None = None, ter_ignores_type: bool | None = None, preserve_serial: bool | None = None, end_record: bool | None = None) str¶
- to_pdb(params: BioPdbWriteParams | None = None) str
Serialize the structure as PDB text using a parameter object or mutually exclusive keyword options.
- to_pdb_with_params(params) str¶
Serialize the structure as PDB text using explicit writer parameters.
- translate_(offset) None¶
Translate Cartesian positions in place; other copy-on-write structure values remain unchanged.
- validate() None¶
Validate this structure’s native row relationships and coordinate consistency.
- static validate_parts(parts) None¶
Validate the relationships and dimensions of detached structure parts without constructing a structure.
- with_selection(selection) BioStructure¶
Return a new structure containing the selected atoms and their required hierarchy; the source is unchanged.
- with_translated_coordinates(offset) BioStructure¶
Return a new structure with every Cartesian position translated by the three-component offset.
- write_mmcif(path: str | os.PathLike[str], *, atoms: bool | None = None, block_name: bool | None = None, entry: bool | None = None, database_status: bool | None = None, author: bool | None = None, cell: bool | None = None, symmetry: bool | None = None, entity: bool | None = None, entity_poly: bool | None = None, struct_ref: bool | None = None, chem_comp: bool | None = None, exptl: bool | None = None, diffrn: bool | None = None, reflns: bool | None = None, refine: bool | None = None, title_keywords: bool | None = None, ncs: bool | None = None, struct_asym: bool | None = None, origx: bool | None = None, struct_conf: bool | None = None, struct_sheet: bool | None = None, struct_biol: bool | None = None, assembly: bool | None = None, conn: bool | None = None, cis: bool | None = None, modres: bool | None = None, scale: bool | None = None, atom_type: bool | None = None, entity_poly_seq: bool | None = None, tls: bool | None = None, software: bool | None = None, group_pdb: bool | None = None, auth_all: bool | None = None, prefer_pairs: bool | None = None, compact: bool | None = None, misuse_hash: bool | None = None, align_pairs: SupportsIndex | None = None, align_loops: SupportsIndex | None = None) None¶
- write_mmcif(path: str | os.PathLike[str], params: BioMmcifWriteParams | None = None) None
Write mmCIF to a filesystem path using a parameter object or mutually exclusive keyword options.
- write_mmcif_with_params(path, params) None¶
Write mmCIF to a filesystem path using explicit writer parameters.
- write_pdb(path: str | os.PathLike[str], *, ter_records: bool | None = None, numbered_ter: bool | None = None, ter_ignores_type: bool | None = None, preserve_serial: bool | None = None, end_record: bool | None = None) None¶
- write_pdb(path: str | os.PathLike[str], params: BioPdbWriteParams | None = None) None
Write PDB to a filesystem path using a parameter object or mutually exclusive keyword options.
- write_pdb_with_params(path, params) None¶
Write PDB to a filesystem path using explicit writer parameters.
- class cosmolkit.Protein¶
Protein projection of a biological structure, with COW transforms and owner-retaining hierarchy views.
Members (26)
- as_bio_structure() BioStructure¶
Return a COW value of the underlying biological structure.
- atoms: list[ProteinAtomRef]¶
Atom views retaining the protein owner, in stored order.
- chain(index) ProteinChainRef | None¶
Return the chain at a zero-based index, or None if out of range.
- chains: list[ProteinChainRef]¶
Chain views retaining the protein owner, in stored order.
- static from_pdb(text: str, *, max_line_length: SupportsIndex | None = None, check_non_ascii: bool | None = None, ignore_ter: bool | None = None, split_chain_on_ter: bool | None = None, skip_remarks: bool | None = None) Protein¶
- static from_pdb(text: str, params: BioPdbReadParams | None = None) Protein
Parse PDB text into the native protein projection; use either parameters or keyword parsing options.
- static from_pdb_with_params(text, params) Protein¶
Parse PDB text into a protein using explicit reader parameters.
- static from_text(text: str, *, format: BioCoordinateFormat | str | SupportsIndex | None = None, source_name: str | None = None) Protein¶
- static from_text(text: str, params: BioReadParams | None = None) Protein
Parse structural text into the native protein projection using format-aware reader options.
- static from_text_with_params(text, params) Protein¶
Parse structural text with explicit BIO reader parameters.
- input_format: BioCoordinateFormat¶
Detected or selected coordinate-file format.
- into_bio_structure() BioStructure¶
Return a COW snapshot without invalidating aliases to the Python value.
- num_atoms: int¶
Number of stored atoms.
- num_chains: int¶
Number of stored chains.
- num_models: int¶
Number of stored models.
- num_residues: int¶
Number of stored residues.
- static read(path, *, format=None) Protein¶
Read a protein from a filesystem path using native format detection.
- static read_with_format(path, format) Protein¶
Read a protein from a filesystem path using the explicitly selected format.
- residues: list[ProteinResidueRef]¶
Residue views retaining the protein owner, in stored order.
- retain_selection_(selection) None¶
Retain only the selected structure in place, preserving existing shared views through COW.
- selection_summary() ProteinSelectionSummary¶
Return chain, residue and atom counts for this protein.
- to_molecule(*, sanitize: bool | None = None, remove_hs: bool | None = None, flavor: PdbReadFlags | None = None, proximity_bonding: bool | None = None) Molecule¶
- to_molecule(params: BioMoleculeParams | None = None) Molecule
Convert the protein structure to a molecular value using native bond construction and sanitization options.
- to_molecule_with_params(params) Molecule¶
Convert the protein to a molecular value with explicit BIO conversion parameters.
- translate_(offset) None¶
Translate this protein’s coordinates in place, isolating shared owners through COW.
- class cosmolkit.AddHsParams(*, explicit_only=Ellipsis, add_coords=Ellipsis, add_residue_info=Ellipsis, skip_queries=Ellipsis, only_on_atoms=Ellipsis)¶
Parameters corresponding to RDKit’s MolOps::AddHsParameters.
Members (5)
- add_coords: bool¶
Generate coordinates for added hydrogens when the molecule has coordinate rows.
- add_residue_info: bool¶
Assign residue information to added hydrogens from their neighboring heavy atoms.
- explicit_only: bool¶
Add only hydrogens already recorded as explicit hydrogen counts; do not expand implicit counts.
- only_on_atoms: tuple[int, ...] | None¶
Restrict hydrogen addition to these atom indices; None selects all eligible atoms.
- skip_queries: bool¶
Skip atoms carrying queries or attached to query bonds.
- exception cosmolkit.AdjacencyError(*args, **kwargs)¶
Failure in the model domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AdjacencyError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (13)
- property atom: int | None¶
Readonly atom payload of the BondAtomOutOfRange error variant; None for other variants.
- property atom_count: int | None¶
Readonly atom_count payload of the BondAtomOutOfRange error variant; None for other variants.
- property begin: int | None¶
Readonly begin payload of the DuplicateEdge error variant; None for other variants.
- property bond: int | None¶
Bond identifier implicated in the failure. Applies to AdjacencyError.BondAtomOutOfRange, AdjacencyError.DuplicateBondId. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property end: int | None¶
Readonly end payload of the DuplicateEdge error variant; None for other variants.
- property endpoint: str | None¶
Readonly endpoint payload of the BondAtomOutOfRange error variant; None for other variants.
- property first_bond: int | None¶
Readonly first_bond payload of the DuplicateEdge error variant; None for other variants.
- property first_position: int | None¶
Readonly first_position payload of the DuplicateBondId error variant; None for other variants.
- property second_bond: int | None¶
Readonly second_bond payload of the DuplicateEdge error variant; None for other variants.
- property second_position: int | None¶
Readonly second_position payload of the DuplicateBondId error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AdjacencyErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AdjacencyErrorKind(value)¶
Discriminants of AdjacencyErrorKind.
Members:
BondAtomOutOfRange,DuplicateBondId,DuplicateEdge, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- BondAtomOutOfRange = AdjacencyErrorKind.BondAtomOutOfRange¶
- DuplicateBondId = AdjacencyErrorKind.DuplicateBondId¶
- DuplicateEdge = AdjacencyErrorKind.DuplicateEdge¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'BondAtomOutOfRange': AdjacencyErrorKind.BondAtomOutOfRange, 'DuplicateBondId': AdjacencyErrorKind.DuplicateBondId, 'DuplicateEdge': AdjacencyErrorKind.DuplicateEdge})¶
- values = mappingproxy({0: AdjacencyErrorKind.BondAtomOutOfRange, 1: AdjacencyErrorKind.DuplicateBondId, 2: AdjacencyErrorKind.DuplicateEdge})¶
- exception cosmolkit.AdjustHsError(*args, **kwargs)¶
Failure in the adjust_hs domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AdjustHsError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (13)
- property actual: int | None¶
Readonly actual payload of the ValenceAssignmentLength error variant; None for other variants.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to AdjustHsError.InvalidValenceRow, AdjustHsError.ExplicitHydrogenOverflow. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the ValenceAssignmentLength error variant; None for other variants.
- property field: str | None¶
Field whose content or type caused the failure. Applies to AdjustHsError.ValenceAssignmentLength, AdjustHsError.InvalidValenceRow. None when this payload is absent.
- property original_explicit_hydrogens: int | None¶
Readonly original_explicit_hydrogens payload of the ExplicitHydrogenOverflow error variant; None for other variants.
- property original_implicit_valence: int | None¶
Readonly original_implicit_valence payload of the ExplicitHydrogenOverflow error variant; None for other variants.
- property recalculated_implicit_valence: int | None¶
Readonly recalculated_implicit_valence payload of the ExplicitHydrogenOverflow error variant; None for other variants.
- property source: TopologyValidationError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of AdjustHsError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property value: int | None¶
Readonly value payload of the InvalidValenceRow error variant; None for other variants.
- property variant: AdjustHsErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AdjustHsErrorKind(value)¶
Discriminants of AdjustHsErrorKind.
Members:
InvalidTopology,ValenceAssignmentLength,InvalidValenceRow,ExplicitHydrogenOverflow,Valence, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- ExplicitHydrogenOverflow = AdjustHsErrorKind.ExplicitHydrogenOverflow¶
- InvalidTopology = AdjustHsErrorKind.InvalidTopology¶
- InvalidValenceRow = AdjustHsErrorKind.InvalidValenceRow¶
- Valence = AdjustHsErrorKind.Valence¶
- ValenceAssignmentLength = AdjustHsErrorKind.ValenceAssignmentLength¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': AdjustHsErrorKind.InvalidTopology, 'ValenceAssignmentLength': AdjustHsErrorKind.ValenceAssignmentLength, 'InvalidValenceRow': AdjustHsErrorKind.InvalidValenceRow, 'ExplicitHydrogenOverflow': AdjustHsErrorKind.ExplicitHydrogenOverflow, 'Valence': AdjustHsErrorKind.Valence})¶
- values = mappingproxy({0: AdjustHsErrorKind.InvalidTopology, 1: AdjustHsErrorKind.ValenceAssignmentLength, 2: AdjustHsErrorKind.InvalidValenceRow, 3: AdjustHsErrorKind.ExplicitHydrogenOverflow, 4: AdjustHsErrorKind.Valence})¶
- class cosmolkit.AlignmentAtomMap(probe_atom, reference_atom)¶
Explicit correspondence between one probe atom and one reference atom for alignment.
Members (3)
- static new(probe_atom, reference_atom) AlignmentAtomMap¶
Construct a correspondence using zero-based probe and reference atom indices.
- probe_atom: int¶
Zero-based atom index in the probe molecule.
- reference_atom: int¶
Zero-based atom index in the reference molecule.
- exception cosmolkit.AlignmentError(*args, **kwargs)¶
Failure in the alignment domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AlignmentError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (15)
- property atom_count: int | None¶
Atom count used when validating the reported atom reference. Applies to AlignmentError.ProbeAtomOutOfRange, AlignmentError.ReferenceAtomOutOfRange. None when this payload is absent.
- property coordinates: CoordinateValidationError | None¶
“error_payload”} Structured CoordinateValidationError payload of AlignmentError.InvalidCoordinates; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property id: int | None¶
Readonly id payload of the ConformerNotFound error variant; None for other variants.
- property index: int | None¶
Index reported by the failing native check. Applies to AlignmentError.ProbeAtomOutOfRange, AlignmentError.ReferenceAtomOutOfRange, AlignmentError.NonPositiveWeight. None when this payload is absent.
- property map_len: int | None¶
Readonly map_len payload of the WeightCountMismatch error variant; None for other variants.
- property matching: SubstructMatchError | None¶
“error_payload”} Structured SubstructMatchError payload of AlignmentError.Matching; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property message: str | None¶
Detailed native diagnostic message. Applies to AlignmentError.TerminalGroupSymmetrization, AlignmentError.NumericalPrecondition. None when this payload is absent.
- property query_graph: QueryGraphError | None¶
“error_payload”} Structured QueryGraphError payload of AlignmentError.QueryGraph; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property query_parse: SmartsParseError | None¶
“error_payload”} Structured SmartsParseError payload of AlignmentError.QueryParse; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: ThreadCountError | PropertyUIntReadError | AtomPropertyError | PropertyIntReadError | TopologyValidationError | RingFindingError | StereoGroupError | CxQueryLoweringError | QueryGraphError | ParserCarrierError | BondValueError | MoleculePropertyError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property thread_selection: ThreadSelectionError | None¶
“error_payload”} Structured ThreadSelectionError payload of AlignmentError.ThreadSelection; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: AlignmentErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- property weight_len: int | None¶
Readonly weight_len payload of the WeightCountMismatch error variant; None for other variants.
- class cosmolkit.AlignmentErrorKind(value)¶
Discriminants of AlignmentErrorKind.
Members:
InvalidCoordinates,Matching,QueryGraph,QueryParse,ThreadSelection,NoConformers,ConformerNotFound,EmptyAtomMap,ProbeAtomOutOfRange,ReferenceAtomOutOfRange,WeightCountMismatch,NonPositiveWeight,NoSubstructureMatch,TerminalGroupSymmetrization,NumericalPrecondition,WorkerTerminated, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (19)
- ConformerNotFound = AlignmentErrorKind.ConformerNotFound¶
- EmptyAtomMap = AlignmentErrorKind.EmptyAtomMap¶
- InvalidCoordinates = AlignmentErrorKind.InvalidCoordinates¶
- Matching = AlignmentErrorKind.Matching¶
- NoConformers = AlignmentErrorKind.NoConformers¶
- NoSubstructureMatch = AlignmentErrorKind.NoSubstructureMatch¶
- NonPositiveWeight = AlignmentErrorKind.NonPositiveWeight¶
- NumericalPrecondition = AlignmentErrorKind.NumericalPrecondition¶
- ProbeAtomOutOfRange = AlignmentErrorKind.ProbeAtomOutOfRange¶
- QueryGraph = AlignmentErrorKind.QueryGraph¶
- QueryParse = AlignmentErrorKind.QueryParse¶
- ReferenceAtomOutOfRange = AlignmentErrorKind.ReferenceAtomOutOfRange¶
- TerminalGroupSymmetrization = AlignmentErrorKind.TerminalGroupSymmetrization¶
- ThreadSelection = AlignmentErrorKind.ThreadSelection¶
- WeightCountMismatch = AlignmentErrorKind.WeightCountMismatch¶
- WorkerTerminated = AlignmentErrorKind.WorkerTerminated¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidCoordinates': AlignmentErrorKind.InvalidCoordinates, 'Matching': AlignmentErrorKind.Matching, 'QueryGraph': AlignmentErrorKind.QueryGraph, 'QueryParse': AlignmentErrorKind.QueryParse, 'ThreadSelection': AlignmentErrorKind.ThreadSelection, 'NoConformers': AlignmentErrorKind.NoConformers, 'ConformerNotFound': AlignmentErrorKind.ConformerNotFound, 'EmptyAtomMap': AlignmentErrorKind.EmptyAtomMap, 'ProbeAtomOutOfRange': AlignmentErrorKind.ProbeAtomOutOfRange, 'ReferenceAtomOutOfRange': AlignmentErrorKind.ReferenceAtomOutOfRange, 'WeightCountMismatch': AlignmentErrorKind.WeightCountMismatch, 'NonPositiveWeight': AlignmentErrorKind.NonPositiveWeight, 'NoSubstructureMatch': AlignmentErrorKind.NoSubstructureMatch, 'TerminalGroupSymmetrization': AlignmentErrorKind.TerminalGroupSymmetrization, 'NumericalPrecondition': AlignmentErrorKind.NumericalPrecondition, 'WorkerTerminated': AlignmentErrorKind.WorkerTerminated})¶
- values = mappingproxy({0: AlignmentErrorKind.InvalidCoordinates, 1: AlignmentErrorKind.Matching, 2: AlignmentErrorKind.QueryGraph, 3: AlignmentErrorKind.QueryParse, 4: AlignmentErrorKind.ThreadSelection, 5: AlignmentErrorKind.NoConformers, 6: AlignmentErrorKind.ConformerNotFound, 7: AlignmentErrorKind.EmptyAtomMap, 8: AlignmentErrorKind.ProbeAtomOutOfRange, 9: AlignmentErrorKind.ReferenceAtomOutOfRange, 10: AlignmentErrorKind.WeightCountMismatch, 11: AlignmentErrorKind.NonPositiveWeight, 12: AlignmentErrorKind.NoSubstructureMatch, 13: AlignmentErrorKind.TerminalGroupSymmetrization, 14: AlignmentErrorKind.NumericalPrecondition, 15: AlignmentErrorKind.WorkerTerminated})¶
- class cosmolkit.AlignmentParameters(*, probe_conformer_id=Ellipsis, reference_conformer_id=Ellipsis, atom_map=Ellipsis, weights=Ellipsis, reflect=Ellipsis, max_iterations=Ellipsis)¶
Conformer alignment options for a fixed or native-selected atom correspondence.
Members (7)
- atom_map: tuple[AlignmentAtomMap, ...] | None¶
Optional explicit probe-to-reference atom pairs; None requests native match selection.
- max_iterations: int¶
Maximum iterations for native alignment optimization.
- static new(probe_conformer_id=Ellipsis, reference_conformer_id=Ellipsis, atom_map=Ellipsis, weights=Ellipsis, reflect=Ellipsis, max_iterations=Ellipsis) AlignmentParameters¶
Create an independent configuration through the native constructor using the supplied field values.
- probe_conformer_id: int¶
Probe conformer identifier; -1 selects the native default conformer.
- reference_conformer_id: int¶
Reference conformer identifier; -1 selects the native default conformer.
- reflect: bool¶
Allow reflection while determining the alignment transform.
- weights: tuple[float, ...] | None¶
Optional alignment weights in atom-map order.
- class cosmolkit.AlignmentResult(rmsd, transform, atom_map)¶
Alignment result retaining RMSD, transformation and probe/reference atom correspondence.
Members (3)
- atom_map: list[AlignmentAtomMap]¶
Independent list of probe-to-reference atom correspondences used for alignment.
- rmsd: float¶
Root-mean-square deviation for the associated alignment or conformer pair.
- transform: AlignmentTransform¶
Transform determined by the alignment.
- class cosmolkit.AlignmentTransform(matrix)¶
Readonly homogeneous 4-by-4 transform mapping aligned probe coordinates into the reference frame.
- class cosmolkit.AllConformerRmsdParameters(*, atom_maps=Ellipsis, weights=Ellipsis, max_matches=Ellipsis, symmetrize_conjugated_terminal_groups=Ellipsis, ignore_hydrogens=Ellipsis, num_threads=Ellipsis)¶
All-conformer RMSD options controlling correspondence selection and parallel execution.
Members (7)
- atom_maps: tuple[tuple[AlignmentAtomMap, ...], ...]¶
Candidate probe-to-reference atom mappings; an empty collection requests native match enumeration.
- ignore_hydrogens: bool¶
Ignore hydrogen atoms during native match enumeration.
- max_matches: int¶
Maximum number of candidate atom mappings considered.
- static new(atom_maps=Ellipsis, weights=Ellipsis, max_matches=Ellipsis, symmetrize_conjugated_terminal_groups=Ellipsis, ignore_hydrogens=Ellipsis, num_threads=Ellipsis) AllConformerRmsdParameters¶
Create an independent configuration through the native constructor using the supplied field values.
- num_threads: int¶
Number of native alignment worker threads.
- symmetrize_conjugated_terminal_groups: bool¶
Treat conjugated terminal groups symmetrically when selecting matches.
- weights: tuple[float, ...] | None¶
Optional alignment weights in atom-map order.
- class cosmolkit.AltLocLabel(value)¶
A single native alternate-location label byte.
Members (1)
- value: int¶
Raw alternate-location label byte.
- class cosmolkit.AltLocRequest¶
Explicit alternate-location selection: any label or an exact optional label.
Members (2)
- static any() AltLocRequest¶
Select any alternate location.
- static exact(label) AltLocRequest¶
Select exactly the supplied alternate location; None selects the unlabelled location.
- exception cosmolkit.AromaticityError(*args, **kwargs)¶
Failure in the aromaticity domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AromaticityError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (34)
- property actual: int | None¶
Observed value reported by the native check. Applies to AromaticityError.ValenceAssignmentLength, AromaticityError.AromaticRingCountOutOfRange, AromaticityError.AtomIdentityChanged, AromaticityError.BondIdentityChanged. None when this payload is absent.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to AromaticityError.RingAtomOutOfRange, AromaticityError.AtomOutOfRange, AromaticityError.InvalidValenceRow. None when this payload is absent.
- property atom_count: int | None¶
Atom count used when validating the reported atom reference. Applies to AromaticityError.RingRowLengthMismatch, AromaticityError.RingAtomOutOfRange, AromaticityError.AtomOutOfRange. None when this payload is absent.
- property atom_rows: int | None¶
Readonly atom_rows payload of the RingTableLengthMismatch error variant; None for other variants.
- property begin: int | None¶
Readonly begin payload of the ExpectedRingBondNotFound error variant; None for other variants.
- property bond: int | None¶
Bond identifier implicated in the failure. Applies to AromaticityError.RingBondOutOfRange, AromaticityError.BondOutOfRange. None when this payload is absent.
- property bond_count: int | None¶
Bond count used when validating the reported bond reference. Applies to AromaticityError.RingRowLengthMismatch, AromaticityError.RingBondOutOfRange, AromaticityError.BondOutOfRange. None when this payload is absent.
- property bond_rows: int | None¶
Readonly bond_rows payload of the RingTableLengthMismatch error variant; None for other variants.
- property detail: str | None¶
Additional native diagnostic detail. Applies to AromaticityError.UnsupportedModel, AromaticityError.UnsupportedState. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property end: int | None¶
Readonly end payload of the ExpectedRingBondNotFound error variant; None for other variants.
- property expected: int | None¶
Required value reported by the native check. Applies to AromaticityError.ValenceAssignmentLength, AromaticityError.AtomIdentityChanged, AromaticityError.BondIdentityChanged. None when this payload is absent.
- property field: str | None¶
Field whose content or type caused the failure. Applies to AromaticityError.ValenceAssignmentLength, AromaticityError.InvalidValenceRow, AromaticityError.UnsupportedState, AromaticityError.IntegerOverflow. None when this payload is absent.
- property input_atoms: int | None¶
Readonly input_atoms payload of the UnexpectedTopologyShape error variant; None for other variants.
- property input_bonds: int | None¶
Readonly input_bonds payload of the UnexpectedTopologyShape error variant; None for other variants.
- property kekulize: KekulizeError | None¶
“error_payload”} Structured KekulizeError payload of AromaticityError.Kekulize; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property maximum: int | None¶
Readonly maximum payload of the AromaticRingCountOutOfRange error variant; None for other variants.
- property model: AromaticityModel | None¶
“error_payload”} Structural model involved in the failure. Applies to AromaticityError.UnsupportedModel, AromaticityError.AromaticRingCountOutOfRange. None when this payload is absent.
- Type:
{“role”
- property output_atoms: int | None¶
Readonly output_atoms payload of the UnexpectedTopologyShape error variant; None for other variants.
- property output_bonds: int | None¶
Readonly output_bonds payload of the UnexpectedTopologyShape error variant; None for other variants.
- property query_state: QueryStateError | None¶
“error_payload”} Structured QueryStateError payload of AromaticityError.InvalidQueryState; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property ring_atom_count: int | None¶
Readonly ring_atom_count payload of the RingInfoDimensionMismatch error variant; None for other variants.
- property ring_bond_count: int | None¶
Readonly ring_bond_count payload of the RingInfoDimensionMismatch error variant; None for other variants.
- property ring_finding: RingFindingError | None¶
“error_payload”} Structured RingFindingError payload of AromaticityError.RingFinding; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property ring_index: int | None¶
Ring index involved in the failure. Applies to AromaticityError.RingRowLengthMismatch, AromaticityError.RingAtomOutOfRange, AromaticityError.RingBondOutOfRange. None when this payload is absent.
- property row: int | None¶
Row reported by the native failure. Applies to AromaticityError.AtomIdentityChanged, AromaticityError.BondIdentityChanged. None when this payload is absent.
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of AromaticityError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property topology_atom_count: int | None¶
Readonly topology_atom_count payload of the RingInfoDimensionMismatch error variant; None for other variants.
- property topology_bond_count: int | None¶
Readonly topology_bond_count payload of the RingInfoDimensionMismatch error variant; None for other variants.
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of AromaticityError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property value: int | None¶
Readonly value payload of the InvalidValenceRow error variant; None for other variants.
- property variant: AromaticityErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AromaticityErrorKind(value)¶
Discriminants of AromaticityErrorKind.
Members:
InvalidTopology,InvalidQueryState,RingInfoNotInitialized,RingInfoDimensionMismatch,RingTableLengthMismatch,RingRowLengthMismatch,RingAtomOutOfRange,RingBondOutOfRange,AtomOutOfRange,BondOutOfRange,ValenceAssignmentLength,InvalidValenceRow,ExpectedRingBondNotFound,UnsupportedModel,UnsupportedState,IntegerOverflow,UnexpectedTopologyShape,AtomIdentityChanged,BondIdentityChanged,AromaticRingCountOutOfRange,RingFinding,Valence,Kekulize, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (26)
- AromaticRingCountOutOfRange = AromaticityErrorKind.AromaticRingCountOutOfRange¶
- AtomIdentityChanged = AromaticityErrorKind.AtomIdentityChanged¶
- AtomOutOfRange = AromaticityErrorKind.AtomOutOfRange¶
- BondIdentityChanged = AromaticityErrorKind.BondIdentityChanged¶
- BondOutOfRange = AromaticityErrorKind.BondOutOfRange¶
- ExpectedRingBondNotFound = AromaticityErrorKind.ExpectedRingBondNotFound¶
- IntegerOverflow = AromaticityErrorKind.IntegerOverflow¶
- InvalidQueryState = AromaticityErrorKind.InvalidQueryState¶
- InvalidTopology = AromaticityErrorKind.InvalidTopology¶
- InvalidValenceRow = AromaticityErrorKind.InvalidValenceRow¶
- Kekulize = AromaticityErrorKind.Kekulize¶
- RingAtomOutOfRange = AromaticityErrorKind.RingAtomOutOfRange¶
- RingBondOutOfRange = AromaticityErrorKind.RingBondOutOfRange¶
- RingFinding = AromaticityErrorKind.RingFinding¶
- RingInfoDimensionMismatch = AromaticityErrorKind.RingInfoDimensionMismatch¶
- RingInfoNotInitialized = AromaticityErrorKind.RingInfoNotInitialized¶
- RingRowLengthMismatch = AromaticityErrorKind.RingRowLengthMismatch¶
- RingTableLengthMismatch = AromaticityErrorKind.RingTableLengthMismatch¶
- UnexpectedTopologyShape = AromaticityErrorKind.UnexpectedTopologyShape¶
- UnsupportedModel = AromaticityErrorKind.UnsupportedModel¶
- UnsupportedState = AromaticityErrorKind.UnsupportedState¶
- Valence = AromaticityErrorKind.Valence¶
- ValenceAssignmentLength = AromaticityErrorKind.ValenceAssignmentLength¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': AromaticityErrorKind.InvalidTopology, 'InvalidQueryState': AromaticityErrorKind.InvalidQueryState, 'RingInfoNotInitialized': AromaticityErrorKind.RingInfoNotInitialized, 'RingInfoDimensionMismatch': AromaticityErrorKind.RingInfoDimensionMismatch, 'RingTableLengthMismatch': AromaticityErrorKind.RingTableLengthMismatch, 'RingRowLengthMismatch': AromaticityErrorKind.RingRowLengthMismatch, 'RingAtomOutOfRange': AromaticityErrorKind.RingAtomOutOfRange, 'RingBondOutOfRange': AromaticityErrorKind.RingBondOutOfRange, 'AtomOutOfRange': AromaticityErrorKind.AtomOutOfRange, 'BondOutOfRange': AromaticityErrorKind.BondOutOfRange, 'ValenceAssignmentLength': AromaticityErrorKind.ValenceAssignmentLength, 'InvalidValenceRow': AromaticityErrorKind.InvalidValenceRow, 'ExpectedRingBondNotFound': AromaticityErrorKind.ExpectedRingBondNotFound, 'UnsupportedModel': AromaticityErrorKind.UnsupportedModel, 'UnsupportedState': AromaticityErrorKind.UnsupportedState, 'IntegerOverflow': AromaticityErrorKind.IntegerOverflow, 'UnexpectedTopologyShape': AromaticityErrorKind.UnexpectedTopologyShape, 'AtomIdentityChanged': AromaticityErrorKind.AtomIdentityChanged, 'BondIdentityChanged': AromaticityErrorKind.BondIdentityChanged, 'AromaticRingCountOutOfRange': AromaticityErrorKind.AromaticRingCountOutOfRange, 'RingFinding': AromaticityErrorKind.RingFinding, 'Valence': AromaticityErrorKind.Valence, 'Kekulize': AromaticityErrorKind.Kekulize})¶
- values = mappingproxy({0: AromaticityErrorKind.InvalidTopology, 1: AromaticityErrorKind.InvalidQueryState, 2: AromaticityErrorKind.RingInfoNotInitialized, 3: AromaticityErrorKind.RingInfoDimensionMismatch, 4: AromaticityErrorKind.RingTableLengthMismatch, 5: AromaticityErrorKind.RingRowLengthMismatch, 6: AromaticityErrorKind.RingAtomOutOfRange, 7: AromaticityErrorKind.RingBondOutOfRange, 8: AromaticityErrorKind.AtomOutOfRange, 9: AromaticityErrorKind.BondOutOfRange, 10: AromaticityErrorKind.ValenceAssignmentLength, 11: AromaticityErrorKind.InvalidValenceRow, 12: AromaticityErrorKind.ExpectedRingBondNotFound, 13: AromaticityErrorKind.UnsupportedModel, 14: AromaticityErrorKind.UnsupportedState, 15: AromaticityErrorKind.IntegerOverflow, 16: AromaticityErrorKind.UnexpectedTopologyShape, 17: AromaticityErrorKind.AtomIdentityChanged, 18: AromaticityErrorKind.BondIdentityChanged, 19: AromaticityErrorKind.AromaticRingCountOutOfRange, 20: AromaticityErrorKind.RingFinding, 21: AromaticityErrorKind.Valence, 22: AromaticityErrorKind.Kekulize})¶
- class cosmolkit.AromaticityModel(value)¶
Typed AromaticityModel values corresponding to the Rust enum.
Members:
Rdkit,Simple,Mdl,Mmff94,Custom, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (8)
- Custom = AromaticityModel.Custom¶
- Mdl = AromaticityModel.Mdl¶
- Mmff94 = AromaticityModel.Mmff94¶
- Rdkit = AromaticityModel.Rdkit¶
- Simple = AromaticityModel.Simple¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Rdkit': AromaticityModel.Rdkit, 'Simple': AromaticityModel.Simple, 'Mdl': AromaticityModel.Mdl, 'Mmff94': AromaticityModel.Mmff94, 'Custom': AromaticityModel.Custom})¶
- values = mappingproxy({0: AromaticityModel.Rdkit, 1: AromaticityModel.Simple, 2: AromaticityModel.Mdl, 3: AromaticityModel.Mmff94, 4: AromaticityModel.Custom})¶
- class cosmolkit.AromaticityParams(*, model=Ellipsis)¶
Aromaticity perception model selection.
Members (1)
- model: AromaticityModel¶
Aromaticity model used to assign aromatic atoms and bonds.
- class cosmolkit.Atom¶
Detached readonly atom data. Context-dependent queries are available on atoms obtained from a Molecule.
Members (18)
- atom_map: int | None¶
Atom-mapping number, or None when no map is assigned.
- atomic_number: int¶
Atomic number of the atom’s element.
- chiral_tag_code: int¶
Integer code of the stored chiral tag.
- chiral_tag_name: str¶
Canonical name of the stored chiral tag.
- cip_descriptor: CipDescriptor | None¶
Stored CIP descriptor, or None if absent; invalid stored values raise CipDescriptorError.
- cip_neighbor_order: list[int] | None¶
Stored CIP neighbor ordering as atom indices, or None if absent; invalid encodings raise CipDescriptorError.
- cip_rank: int | None¶
Stored CIP rank, or None when absent; an incorrectly typed property raises PropertyValueError.
- explicit_hydrogens: int¶
Explicit hydrogen count stored on the atom, distinct from neighboring hydrogen atom rows.
- formal_charge: int¶
Stored signed formal charge, not a partial charge.
- hybridization: Hybridization¶
Stored hybridization assignment; reading does not recompute it.
- id: int¶
Zero-based identifier within the originating topology.
- is_aromatic: bool¶
Stored aromaticity flag; reading does not perform aromaticity perception.
- isotope: int | None¶
Explicit isotope mass number, or None when no isotope is specified.
- no_implicit: bool¶
Whether implicit hydrogens are disabled for this atom.
- radical_electrons: int¶
Stored number of radical electrons.
- template_attachment_order: TemplateAttachmentOrder | None¶
Template attachment ordering metadata, or None when absent.
- class cosmolkit.AtomAddress(chain_name, residue, logical_atom_name, altloc=None)¶
Source atom address comprising chain, residue, logical atom name and alternate location.
Members (4)
- altloc: int¶
Native alternate-location label byte.
- chain_name: str¶
Source chain identifier.
- logical_atom_name: str¶
Logical atom name used to resolve this address.
- residue: ResidueAddress¶
Residue address containing the referenced atom.
- exception cosmolkit.AtomCodeError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtomCodeError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property code: int | None¶
Readonly code payload of the Postcondition error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: ValenceError | CipLabelerError | PropertyStringError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AtomCodeErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- property what: str | None¶
Native description of the failed requirement. Applies to AtomCodeError.Precondition, AtomCodeError.Postcondition. None when this payload is absent.
- class cosmolkit.AtomCodeErrorKind(value)¶
Discriminants of AtomCodeErrorKind.
Members:
Precondition,Postcondition,Valence,Cip,PropertyString, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- Cip = AtomCodeErrorKind.Cip¶
- Postcondition = AtomCodeErrorKind.Postcondition¶
- Precondition = AtomCodeErrorKind.Precondition¶
- PropertyString = AtomCodeErrorKind.PropertyString¶
- Valence = AtomCodeErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Precondition': AtomCodeErrorKind.Precondition, 'Postcondition': AtomCodeErrorKind.Postcondition, 'Valence': AtomCodeErrorKind.Valence, 'Cip': AtomCodeErrorKind.Cip, 'PropertyString': AtomCodeErrorKind.PropertyString})¶
- values = mappingproxy({0: AtomCodeErrorKind.Precondition, 1: AtomCodeErrorKind.Postcondition, 2: AtomCodeErrorKind.Valence, 3: AtomCodeErrorKind.Cip, 4: AtomCodeErrorKind.PropertyString})¶
- class cosmolkit.AtomCodeExplanation¶
Decoded element, branch, pi-electron and optional chirality components of an atom-pair atom code.
Members (5)
- branch_count: int¶
Branch count decoded from the atom code after the requested subtraction.
- chirality: str | None¶
Decoded chirality label, or None when chirality is not included.
- static from_code(code, branch_subtract=0, include_chirality=False) AtomCodeExplanation¶
Decode an atom-pair atom code, optionally adjusting branch count and interpreting chirality bits.
- pi_electrons: int¶
Pi-electron count encoded in the atom code.
- symbol: str¶
Element symbol decoded from the atom code.
- exception cosmolkit.AtomCodeExplanationError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtomCodeExplanationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property code: int | None¶
Readonly code payload of the UnknownChirality error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AtomCodeExplanationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AtomCodeExplanationErrorKind(value)¶
Discriminants of AtomCodeExplanationErrorKind.
Members:
UnknownChirality, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (4)
- UnknownChirality = AtomCodeExplanationErrorKind.UnknownChirality¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'UnknownChirality': AtomCodeExplanationErrorKind.UnknownChirality})¶
- values = mappingproxy({0: AtomCodeExplanationErrorKind.UnknownChirality})¶
- class cosmolkit.AtomMetadata(degree, explicit_valence, implicit_hydrogens, total_hydrogens, total_valence)¶
Read-only atom degree, valence and hydrogen counts calculated by the native chemistry implementation.
Members (5)
- degree: int¶
Number of bonded atom neighbors.
- explicit_valence: int¶
Assigned explicit valence.
- implicit_hydrogens: int¶
Assigned implicit hydrogen count.
- total_hydrogens: int¶
Combined explicit and implicit hydrogen count reported by the native metadata calculation.
- total_valence: int¶
Assigned total valence.
- class cosmolkit.AtomName¶
Validated atom-name text preserving the native structural-file representation.
- class cosmolkit.AtomPairAtomCodeResult(code, molecule)¶
Atom-pair atom code together with the prepared molecule used to compute it.
- class cosmolkit.AtomPairAtomInvariantsGenerator(*, include_chirality=Ellipsis, topological_torsion_correction=Ellipsis)¶
Atom-pair invariant provider with optional chirality and torsion correction.
Members (4)
- include_chirality: bool¶
Include chirality in generated atom-pair invariants.
- info_string() str¶
Return the native invariant-generator settings summary.
- to_json() str¶
Serialize the invariant-generator settings using the native JSON format.
- topological_torsion_correction: bool¶
Apply the atom-degree correction used for topological torsion invariants.
- exception cosmolkit.AtomPairError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtomPairError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property atom_index: int | None¶
Atom index involved in the failure. Present for AtomPairError.AtomInvariantLength; None when unavailable.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property length: int | None¶
Length relevant to the failed bounds check. Present for AtomPairError.AtomInvariantLength; None when unavailable.
- property source: FingerprintError | AtomCodeError | MatrixError | TopologyValidationError | MorganError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AtomPairErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AtomPairErrorKind(value)¶
Discriminants of AtomPairErrorKind.
Members:
Fingerprint,AtomCode,Matrix,Topology,Preparation,AtomInvariantLength, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (9)
- AtomCode = AtomPairErrorKind.AtomCode¶
- AtomInvariantLength = AtomPairErrorKind.AtomInvariantLength¶
- Fingerprint = AtomPairErrorKind.Fingerprint¶
- Matrix = AtomPairErrorKind.Matrix¶
- Preparation = AtomPairErrorKind.Preparation¶
- Topology = AtomPairErrorKind.Topology¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Fingerprint': AtomPairErrorKind.Fingerprint, 'AtomCode': AtomPairErrorKind.AtomCode, 'Matrix': AtomPairErrorKind.Matrix, 'Topology': AtomPairErrorKind.Topology, 'Preparation': AtomPairErrorKind.Preparation, 'AtomInvariantLength': AtomPairErrorKind.AtomInvariantLength})¶
- values = mappingproxy({0: AtomPairErrorKind.Fingerprint, 1: AtomPairErrorKind.AtomCode, 2: AtomPairErrorKind.Matrix, 3: AtomPairErrorKind.Topology, 4: AtomPairErrorKind.Preparation, 5: AtomPairErrorKind.AtomInvariantLength})¶
- class cosmolkit.AtomPairFingerprintParams(*, min_distance=Ellipsis, max_distance=Ellipsis, include_chirality=Ellipsis, use_2d=Ellipsis, count_simulation=Ellipsis, fp_size=Ellipsis, count_bounds=Ellipsis, bits_per_feature=Ellipsis, from_atoms=Ellipsis, ignore_atoms=Ellipsis, custom_atom_invariants=Ellipsis, custom_bond_invariants=Ellipsis, conformer_id=Ellipsis, atom_invariants_generator=Ellipsis, use_legacy_stereo_perception=Ellipsis)¶
Complete reusable fingerprint call configuration, including generator settings and atom selections.
Members (15)
- atom_invariants_generator: AtomPairAtomInvariantsGenerator | None¶
Optional native atom-invariant provider; None uses the generator default.
- bits_per_feature: int¶
Number of hash-derived positions generated for each pair feature.
- conformer_id: int | None¶
Stored conformer ID for 3D distances; None uses the native default selection. Not used when the generator’s use_2d option is true.
- count_bounds: tuple[int, ...]¶
Occurrence thresholds used by count simulation.
- count_simulation: bool¶
Encode occurrence-count thresholds as bits in bit fingerprints.
- custom_atom_invariants: tuple[int, ...] | None¶
Optional per-atom invariant overrides in atom-index order.
- custom_bond_invariants: tuple[int, ...] | None¶
Optional per-bond invariant overrides in bond-index order.
- fp_size: int¶
Number of positions in folded fingerprints.
- from_atoms: tuple[int, ...] | None¶
Optional zero-based atom indices restricting fingerprint contributions.
- ignore_atoms: tuple[int, ...] | None¶
Optional zero-based atom indices excluded from fingerprint generation.
- include_chirality: bool¶
Include atom chirality in pair identifiers.
- max_distance: int¶
Maximum included atom-pair distance, inclusive.
- min_distance: int¶
Minimum included atom-pair distance, inclusive.
- use_2d: bool¶
Use graph distances when true, otherwise distances from the selected 3D conformer.
- use_legacy_stereo_perception: bool¶
Use legacy stereochemistry perception when preparing the fingerprint input.
- class cosmolkit.AtomPairGeneratorParams(*, min_distance=Ellipsis, max_distance=Ellipsis, include_chirality=Ellipsis, use_2d=Ellipsis, count_simulation=Ellipsis, fp_size=Ellipsis, count_bounds=Ellipsis, bits_per_feature=Ellipsis)¶
Atom-pair fingerprint settings for distance selection, chirality and count encoding.
Members (11)
- bits_per_feature: int¶
Number of hash-derived positions generated for each pair feature.
- count_bounds: tuple[int, ...]¶
Occurrence thresholds used by count simulation.
- count_simulation: bool¶
Encode occurrence-count thresholds as bits in bit fingerprints.
- fp_size: int¶
Number of positions in folded fingerprints.
- include_chirality: bool¶
Include atom chirality in pair identifiers.
- info_string() str¶
Return the native human-readable fingerprint generator settings summary.
- max_distance: int¶
Maximum included atom-pair distance, inclusive.
- min_distance: int¶
Minimum included atom-pair distance, inclusive.
- to_json() str¶
Serialize generator parameters with the native JSON format.
- use_2d: bool¶
Use graph distances when true, otherwise distances from the selected 3D conformer.
- with_json(json) AtomPairGeneratorParams¶
Return an independent configuration updated by the native JSON parser.
- exception cosmolkit.AtomPairReadError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtomPairReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: FingerprintPreparationError | AtomPairError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AtomPairReadErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AtomPairReadErrorKind(value)¶
Discriminants of AtomPairReadErrorKind.
Members:
Preparation,Generator, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Generator = AtomPairReadErrorKind.Generator¶
- Preparation = AtomPairReadErrorKind.Preparation¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Preparation': AtomPairReadErrorKind.Preparation, 'Generator': AtomPairReadErrorKind.Generator})¶
- values = mappingproxy({0: AtomPairReadErrorKind.Preparation, 1: AtomPairReadErrorKind.Generator})¶
- class cosmolkit.AtomPairsParameters¶
Namespace for the facade’s source-defined atom-pair encoding vocabulary.
Members (10)
- static atom_types() list[int]¶
Atomic numbers represented by the atom-pair type encoding, in encoding order.
- static code_size() int¶
Number of bits in the native atom code.
- static max_path_length() int¶
Largest path length representable by the atom-pair encoding.
- static num_atom_pair_fingerprint_bits() int¶
Size of the native atom-pair fingerprint identifier space.
- static num_branch_bits() int¶
Number of bits reserved for atom branching information.
- static num_chiral_bits() int¶
Number of bits reserved for chirality information.
- static num_path_bits() int¶
Number of bits reserved for pair path lengths.
- static num_pi_bits() int¶
Number of bits reserved for pi-electron information in an atom code.
- static num_type_bits() int¶
Number of bits reserved for the atom type in an atom code.
- static version() str¶
Version of the native atom-pair encoding scheme.
- exception cosmolkit.AtomPathSubsetCopyError(*args, **kwargs)¶
Failure in the fragments domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtomPathSubsetCopyError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (10)
- property bond_copy: SelectedBondCopyError | None¶
“error_payload”} Structured SelectedBondCopyError payload of AtomPathSubsetCopyError.BondCopy; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property computed_properties: TopologyEditError | None¶
“error_payload”} Structured TopologyEditError payload of AtomPathSubsetCopyError.ComputedProperties; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property mapping_validation: MappingValidationError | None¶
“error_payload”} Structured MappingValidationError payload of AtomPathSubsetCopyError.MappingValidation; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property sanitize: SanitizeError | None¶
“error_payload”} Structured SanitizeError payload of AtomPathSubsetCopyError.Sanitize; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: MoleculePropertyError | BondValueError | AtomPropertyError | TopologyValidationError | QueryStateError | CleanupError | PropertyCacheError | RingFindingError | KekulizeError | RadicalError | AromaticityError | ConjugationError | HybridizationError | AtropisomerError | StereoError | AdjustHsError | StereoGroupError | CoordinateValidationError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property substance_group_copy: SelectedSubstanceGroupCopyError | None¶
“error_payload”} Structured SelectedSubstanceGroupCopyError payload of AtomPathSubsetCopyError.SubstanceGroupCopy; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property topology_validation: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of AtomPathSubsetCopyError.TopologyValidation; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: AtomPathSubsetCopyErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AtomPathSubsetCopyErrorKind(value)¶
Discriminants of AtomPathSubsetCopyErrorKind.
Members:
StereoGroup,ComputedProperties,MoleculeProperty,BondProperty,AtomProperty,BondCopy,SubstanceGroupCopy,TopologyValidation,MappingValidation,Sanitize, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (13)
- AtomProperty = AtomPathSubsetCopyErrorKind.AtomProperty¶
- BondCopy = AtomPathSubsetCopyErrorKind.BondCopy¶
- BondProperty = AtomPathSubsetCopyErrorKind.BondProperty¶
- ComputedProperties = AtomPathSubsetCopyErrorKind.ComputedProperties¶
- MappingValidation = AtomPathSubsetCopyErrorKind.MappingValidation¶
- MoleculeProperty = AtomPathSubsetCopyErrorKind.MoleculeProperty¶
- Sanitize = AtomPathSubsetCopyErrorKind.Sanitize¶
- StereoGroup = AtomPathSubsetCopyErrorKind.StereoGroup¶
- SubstanceGroupCopy = AtomPathSubsetCopyErrorKind.SubstanceGroupCopy¶
- TopologyValidation = AtomPathSubsetCopyErrorKind.TopologyValidation¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoGroup': AtomPathSubsetCopyErrorKind.StereoGroup, 'ComputedProperties': AtomPathSubsetCopyErrorKind.ComputedProperties, 'MoleculeProperty': AtomPathSubsetCopyErrorKind.MoleculeProperty, 'BondProperty': AtomPathSubsetCopyErrorKind.BondProperty, 'AtomProperty': AtomPathSubsetCopyErrorKind.AtomProperty, 'BondCopy': AtomPathSubsetCopyErrorKind.BondCopy, 'SubstanceGroupCopy': AtomPathSubsetCopyErrorKind.SubstanceGroupCopy, 'TopologyValidation': AtomPathSubsetCopyErrorKind.TopologyValidation, 'MappingValidation': AtomPathSubsetCopyErrorKind.MappingValidation, 'Sanitize': AtomPathSubsetCopyErrorKind.Sanitize})¶
- values = mappingproxy({0: AtomPathSubsetCopyErrorKind.StereoGroup, 1: AtomPathSubsetCopyErrorKind.ComputedProperties, 2: AtomPathSubsetCopyErrorKind.MoleculeProperty, 3: AtomPathSubsetCopyErrorKind.BondProperty, 4: AtomPathSubsetCopyErrorKind.AtomProperty, 5: AtomPathSubsetCopyErrorKind.BondCopy, 6: AtomPathSubsetCopyErrorKind.SubstanceGroupCopy, 7: AtomPathSubsetCopyErrorKind.TopologyValidation, 8: AtomPathSubsetCopyErrorKind.MappingValidation, 9: AtomPathSubsetCopyErrorKind.Sanitize})¶
- class cosmolkit.AtomPositionParams(*, conformer_id=Ellipsis)¶
Stored-conformer selection for reading an atom position.
Members (1)
- conformer_id: int | None¶
Stored 3D conformer identifier, or None for default selection.
- exception cosmolkit.AtomPropertyError(*args, **kwargs)¶
Failure in the property domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtomPropertyError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property computed_list_kind: PropertyValueError | None¶
“error_payload”} Structured PropertyValueError payload of AtomPropertyError.ComputedListKind; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AtomPropertyErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AtomPropertyErrorKind(value)¶
Discriminants of AtomPropertyErrorKind.
Members:
EmptyKey,ComputedListKind, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- ComputedListKind = AtomPropertyErrorKind.ComputedListKind¶
- EmptyKey = AtomPropertyErrorKind.EmptyKey¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'EmptyKey': AtomPropertyErrorKind.EmptyKey, 'ComputedListKind': AtomPropertyErrorKind.ComputedListKind})¶
- values = mappingproxy({0: AtomPropertyErrorKind.EmptyKey, 1: AtomPropertyErrorKind.ComputedListKind})¶
- exception cosmolkit.AtomPropertyReadError(*args, **kwargs)¶
Failure in the property domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtomPropertyReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property error_len: int | None¶
Length of the invalid UTF-8 sequence, or None for incomplete input or a different error kind.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property valid_up_to: int | None¶
Number of valid UTF-8 bytes before the decoding failure, or None for non-decoding errors.
- property variant: AtomPropertyReadErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AtomPropertyReadErrorKind(value)¶
Discriminants of AtomPropertyReadErrorKind.
Members:
Operation,Type,Utf8, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Operation = AtomPropertyReadErrorKind.Operation¶
- Type = AtomPropertyReadErrorKind.Type¶
- Utf8 = AtomPropertyReadErrorKind.Utf8¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Operation': AtomPropertyReadErrorKind.Operation, 'Type': AtomPropertyReadErrorKind.Type, 'Utf8': AtomPropertyReadErrorKind.Utf8})¶
- values = mappingproxy({0: AtomPropertyReadErrorKind.Operation, 1: AtomPropertyReadErrorKind.Type, 2: AtomPropertyReadErrorKind.Utf8})¶
- class cosmolkit.AtomQueryPredicate¶
Read-only native atom predicate retained by a SMARTS writer diagnostic; variant determines its payload.
Members (5)
- aromatic: bool | None¶
Aromaticity requirement in an AtomType predicate, or None for other variants.
- atomic_number: int | None¶
Atomic number in an AtomType predicate, or None for other variants.
- name: str | None¶
Property name in a PropertyValue predicate, or None for other variants.
- value: int | bool | bytes | str | Hybridization | ChiralTag | RecursiveStructureQuery | AtomRangeQuery | None¶
Typed payload of the selected predicate or one-sided bound; None for payload-free or differently structured variants.
- variant: AtomQueryPredicateKind¶
Exact native predicate or bound variant; payload availability follows this variant.
- class cosmolkit.AtomQueryPredicateKind(value)¶
Discriminants of AtomQueryPredicateKind.
Members:
Any,AtomicNumber,AtomType,AtomicNumberIn,AtomicNumberNotIn,FormalCharge,NegativeFormalCharge,NumRadicalElectrons,HasChiralTag,MissingChiralTag,Isotope,HydrogenCount,HasImplicitHydrogen,ImplicitHydrogenCount,ImplicitHydrogenCountLessEqual,ImplicitValence,ExplicitValence,ExplicitDegree,ExplicitDegreeLessEqual,NonHydrogenDegree,NonHydrogenDegreeLessEqual,NonHydrogenDegreeGreaterEqual,HeavyAtomDegree,NumHeteroatomNeighbors,HasHeteroatomNeighbors,NumAliphaticHeteroatomNeighbors,HasAliphaticHeteroatomNeighbors,RingBondCount,RingBondCountLessEqual,HasRingBond,IsBridgehead,IsAromatic,IsUnsaturated,RecursiveSmarts,HasProperty,PropertyValue,RGroupLabel,MolFileAlias,HybridizationMatch,TotalDegree,TotalDegreeLessEqual,TotalDegreeGreaterEqual,TotalValence,TotalValenceLessEqual,TotalValenceGreaterEqual,InRing,NumAtomRings,InRingOfSize,InRingOfSizeLessEqual,InRingOfSizeGreaterEqual,SmallestRingSize,SmallestRingSizeLessEqual,SmallestRingSizeGreaterEqual,Mass,ChiralTagMatch,ChiralPermutationMatch,DegreeLessEqual,DegreeGreaterEqual,Range,UnsupportedFeature, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (63)
- Any = AtomQueryPredicateKind.Any¶
- AtomType = AtomQueryPredicateKind.AtomType¶
- AtomicNumber = AtomQueryPredicateKind.AtomicNumber¶
- AtomicNumberIn = AtomQueryPredicateKind.AtomicNumberIn¶
- AtomicNumberNotIn = AtomQueryPredicateKind.AtomicNumberNotIn¶
- ChiralPermutationMatch = AtomQueryPredicateKind.ChiralPermutationMatch¶
- ChiralTagMatch = AtomQueryPredicateKind.ChiralTagMatch¶
- DegreeGreaterEqual = AtomQueryPredicateKind.DegreeGreaterEqual¶
- DegreeLessEqual = AtomQueryPredicateKind.DegreeLessEqual¶
- ExplicitDegree = AtomQueryPredicateKind.ExplicitDegree¶
- ExplicitDegreeLessEqual = AtomQueryPredicateKind.ExplicitDegreeLessEqual¶
- ExplicitValence = AtomQueryPredicateKind.ExplicitValence¶
- FormalCharge = AtomQueryPredicateKind.FormalCharge¶
- HasAliphaticHeteroatomNeighbors = AtomQueryPredicateKind.HasAliphaticHeteroatomNeighbors¶
- HasChiralTag = AtomQueryPredicateKind.HasChiralTag¶
- HasHeteroatomNeighbors = AtomQueryPredicateKind.HasHeteroatomNeighbors¶
- HasImplicitHydrogen = AtomQueryPredicateKind.HasImplicitHydrogen¶
- HasProperty = AtomQueryPredicateKind.HasProperty¶
- HasRingBond = AtomQueryPredicateKind.HasRingBond¶
- HeavyAtomDegree = AtomQueryPredicateKind.HeavyAtomDegree¶
- HybridizationMatch = AtomQueryPredicateKind.HybridizationMatch¶
- HydrogenCount = AtomQueryPredicateKind.HydrogenCount¶
- ImplicitHydrogenCount = AtomQueryPredicateKind.ImplicitHydrogenCount¶
- ImplicitHydrogenCountLessEqual = AtomQueryPredicateKind.ImplicitHydrogenCountLessEqual¶
- ImplicitValence = AtomQueryPredicateKind.ImplicitValence¶
- InRing = AtomQueryPredicateKind.InRing¶
- InRingOfSize = AtomQueryPredicateKind.InRingOfSize¶
- InRingOfSizeGreaterEqual = AtomQueryPredicateKind.InRingOfSizeGreaterEqual¶
- InRingOfSizeLessEqual = AtomQueryPredicateKind.InRingOfSizeLessEqual¶
- IsAromatic = AtomQueryPredicateKind.IsAromatic¶
- IsBridgehead = AtomQueryPredicateKind.IsBridgehead¶
- IsUnsaturated = AtomQueryPredicateKind.IsUnsaturated¶
- Isotope = AtomQueryPredicateKind.Isotope¶
- Mass = AtomQueryPredicateKind.Mass¶
- MissingChiralTag = AtomQueryPredicateKind.MissingChiralTag¶
- MolFileAlias = AtomQueryPredicateKind.MolFileAlias¶
- NegativeFormalCharge = AtomQueryPredicateKind.NegativeFormalCharge¶
- NonHydrogenDegree = AtomQueryPredicateKind.NonHydrogenDegree¶
- NonHydrogenDegreeGreaterEqual = AtomQueryPredicateKind.NonHydrogenDegreeGreaterEqual¶
- NonHydrogenDegreeLessEqual = AtomQueryPredicateKind.NonHydrogenDegreeLessEqual¶
- NumAliphaticHeteroatomNeighbors = AtomQueryPredicateKind.NumAliphaticHeteroatomNeighbors¶
- NumAtomRings = AtomQueryPredicateKind.NumAtomRings¶
- NumHeteroatomNeighbors = AtomQueryPredicateKind.NumHeteroatomNeighbors¶
- NumRadicalElectrons = AtomQueryPredicateKind.NumRadicalElectrons¶
- PropertyValue = AtomQueryPredicateKind.PropertyValue¶
- RGroupLabel = AtomQueryPredicateKind.RGroupLabel¶
- Range = AtomQueryPredicateKind.Range¶
- RecursiveSmarts = AtomQueryPredicateKind.RecursiveSmarts¶
- RingBondCount = AtomQueryPredicateKind.RingBondCount¶
- RingBondCountLessEqual = AtomQueryPredicateKind.RingBondCountLessEqual¶
- SmallestRingSize = AtomQueryPredicateKind.SmallestRingSize¶
- SmallestRingSizeGreaterEqual = AtomQueryPredicateKind.SmallestRingSizeGreaterEqual¶
- SmallestRingSizeLessEqual = AtomQueryPredicateKind.SmallestRingSizeLessEqual¶
- TotalDegree = AtomQueryPredicateKind.TotalDegree¶
- TotalDegreeGreaterEqual = AtomQueryPredicateKind.TotalDegreeGreaterEqual¶
- TotalDegreeLessEqual = AtomQueryPredicateKind.TotalDegreeLessEqual¶
- TotalValence = AtomQueryPredicateKind.TotalValence¶
- TotalValenceGreaterEqual = AtomQueryPredicateKind.TotalValenceGreaterEqual¶
- TotalValenceLessEqual = AtomQueryPredicateKind.TotalValenceLessEqual¶
- UnsupportedFeature = AtomQueryPredicateKind.UnsupportedFeature¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Any': AtomQueryPredicateKind.Any, 'AtomicNumber': AtomQueryPredicateKind.AtomicNumber, 'AtomType': AtomQueryPredicateKind.AtomType, 'AtomicNumberIn': AtomQueryPredicateKind.AtomicNumberIn, 'AtomicNumberNotIn': AtomQueryPredicateKind.AtomicNumberNotIn, 'FormalCharge': AtomQueryPredicateKind.FormalCharge, 'NegativeFormalCharge': AtomQueryPredicateKind.NegativeFormalCharge, 'NumRadicalElectrons': AtomQueryPredicateKind.NumRadicalElectrons, 'HasChiralTag': AtomQueryPredicateKind.HasChiralTag, 'MissingChiralTag': AtomQueryPredicateKind.MissingChiralTag, 'Isotope': AtomQueryPredicateKind.Isotope, 'HydrogenCount': AtomQueryPredicateKind.HydrogenCount, 'HasImplicitHydrogen': AtomQueryPredicateKind.HasImplicitHydrogen, 'ImplicitHydrogenCount': AtomQueryPredicateKind.ImplicitHydrogenCount, 'ImplicitHydrogenCountLessEqual': AtomQueryPredicateKind.ImplicitHydrogenCountLessEqual, 'ImplicitValence': AtomQueryPredicateKind.ImplicitValence, 'ExplicitValence': AtomQueryPredicateKind.ExplicitValence, 'ExplicitDegree': AtomQueryPredicateKind.ExplicitDegree, 'ExplicitDegreeLessEqual': AtomQueryPredicateKind.ExplicitDegreeLessEqual, 'NonHydrogenDegree': AtomQueryPredicateKind.NonHydrogenDegree, 'NonHydrogenDegreeLessEqual': AtomQueryPredicateKind.NonHydrogenDegreeLessEqual, 'NonHydrogenDegreeGreaterEqual': AtomQueryPredicateKind.NonHydrogenDegreeGreaterEqual, 'HeavyAtomDegree': AtomQueryPredicateKind.HeavyAtomDegree, 'NumHeteroatomNeighbors': AtomQueryPredicateKind.NumHeteroatomNeighbors, 'HasHeteroatomNeighbors': AtomQueryPredicateKind.HasHeteroatomNeighbors, 'NumAliphaticHeteroatomNeighbors': AtomQueryPredicateKind.NumAliphaticHeteroatomNeighbors, 'HasAliphaticHeteroatomNeighbors': AtomQueryPredicateKind.HasAliphaticHeteroatomNeighbors, 'RingBondCount': AtomQueryPredicateKind.RingBondCount, 'RingBondCountLessEqual': AtomQueryPredicateKind.RingBondCountLessEqual, 'HasRingBond': AtomQueryPredicateKind.HasRingBond, 'IsBridgehead': AtomQueryPredicateKind.IsBridgehead, 'IsAromatic': AtomQueryPredicateKind.IsAromatic, 'IsUnsaturated': AtomQueryPredicateKind.IsUnsaturated, 'RecursiveSmarts': AtomQueryPredicateKind.RecursiveSmarts, 'HasProperty': AtomQueryPredicateKind.HasProperty, 'PropertyValue': AtomQueryPredicateKind.PropertyValue, 'RGroupLabel': AtomQueryPredicateKind.RGroupLabel, 'MolFileAlias': AtomQueryPredicateKind.MolFileAlias, 'HybridizationMatch': AtomQueryPredicateKind.HybridizationMatch, 'TotalDegree': AtomQueryPredicateKind.TotalDegree, 'TotalDegreeLessEqual': AtomQueryPredicateKind.TotalDegreeLessEqual, 'TotalDegreeGreaterEqual': AtomQueryPredicateKind.TotalDegreeGreaterEqual, 'TotalValence': AtomQueryPredicateKind.TotalValence, 'TotalValenceLessEqual': AtomQueryPredicateKind.TotalValenceLessEqual, 'TotalValenceGreaterEqual': AtomQueryPredicateKind.TotalValenceGreaterEqual, 'InRing': AtomQueryPredicateKind.InRing, 'NumAtomRings': AtomQueryPredicateKind.NumAtomRings, 'InRingOfSize': AtomQueryPredicateKind.InRingOfSize, 'InRingOfSizeLessEqual': AtomQueryPredicateKind.InRingOfSizeLessEqual, 'InRingOfSizeGreaterEqual': AtomQueryPredicateKind.InRingOfSizeGreaterEqual, 'SmallestRingSize': AtomQueryPredicateKind.SmallestRingSize, 'SmallestRingSizeLessEqual': AtomQueryPredicateKind.SmallestRingSizeLessEqual, 'SmallestRingSizeGreaterEqual': AtomQueryPredicateKind.SmallestRingSizeGreaterEqual, 'Mass': AtomQueryPredicateKind.Mass, 'ChiralTagMatch': AtomQueryPredicateKind.ChiralTagMatch, 'ChiralPermutationMatch': AtomQueryPredicateKind.ChiralPermutationMatch, 'DegreeLessEqual': AtomQueryPredicateKind.DegreeLessEqual, 'DegreeGreaterEqual': AtomQueryPredicateKind.DegreeGreaterEqual, 'Range': AtomQueryPredicateKind.Range, 'UnsupportedFeature': AtomQueryPredicateKind.UnsupportedFeature})¶
- values = mappingproxy({0: AtomQueryPredicateKind.Any, 1: AtomQueryPredicateKind.AtomicNumber, 2: AtomQueryPredicateKind.AtomType, 3: AtomQueryPredicateKind.AtomicNumberIn, 4: AtomQueryPredicateKind.AtomicNumberNotIn, 5: AtomQueryPredicateKind.FormalCharge, 6: AtomQueryPredicateKind.NegativeFormalCharge, 7: AtomQueryPredicateKind.NumRadicalElectrons, 8: AtomQueryPredicateKind.HasChiralTag, 9: AtomQueryPredicateKind.MissingChiralTag, 10: AtomQueryPredicateKind.Isotope, 11: AtomQueryPredicateKind.HydrogenCount, 12: AtomQueryPredicateKind.HasImplicitHydrogen, 13: AtomQueryPredicateKind.ImplicitHydrogenCount, 14: AtomQueryPredicateKind.ImplicitHydrogenCountLessEqual, 15: AtomQueryPredicateKind.ImplicitValence, 16: AtomQueryPredicateKind.ExplicitValence, 17: AtomQueryPredicateKind.ExplicitDegree, 18: AtomQueryPredicateKind.ExplicitDegreeLessEqual, 19: AtomQueryPredicateKind.NonHydrogenDegree, 20: AtomQueryPredicateKind.NonHydrogenDegreeLessEqual, 21: AtomQueryPredicateKind.NonHydrogenDegreeGreaterEqual, 22: AtomQueryPredicateKind.HeavyAtomDegree, 23: AtomQueryPredicateKind.NumHeteroatomNeighbors, 24: AtomQueryPredicateKind.HasHeteroatomNeighbors, 25: AtomQueryPredicateKind.NumAliphaticHeteroatomNeighbors, 26: AtomQueryPredicateKind.HasAliphaticHeteroatomNeighbors, 27: AtomQueryPredicateKind.RingBondCount, 28: AtomQueryPredicateKind.RingBondCountLessEqual, 29: AtomQueryPredicateKind.HasRingBond, 30: AtomQueryPredicateKind.IsBridgehead, 31: AtomQueryPredicateKind.IsAromatic, 32: AtomQueryPredicateKind.IsUnsaturated, 33: AtomQueryPredicateKind.RecursiveSmarts, 34: AtomQueryPredicateKind.HasProperty, 35: AtomQueryPredicateKind.PropertyValue, 36: AtomQueryPredicateKind.RGroupLabel, 37: AtomQueryPredicateKind.MolFileAlias, 38: AtomQueryPredicateKind.HybridizationMatch, 39: AtomQueryPredicateKind.TotalDegree, 40: AtomQueryPredicateKind.TotalDegreeLessEqual, 41: AtomQueryPredicateKind.TotalDegreeGreaterEqual, 42: AtomQueryPredicateKind.TotalValence, 43: AtomQueryPredicateKind.TotalValenceLessEqual, 44: AtomQueryPredicateKind.TotalValenceGreaterEqual, 45: AtomQueryPredicateKind.InRing, 46: AtomQueryPredicateKind.NumAtomRings, 47: AtomQueryPredicateKind.InRingOfSize, 48: AtomQueryPredicateKind.InRingOfSizeLessEqual, 49: AtomQueryPredicateKind.InRingOfSizeGreaterEqual, 50: AtomQueryPredicateKind.SmallestRingSize, 51: AtomQueryPredicateKind.SmallestRingSizeLessEqual, 52: AtomQueryPredicateKind.SmallestRingSizeGreaterEqual, 53: AtomQueryPredicateKind.Mass, 54: AtomQueryPredicateKind.ChiralTagMatch, 55: AtomQueryPredicateKind.ChiralPermutationMatch, 56: AtomQueryPredicateKind.DegreeLessEqual, 57: AtomQueryPredicateKind.DegreeGreaterEqual, 58: AtomQueryPredicateKind.Range, 59: AtomQueryPredicateKind.UnsupportedFeature})¶
- class cosmolkit.AtomRangeBounds¶
One-sided or two-sided numeric bounds with endpoint inclusion flags.
Members (6)
- lower: int | None¶
Lower range endpoint, or None when this variant has no lower endpoint.
- lower_open: bool | None¶
Whether the lower endpoint is excluded, or None when not applicable.
- upper: int | None¶
Upper range endpoint, or None when this variant has no upper endpoint.
- upper_open: bool | None¶
Whether the upper endpoint is excluded, or None when not applicable.
- value: int | None¶
Typed payload of the selected predicate or one-sided bound; None for payload-free or differently structured variants.
- variant: AtomRangeBoundsKind¶
Exact native predicate or bound variant; payload availability follows this variant.
- class cosmolkit.AtomRangeBoundsKind(value)¶
Discriminants of AtomRangeBoundsKind.
Members:
LessEqual,GreaterEqual,Inclusive, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- GreaterEqual = AtomRangeBoundsKind.GreaterEqual¶
- Inclusive = AtomRangeBoundsKind.Inclusive¶
- LessEqual = AtomRangeBoundsKind.LessEqual¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'LessEqual': AtomRangeBoundsKind.LessEqual, 'GreaterEqual': AtomRangeBoundsKind.GreaterEqual, 'Inclusive': AtomRangeBoundsKind.Inclusive})¶
- values = mappingproxy({0: AtomRangeBoundsKind.LessEqual, 1: AtomRangeBoundsKind.GreaterEqual, 2: AtomRangeBoundsKind.Inclusive})¶
- class cosmolkit.AtomRangeDataFunction¶
Native atom-data selector used by a range predicate, optionally constrained to ring sizes.
Members (5)
- lower: int | None¶
Lower range endpoint, or None when this variant has no lower endpoint.
- lower_open: bool | None¶
Whether the lower endpoint is excluded, or None when not applicable.
- upper: int | None¶
Upper range endpoint, or None when this variant has no upper endpoint.
- upper_open: bool | None¶
Whether the upper endpoint is excluded, or None when not applicable.
- variant: AtomRangeDataFunctionKind¶
Exact native predicate or bound variant; payload availability follows this variant.
- class cosmolkit.AtomRangeDataFunctionKind(value)¶
Discriminants of AtomRangeDataFunctionKind.
Members:
ExplicitDegree,NonHydrogenDegree,TotalDegree,TotalValence,NumAtomRings,NumHeteroatomNeighbors,NumAliphaticHeteroatomNeighbors,MinRingSize,RingBondCount,ImplicitHydrogenCount,FormalCharge,NegativeFormalCharge,AtomRingSize, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (16)
- AtomRingSize = AtomRangeDataFunctionKind.AtomRingSize¶
- ExplicitDegree = AtomRangeDataFunctionKind.ExplicitDegree¶
- FormalCharge = AtomRangeDataFunctionKind.FormalCharge¶
- ImplicitHydrogenCount = AtomRangeDataFunctionKind.ImplicitHydrogenCount¶
- MinRingSize = AtomRangeDataFunctionKind.MinRingSize¶
- NegativeFormalCharge = AtomRangeDataFunctionKind.NegativeFormalCharge¶
- NonHydrogenDegree = AtomRangeDataFunctionKind.NonHydrogenDegree¶
- NumAliphaticHeteroatomNeighbors = AtomRangeDataFunctionKind.NumAliphaticHeteroatomNeighbors¶
- NumAtomRings = AtomRangeDataFunctionKind.NumAtomRings¶
- NumHeteroatomNeighbors = AtomRangeDataFunctionKind.NumHeteroatomNeighbors¶
- RingBondCount = AtomRangeDataFunctionKind.RingBondCount¶
- TotalDegree = AtomRangeDataFunctionKind.TotalDegree¶
- TotalValence = AtomRangeDataFunctionKind.TotalValence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'ExplicitDegree': AtomRangeDataFunctionKind.ExplicitDegree, 'NonHydrogenDegree': AtomRangeDataFunctionKind.NonHydrogenDegree, 'TotalDegree': AtomRangeDataFunctionKind.TotalDegree, 'TotalValence': AtomRangeDataFunctionKind.TotalValence, 'NumAtomRings': AtomRangeDataFunctionKind.NumAtomRings, 'NumHeteroatomNeighbors': AtomRangeDataFunctionKind.NumHeteroatomNeighbors, 'NumAliphaticHeteroatomNeighbors': AtomRangeDataFunctionKind.NumAliphaticHeteroatomNeighbors, 'MinRingSize': AtomRangeDataFunctionKind.MinRingSize, 'RingBondCount': AtomRangeDataFunctionKind.RingBondCount, 'ImplicitHydrogenCount': AtomRangeDataFunctionKind.ImplicitHydrogenCount, 'FormalCharge': AtomRangeDataFunctionKind.FormalCharge, 'NegativeFormalCharge': AtomRangeDataFunctionKind.NegativeFormalCharge, 'AtomRingSize': AtomRangeDataFunctionKind.AtomRingSize})¶
- values = mappingproxy({0: AtomRangeDataFunctionKind.ExplicitDegree, 1: AtomRangeDataFunctionKind.NonHydrogenDegree, 2: AtomRangeDataFunctionKind.TotalDegree, 3: AtomRangeDataFunctionKind.TotalValence, 4: AtomRangeDataFunctionKind.NumAtomRings, 5: AtomRangeDataFunctionKind.NumHeteroatomNeighbors, 6: AtomRangeDataFunctionKind.NumAliphaticHeteroatomNeighbors, 7: AtomRangeDataFunctionKind.MinRingSize, 8: AtomRangeDataFunctionKind.RingBondCount, 9: AtomRangeDataFunctionKind.ImplicitHydrogenCount, 10: AtomRangeDataFunctionKind.FormalCharge, 11: AtomRangeDataFunctionKind.NegativeFormalCharge, 12: AtomRangeDataFunctionKind.AtomRingSize})¶
- class cosmolkit.AtomRangeQuery¶
Native atom-data function and numeric range predicate.
Members (2)
- bounds: AtomRangeBounds¶
Numeric bounds applied by this range query.
- data_function: AtomRangeDataFunction¶
Native atom-data function evaluated before applying the bounds.
- class cosmolkit.AtomSiteIdentityField(value)¶
Typed AtomSiteIdentityField values corresponding to the Rust enum.
Members:
AsymId,CompId,AtomId,SeqId, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (7)
- AsymId = AtomSiteIdentityField.AsymId¶
- AtomId = AtomSiteIdentityField.AtomId¶
- CompId = AtomSiteIdentityField.CompId¶
- SeqId = AtomSiteIdentityField.SeqId¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'AsymId': AtomSiteIdentityField.AsymId, 'CompId': AtomSiteIdentityField.CompId, 'AtomId': AtomSiteIdentityField.AtomId, 'SeqId': AtomSiteIdentityField.SeqId})¶
- values = mappingproxy({0: AtomSiteIdentityField.AsymId, 1: AtomSiteIdentityField.CompId, 2: AtomSiteIdentityField.AtomId, 3: AtomSiteIdentityField.SeqId})¶
- class cosmolkit.AtomSourceIds(serial=None)¶
Original atom serial identifier, distinct from a local atom row index.
Members (1)
- serial: int | None¶
Source atom serial number, or None if absent.
- class cosmolkit.AtomSpec(element)¶
Detached inputs for constructing an atom; with_* methods return independent specifications.
Members (6)
- static new(element) AtomSpec¶
Create an atom specification for an element with native default atom attributes.
- with_atom_map(value) AtomSpec¶
Return an independent atom specification with the atom-map number replaced.
- with_explicit_hydrogens(value) AtomSpec¶
Return an independent atom specification with the explicit hydrogen count replaced.
- with_formal_charge(value) AtomSpec¶
Return an independent atom specification with the requested formal charge.
- exception cosmolkit.AtropisomerError(*args, **kwargs)¶
Failure in the stereo domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AtropisomerError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (15)
- property actual: int | None¶
Observed value reported by the native check. Applies to AtropisomerError.RingAtomRowCount, AtropisomerError.RingBondRowCount, AtropisomerError.HybridizationAssignmentLength. None when this payload is absent.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to AtropisomerError.CarrierCount, AtropisomerError.RingAtomOutOfRange, AtropisomerError.StereoGroupAtomOutOfRange. None when this payload is absent.
- property atom_count: int | None¶
Atom count used when validating the reported atom reference. Applies to AtropisomerError.RingAtomOutOfRange, AtropisomerError.StereoGroupAtomOutOfRange. None when this payload is absent.
- property bond: int | None¶
Bond index involved in the failure. Present for AtropisomerError.CandidateTraversalOutOfRange, AtropisomerError.CandidateTraversalDuplicate, AtropisomerError.CandidateTraversalUnexpected, AtropisomerError.CandidateTraversalMissing, AtropisomerError.RingBondOutOfRange, AtropisomerError.BondUpdate, AtropisomerError.StereoGroupBondOutOfRange, AtropisomerError.AssignmentBondOutOfRange, AtropisomerError.AxialBondOutOfRange, AtropisomerError.InvalidAtropisomerStereo; None when unavailable.
- property bond_count: int | None¶
Bond count used when validating the reported bond reference. Applies to AtropisomerError.CandidateTraversalOutOfRange, AtropisomerError.RingBondOutOfRange, AtropisomerError.StereoGroupBondOutOfRange, AtropisomerError.AssignmentBondOutOfRange, AtropisomerError.AxialBondOutOfRange. None when this payload is absent.
- property conformer: int | None¶
Readonly conformer payload of the ConformerNotThreeDimensional error variant; None for other variants.
- property count: int | None¶
Readonly count payload of the CarrierCount error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Required value reported by the native check. Applies to AtropisomerError.RingAtomRowCount, AtropisomerError.RingBondRowCount, AtropisomerError.HybridizationAssignmentLength. None when this payload is absent.
- property message: str | None¶
Readonly message payload of the SourcePrecondition error variant; None for other variants.
- property normalization: StereoError | None¶
“error_payload”} Structured StereoError payload of AtropisomerError.Normalization; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: StereoGroupError | ValenceError | ConjugationError | HybridizationError | RingFindingError | TopologyValidationError | CoordinateValidationError | BondValueError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stereo: BondStereo | None¶
Readonly stereo payload of the InvalidAtropisomerStereo error variant; None for other variants.
- property variant: AtropisomerErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AtropisomerErrorKind(value)¶
Discriminants of AtropisomerErrorKind.
Members:
StereoGroup,SourcePrecondition,CandidateTraversalOutOfRange,CandidateTraversalDuplicate,CandidateTraversalUnexpected,CandidateTraversalMissing,Valence,Conjugation,Hybridization,Normalization,CarrierCount,RingFinding,InvalidTopology,InvalidCoordinates,ConformerNotThreeDimensional,RingInfoNotSssr,RingAtomOutOfRange,RingBondOutOfRange,RingAtomRowCount,RingBondRowCount,HybridizationAssignmentLength,BondUpdate,StereoGroupAtomOutOfRange,StereoGroupBondOutOfRange,AssignmentBondOutOfRange,AxialBondOutOfRange,InvalidAtropisomerStereo, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (30)
- AssignmentBondOutOfRange = AtropisomerErrorKind.AssignmentBondOutOfRange¶
- AxialBondOutOfRange = AtropisomerErrorKind.AxialBondOutOfRange¶
- BondUpdate = AtropisomerErrorKind.BondUpdate¶
- CandidateTraversalDuplicate = AtropisomerErrorKind.CandidateTraversalDuplicate¶
- CandidateTraversalMissing = AtropisomerErrorKind.CandidateTraversalMissing¶
- CandidateTraversalOutOfRange = AtropisomerErrorKind.CandidateTraversalOutOfRange¶
- CandidateTraversalUnexpected = AtropisomerErrorKind.CandidateTraversalUnexpected¶
- CarrierCount = AtropisomerErrorKind.CarrierCount¶
- ConformerNotThreeDimensional = AtropisomerErrorKind.ConformerNotThreeDimensional¶
- Conjugation = AtropisomerErrorKind.Conjugation¶
- Hybridization = AtropisomerErrorKind.Hybridization¶
- HybridizationAssignmentLength = AtropisomerErrorKind.HybridizationAssignmentLength¶
- InvalidAtropisomerStereo = AtropisomerErrorKind.InvalidAtropisomerStereo¶
- InvalidCoordinates = AtropisomerErrorKind.InvalidCoordinates¶
- InvalidTopology = AtropisomerErrorKind.InvalidTopology¶
- Normalization = AtropisomerErrorKind.Normalization¶
- RingAtomOutOfRange = AtropisomerErrorKind.RingAtomOutOfRange¶
- RingAtomRowCount = AtropisomerErrorKind.RingAtomRowCount¶
- RingBondOutOfRange = AtropisomerErrorKind.RingBondOutOfRange¶
- RingBondRowCount = AtropisomerErrorKind.RingBondRowCount¶
- RingFinding = AtropisomerErrorKind.RingFinding¶
- RingInfoNotSssr = AtropisomerErrorKind.RingInfoNotSssr¶
- SourcePrecondition = AtropisomerErrorKind.SourcePrecondition¶
- StereoGroup = AtropisomerErrorKind.StereoGroup¶
- StereoGroupAtomOutOfRange = AtropisomerErrorKind.StereoGroupAtomOutOfRange¶
- StereoGroupBondOutOfRange = AtropisomerErrorKind.StereoGroupBondOutOfRange¶
- Valence = AtropisomerErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoGroup': AtropisomerErrorKind.StereoGroup, 'SourcePrecondition': AtropisomerErrorKind.SourcePrecondition, 'CandidateTraversalOutOfRange': AtropisomerErrorKind.CandidateTraversalOutOfRange, 'CandidateTraversalDuplicate': AtropisomerErrorKind.CandidateTraversalDuplicate, 'CandidateTraversalUnexpected': AtropisomerErrorKind.CandidateTraversalUnexpected, 'CandidateTraversalMissing': AtropisomerErrorKind.CandidateTraversalMissing, 'Valence': AtropisomerErrorKind.Valence, 'Conjugation': AtropisomerErrorKind.Conjugation, 'Hybridization': AtropisomerErrorKind.Hybridization, 'Normalization': AtropisomerErrorKind.Normalization, 'CarrierCount': AtropisomerErrorKind.CarrierCount, 'RingFinding': AtropisomerErrorKind.RingFinding, 'InvalidTopology': AtropisomerErrorKind.InvalidTopology, 'InvalidCoordinates': AtropisomerErrorKind.InvalidCoordinates, 'ConformerNotThreeDimensional': AtropisomerErrorKind.ConformerNotThreeDimensional, 'RingInfoNotSssr': AtropisomerErrorKind.RingInfoNotSssr, 'RingAtomOutOfRange': AtropisomerErrorKind.RingAtomOutOfRange, 'RingBondOutOfRange': AtropisomerErrorKind.RingBondOutOfRange, 'RingAtomRowCount': AtropisomerErrorKind.RingAtomRowCount, 'RingBondRowCount': AtropisomerErrorKind.RingBondRowCount, 'HybridizationAssignmentLength': AtropisomerErrorKind.HybridizationAssignmentLength, 'BondUpdate': AtropisomerErrorKind.BondUpdate, 'StereoGroupAtomOutOfRange': AtropisomerErrorKind.StereoGroupAtomOutOfRange, 'StereoGroupBondOutOfRange': AtropisomerErrorKind.StereoGroupBondOutOfRange, 'AssignmentBondOutOfRange': AtropisomerErrorKind.AssignmentBondOutOfRange, 'AxialBondOutOfRange': AtropisomerErrorKind.AxialBondOutOfRange, 'InvalidAtropisomerStereo': AtropisomerErrorKind.InvalidAtropisomerStereo})¶
- values = mappingproxy({0: AtropisomerErrorKind.StereoGroup, 1: AtropisomerErrorKind.SourcePrecondition, 2: AtropisomerErrorKind.CandidateTraversalOutOfRange, 3: AtropisomerErrorKind.CandidateTraversalDuplicate, 4: AtropisomerErrorKind.CandidateTraversalUnexpected, 5: AtropisomerErrorKind.CandidateTraversalMissing, 6: AtropisomerErrorKind.Valence, 7: AtropisomerErrorKind.Conjugation, 8: AtropisomerErrorKind.Hybridization, 9: AtropisomerErrorKind.Normalization, 10: AtropisomerErrorKind.CarrierCount, 11: AtropisomerErrorKind.RingFinding, 12: AtropisomerErrorKind.InvalidTopology, 13: AtropisomerErrorKind.InvalidCoordinates, 14: AtropisomerErrorKind.ConformerNotThreeDimensional, 15: AtropisomerErrorKind.RingInfoNotSssr, 16: AtropisomerErrorKind.RingAtomOutOfRange, 17: AtropisomerErrorKind.RingBondOutOfRange, 18: AtropisomerErrorKind.RingAtomRowCount, 19: AtropisomerErrorKind.RingBondRowCount, 20: AtropisomerErrorKind.HybridizationAssignmentLength, 21: AtropisomerErrorKind.BondUpdate, 22: AtropisomerErrorKind.StereoGroupAtomOutOfRange, 23: AtropisomerErrorKind.StereoGroupBondOutOfRange, 24: AtropisomerErrorKind.AssignmentBondOutOfRange, 25: AtropisomerErrorKind.AxialBondOutOfRange, 26: AtropisomerErrorKind.InvalidAtropisomerStereo})¶
- exception cosmolkit.AttachmentExpansionError(*args, **kwargs)¶
Failure in the io domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AttachmentExpansionError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property actual: int | None¶
Readonly actual payload of the ValueCount error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the ValueCount error variant; None for other variants.
- property source: TopologyValidationError | CoordinateValidationError | QueryStateError | AtomPropertyError | TopologyEditError | ValenceError | HydrogenError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AttachmentExpansionErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AttachmentExpansionErrorKind(value)¶
Discriminants of AttachmentExpansionErrorKind.
Members:
Topology,Coordinates,ValueCount,Query,Property,Edit,Valence,Placement, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (11)
- Coordinates = AttachmentExpansionErrorKind.Coordinates¶
- Edit = AttachmentExpansionErrorKind.Edit¶
- Placement = AttachmentExpansionErrorKind.Placement¶
- Property = AttachmentExpansionErrorKind.Property¶
- Query = AttachmentExpansionErrorKind.Query¶
- Topology = AttachmentExpansionErrorKind.Topology¶
- Valence = AttachmentExpansionErrorKind.Valence¶
- ValueCount = AttachmentExpansionErrorKind.ValueCount¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Topology': AttachmentExpansionErrorKind.Topology, 'Coordinates': AttachmentExpansionErrorKind.Coordinates, 'ValueCount': AttachmentExpansionErrorKind.ValueCount, 'Query': AttachmentExpansionErrorKind.Query, 'Property': AttachmentExpansionErrorKind.Property, 'Edit': AttachmentExpansionErrorKind.Edit, 'Valence': AttachmentExpansionErrorKind.Valence, 'Placement': AttachmentExpansionErrorKind.Placement})¶
- values = mappingproxy({0: AttachmentExpansionErrorKind.Topology, 1: AttachmentExpansionErrorKind.Coordinates, 2: AttachmentExpansionErrorKind.ValueCount, 3: AttachmentExpansionErrorKind.Query, 4: AttachmentExpansionErrorKind.Property, 5: AttachmentExpansionErrorKind.Edit, 6: AttachmentExpansionErrorKind.Valence, 7: AttachmentExpansionErrorKind.Placement})¶
- exception cosmolkit.AutomaticForceFieldConstructionError(*args, **kwargs)¶
Failure in the forcefield domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AutomaticForceFieldConstructionError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: UffParamError | UffTypingError | ForceFieldConstructionError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AutomaticForceFieldConstructionErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AutomaticForceFieldConstructionErrorKind(value)¶
Discriminants of AutomaticForceFieldConstructionErrorKind.
Members:
ParameterTable,Typing,Construction, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Construction = AutomaticForceFieldConstructionErrorKind.Construction¶
- ParameterTable = AutomaticForceFieldConstructionErrorKind.ParameterTable¶
- Typing = AutomaticForceFieldConstructionErrorKind.Typing¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'ParameterTable': AutomaticForceFieldConstructionErrorKind.ParameterTable, 'Typing': AutomaticForceFieldConstructionErrorKind.Typing, 'Construction': AutomaticForceFieldConstructionErrorKind.Construction})¶
- values = mappingproxy({0: AutomaticForceFieldConstructionErrorKind.ParameterTable, 1: AutomaticForceFieldConstructionErrorKind.Typing, 2: AutomaticForceFieldConstructionErrorKind.Construction})¶
- exception cosmolkit.AvalonEngineError(*args, **kwargs)¶
AvalonEngineError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property reason: str¶
Original explanation of invalid arguments or Avalon conversion failure.
- property variant: AvalonEngineErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.AvalonEngineErrorKind(value)¶
Discriminants of AvalonEngineErrorKind.
Members:
InvalidArguments,AvalonConversion, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- AvalonConversion = AvalonEngineErrorKind.AvalonConversion¶
- InvalidArguments = AvalonEngineErrorKind.InvalidArguments¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidArguments': AvalonEngineErrorKind.InvalidArguments, 'AvalonConversion': AvalonEngineErrorKind.AvalonConversion})¶
- values = mappingproxy({0: AvalonEngineErrorKind.InvalidArguments, 1: AvalonEngineErrorKind.AvalonConversion})¶
- exception cosmolkit.AvalonFingerprintError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
AvalonFingerprintError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: MolecularIoError | AvalonEngineError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: AvalonFingerprintErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.AvalonFingerprintErrorKind(value)¶
Discriminants of AvalonFingerprintErrorKind.
Members:
Input,Engine, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Engine = AvalonFingerprintErrorKind.Engine¶
- Input = AvalonFingerprintErrorKind.Input¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Input': AvalonFingerprintErrorKind.Input, 'Engine': AvalonFingerprintErrorKind.Engine})¶
- values = mappingproxy({0: AvalonFingerprintErrorKind.Input, 1: AvalonFingerprintErrorKind.Engine})¶
- class cosmolkit.AvalonFingerprintFlags¶
Avalon fingerprint feature-selection bit mask. Combine named flags with the bitwise OR operator.
Members (26)
- ALL_FEATURES = AvalonFingerprintFlags(AvalonFingerprintFlags(32767))¶
- ATOM_CLASS_PATH = AvalonFingerprintFlags(AvalonFingerprintFlags(8))¶
- ATOM_COUNT = AvalonFingerprintFlags(AvalonFingerprintFlags(16))¶
- ATOM_SYMBOL_PATH = AvalonFingerprintFlags(AvalonFingerprintFlags(4))¶
- AUGMENTED_ATOM = AvalonFingerprintFlags(AvalonFingerprintFlags(32))¶
- AUGMENTED_BOND = AvalonFingerprintFlags(AvalonFingerprintFlags(1024))¶
- BOND_PATH = AvalonFingerprintFlags(AvalonFingerprintFlags(512))¶
- CLASS_SPIDERS = AvalonFingerprintFlags(AvalonFingerprintFlags(8192))¶
- DEGREE_PATH = AvalonFingerprintFlags(AvalonFingerprintFlags(4096))¶
- FEATURE_PAIRS = AvalonFingerprintFlags(AvalonFingerprintFlags(16384))¶
- HCOUNT_CLASS_PATH = AvalonFingerprintFlags(AvalonFingerprintFlags(128))¶
- HCOUNT_PAIR = AvalonFingerprintFlags(AvalonFingerprintFlags(256))¶
- HCOUNT_PATH = AvalonFingerprintFlags(AvalonFingerprintFlags(64))¶
- NON_SSS_BITS = AvalonFingerprintFlags(AvalonFingerprintFlags(15728640))¶
- RING_PATH = AvalonFingerprintFlags(AvalonFingerprintFlags(2))¶
- RING_PATTERN = AvalonFingerprintFlags(AvalonFingerprintFlags(1))¶
- RING_SIZE_COUNTS = AvalonFingerprintFlags(AvalonFingerprintFlags(2048))¶
- SCAFFOLD_COLORS = AvalonFingerprintFlags(AvalonFingerprintFlags(2097152))¶
- SCAFFOLD_IDS = AvalonFingerprintFlags(AvalonFingerprintFlags(1048576))¶
- SCAFFOLD_LINKS = AvalonFingerprintFlags(AvalonFingerprintFlags(4194304))¶
- SHORTCUT_LABELS = AvalonFingerprintFlags(AvalonFingerprintFlags(8388608))¶
- SIMILARITY = AvalonFingerprintFlags(AvalonFingerprintFlags(15761407))¶
- bits: int¶
Underlying integer bit mask.
- contains(other) bool¶
Whether this mask includes every bit set in the supplied mask.
- static from_bits(bits) AvalonFingerprintFlags | None¶
Construct flags from an integer, returning None when unknown bits are present.
- static from_bits_retain(bits) AvalonFingerprintFlags¶
Construct flags while retaining all supplied bits, including unknown bits.
- class cosmolkit.AvalonFingerprintParams(*, n_bits=Ellipsis, is_query=Ellipsis, bit_flags=Ellipsis)¶
Parameters for the source-backed Avalon bit-vector API.
- exception cosmolkit.BatchError(*args, **kwargs)¶
BatchError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property index: int¶
Zero-based input record index at which the batch operation failed.
- property message: str¶
Native message describing this record’s failure.
- property operation: str¶
Canonical name of the failed batch operation.
- property source: SmilesError | OperationError | MolecularIoError | SdfError | MolWriteError | DrawingError | DrawingWriteError | BatchImageError | SmilesWriteError | ConformerRunError | AtomPairReadError | MorganReadError | TopologicalTorsionReadError | AtomPairError | MolPostError | SdfReadError | SdfWriteError | PatternFingerprintError | LayeredFingerprintError | BatchValidationError | IoError | Utf8Error | FromUtf8Error | ExternalError | None¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- class cosmolkit.BatchErrorMode(value)¶
Typed BatchErrorMode values corresponding to the Rust enum.
Members:
Strict,KeepErrors, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (7)
- KEEP = BatchErrorMode.KeepErrors¶
- KeepErrors = BatchErrorMode.KeepErrors¶
- RAISE = BatchErrorMode.Strict¶
- Strict = BatchErrorMode.Strict¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Strict': BatchErrorMode.Strict, 'RAISE': BatchErrorMode.Strict, 'KeepErrors': BatchErrorMode.KeepErrors, 'KEEP': BatchErrorMode.KeepErrors})¶
- values = mappingproxy({0: BatchErrorMode.Strict, 1: BatchErrorMode.KeepErrors})¶
- class cosmolkit.BatchExportParams(*, format=Ellipsis, errors=Ellipsis, n_jobs=Ellipsis, progress_bar=Ellipsis)¶
SDF export format and optional batch execution overrides.
Members (4)
- errors: BatchErrorMode | None¶
The live batch resolves inheritance; detached exports default to Strict.
- n_jobs: int | None¶
Optional worker count; None inherits the batch setting.
- progress_bar: bool | None¶
Optional progress reporting setting; None inherits the batch setting.
- class cosmolkit.BatchExportReport¶
Ordered batch export totals and retained per-record failures.
Members (5)
- errors: list[BatchError]¶
Independent list of per-record export errors, preserving structured causes.
- failed: int¶
Number of records that failed to export.
- success: int¶
Number of records successfully written.
- total: int¶
Total number of records processed by the export.
- write_report(path) None¶
Write the native export report to the supplied filesystem path.
- class cosmolkit.BatchFingerprintAdditionalOutput¶
Immutable view keeps the actual result alive; constructing it never copies provenance. Individual reads only allocate their requested Python value.
Members (5)
- atom_to_bits: list[list[int]] | None¶
Contributing fingerprint bit identifiers for each atom, or None when not collected.
- atoms_per_bit: dict[int, list[list[int]]] | None¶
Bit identifiers mapped to participating atom sets, or None when not collected.
- class cosmolkit.BatchFingerprintOutput¶
One batch record’s fingerprint and optional native provenance output.
Members (2)
- additional_output: BatchFingerprintAdditionalOutput¶
Owner-retaining view of collected provenance; raises BatchFingerprintOutputError when provenance was not requested.
- fingerprint: Fingerprint¶
Bit fingerprint for this batch record.
- exception cosmolkit.BatchFingerprintOutputError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BatchFingerprintOutputError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property fingerprint_kind: str | None¶
Readonly fingerprint_kind payload of the MissingAdditionalOutput error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BatchFingerprintOutputErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BatchFingerprintOutputErrorKind(value)¶
Discriminants of BatchFingerprintOutputErrorKind.
Members:
MissingAdditionalOutput, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (4)
- MissingAdditionalOutput = BatchFingerprintOutputErrorKind.MissingAdditionalOutput¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingAdditionalOutput': BatchFingerprintOutputErrorKind.MissingAdditionalOutput})¶
- values = mappingproxy({0: BatchFingerprintOutputErrorKind.MissingAdditionalOutput})¶
- exception cosmolkit.BatchImageError(*args, **kwargs)¶
Failure in the batch domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BatchImageError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property format: str | None¶
Format involved in the failed conversion. Applies to BatchImageError.InvalidFormat. None when this payload is absent.
- property source: DrawingWriteError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BatchImageErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BatchImageErrorKind(value)¶
Discriminants of BatchImageErrorKind.
Members:
InvalidFormat,Write, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- InvalidFormat = BatchImageErrorKind.InvalidFormat¶
- Write = BatchImageErrorKind.Write¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidFormat': BatchImageErrorKind.InvalidFormat, 'Write': BatchImageErrorKind.Write})¶
- values = mappingproxy({0: BatchImageErrorKind.InvalidFormat, 1: BatchImageErrorKind.Write})¶
- class cosmolkit.BatchImageParams(*, format=Ellipsis, width=Ellipsis, height=Ellipsis, execution=Ellipsis, filenames=Ellipsis, report_path=Ellipsis)¶
Per-image output format, dimensions, names and batch execution settings.
Members (6)
- execution: BatchParams¶
Batch scheduling and error-handling options.
- filenames: tuple[str | None, ...] | None¶
Optional per-record output names; absent entries use generated names.
- format: str¶
Image format to write, such as png or svg.
- height: int¶
Height of each image in pixels.
- report_path: pathlib.Path | None¶
Optional path for the image export report.
- width: int¶
Width of each image in pixels.
- class cosmolkit.BatchParams(*, errors=Ellipsis, n_jobs=Ellipsis, progress_bar=Ellipsis)¶
Per-call scheduling and error policy; overrides never mutate stored batch configuration.
Members (3)
- errors: BatchErrorMode | None¶
None inherits the batch policy; constructors without a batch use Strict.
- n_jobs: int | None¶
Inherit a stored batch setting when absent, otherwise default to one worker.
- progress_bar: bool | None¶
Override progress-bar display, or inherit the batch setting when absent.
- class cosmolkit.BatchQueryParams(*, n_jobs=Ellipsis, progress_bar=Ellipsis, progress_callback=None)¶
Native batch query execution overrides and optional per-record progress notification.
Members (3)
- n_jobs: int | None¶
Inherit a stored batch setting when absent, otherwise default to one worker.
- progress_bar: bool | None¶
Optional progress reporting; None inherits the stored batch setting.
- progress_callback: collections.abc.Callable[[], None] | None¶
Optional zero-argument notification after each completed query row. Retained input errors reject the query before any notification; callback exceptions propagate.
- exception cosmolkit.BatchValidationError(*args, **kwargs)¶
BatchValidationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property errors: int¶
Number of invalid batch records.
- property record_errors: list[BatchError]¶
“error_payload”} Return a copy of the per-record BatchError list, retaining record indices and the native causes. Editing the list does not modify this exception.
- Type:
{“role”
- class cosmolkit.BestAlignmentParameters(*, probe_conformer_id=Ellipsis, reference_conformer_id=Ellipsis, atom_maps=Ellipsis, weights=Ellipsis, reflect=Ellipsis, max_iterations=Ellipsis, max_matches=Ellipsis, symmetrize_conjugated_terminal_groups=Ellipsis, ignore_hydrogens=Ellipsis, num_threads=Ellipsis)¶
Symmetry-aware best alignment options over candidate atom correspondences.
Members (11)
- atom_maps: tuple[tuple[AlignmentAtomMap, ...], ...]¶
Candidate probe-to-reference atom mappings; an empty collection requests native match enumeration.
- ignore_hydrogens: bool¶
Ignore hydrogen atoms during native match enumeration.
- max_iterations: int¶
Maximum iterations for native alignment optimization.
- max_matches: int¶
Maximum number of candidate atom mappings considered.
- static new(probe_conformer_id=Ellipsis, reference_conformer_id=Ellipsis, atom_maps=Ellipsis, weights=Ellipsis, reflect=Ellipsis, max_iterations=Ellipsis, max_matches=Ellipsis, symmetrize_conjugated_terminal_groups=Ellipsis, ignore_hydrogens=Ellipsis, num_threads=Ellipsis) BestAlignmentParameters¶
Create an independent configuration through the native constructor using the supplied field values.
- num_threads: int¶
Number of native alignment worker threads.
- probe_conformer_id: int¶
Probe conformer identifier; -1 selects the native default conformer.
- reference_conformer_id: int¶
Reference conformer identifier; -1 selects the native default conformer.
- reflect: bool¶
Allow reflection while determining the alignment transform.
- symmetrize_conjugated_terminal_groups: bool¶
Treat conjugated terminal groups symmetrically when selecting matches.
- weights: tuple[float, ...] | None¶
Optional alignment weights in atom-map order.
- class cosmolkit.BioAssembly(name, author_determined, software_determined, special_kind, oligomeric_count, oligomeric_details, software_name, buried_surface_area, surface_area, solvent_free_energy_change, generators)¶
Biological assembly definition with source provenance, reported metrics and generation rules.
Members (11)
- author_determined: bool¶
Whether the source marks this assembly as author-determined.
- buried_surface_area: float¶
Buried surface-area value reported for this assembly.
- generators: list[BioAssemblyGenerator]¶
Independent list of generators defining which chains and transforms build the assembly.
- name: str¶
Source identifier or name of this assembly or operator.
- oligomeric_count: int¶
Reported number of components in the oligomeric assembly.
- oligomeric_details: str¶
Source description of the oligomeric assembly.
- software_determined: bool¶
Whether the source marks this assembly as software-determined.
- software_name: str¶
Name of the software used to determine this assembly.
- solvent_free_energy_change: float¶
Solvent free-energy change reported for this assembly.
- special_kind: BioAssemblySpecialKind¶
Stored special assembly classification.
- surface_area: float¶
Surface-area value reported for this assembly.
- class cosmolkit.BioAssemblyGenerator(*, chains=Ellipsis, subchains=Ellipsis, operators=None)¶
Chain and subchain selections together with the operators that generate an assembly.
- class cosmolkit.BioAssemblyOperator(name, operator_type, transform)¶
Named affine operator used to generate a biological assembly.
Members (3)
- name: str | None¶
Source identifier or name of this assembly or operator.
- operator_type: str | None¶
Source classification of the assembly operator, or None if absent.
- transform: BioTransform¶
Affine transform associated with this symmetry or assembly operator.
- class cosmolkit.BioAssemblySpecialKind(value)¶
Typed BioAssemblySpecialKind values corresponding to the Rust enum.
Members:
NotApplicable,CompleteIcosahedral,RepresentativeHelical,CompletePoint, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (7)
- CompleteIcosahedral = BioAssemblySpecialKind.CompleteIcosahedral¶
- CompletePoint = BioAssemblySpecialKind.CompletePoint¶
- NotApplicable = BioAssemblySpecialKind.NotApplicable¶
- RepresentativeHelical = BioAssemblySpecialKind.RepresentativeHelical¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'NotApplicable': BioAssemblySpecialKind.NotApplicable, 'CompleteIcosahedral': BioAssemblySpecialKind.CompleteIcosahedral, 'RepresentativeHelical': BioAssemblySpecialKind.RepresentativeHelical, 'CompletePoint': BioAssemblySpecialKind.CompletePoint})¶
- values = mappingproxy({0: BioAssemblySpecialKind.NotApplicable, 1: BioAssemblySpecialKind.CompleteIcosahedral, 2: BioAssemblySpecialKind.RepresentativeHelical, 3: BioAssemblySpecialKind.CompletePoint})¶
- class cosmolkit.BioAsu(value)¶
Typed BioAsu values corresponding to the Rust enum.
Members:
Same,Different,Any, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (6)
- Any = BioAsu.Any¶
- Different = BioAsu.Different¶
- Same = BioAsu.Same¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Same': BioAsu.Same, 'Different': BioAsu.Different, 'Any': BioAsu.Any})¶
- values = mappingproxy({0: BioAsu.Same, 1: BioAsu.Different, 2: BioAsu.Any})¶
- class cosmolkit.BioAtom¶
Owned BioAtom view retaining its structure version.
Hierarchy and coordinate reads use that retained structure. Editing another COW structure value does not invalidate this object or alter its values. value() returns the detached row without its owner context.
Members (17)
- altloc: AltLocLabel | None¶
Alternate-location label, or None for an unlabeled location.
- anisou: list[float]¶
U11, U22, U33, U12, U13, U23.
- Type:
Anisotropic displacement components in native order
- atomic_number: int¶
Atomic number of this atom’s element.
- b_iso: float¶
Stored isotropic B factor.
- calculation_flag: BioCalcFlag¶
Source calculation status of this atom.
- formal_charge: int¶
Stored signed formal charge of the atom.
- fraction: float¶
Stored atom fraction value from the source structure.
- id: int¶
Stable local row identifier in the retained structure, not a source-file serial number.
- isotope_mass_number: int | None¶
Explicit isotope mass number, or None if unspecified.
- occupancy: float¶
Stored site occupancy.
- residue_id: int¶
Local identifier of the residue containing this atom.
- source: AtomSourceIds¶
Source-file identifiers retained separately from local row indices.
- tls_group_id: int¶
Stored translation/libration/screw group identifier.
- value() BioAtomRow¶
Return a detached row copy without structure ownership or contextual traversal.
- class cosmolkit.BioAtomRow(residue_id, name, element, isotope_mass_number, altloc, formal_charge, calc_flag, occupancy, b_iso, anisou, tls_group_id, fraction, source)¶
Detached atom metadata row. Cartesian positions belong to the structure’s separate coordinate block.
Members (13)
- altloc: AltLocLabel | None¶
Alternate-location identifier, or None if unlabelled.
- b_iso: float¶
Isotropic atomic displacement parameter.
- calc_flag: BioCalcFlag¶
Source classification of whether the atom position was calculated or determined.
- formal_charge: int¶
Formal charge stored on the atom.
- fraction: float¶
Isotopic fraction retained by the native atom row.
- isotope_mass_number: int | None¶
Explicit isotope mass number, or None for natural isotopic composition.
- occupancy: float¶
Occupancy reported for this atom.
- residue_id: int¶
Local identifier of the parent residue.
- source: AtomSourceIds¶
Source-format identifiers, distinct from local structure row indices.
- tls_group_id: int¶
TLS refinement group identifier stored for this atom.
- class cosmolkit.BioBasicRefinementInfo(*, resolution_high=None, resolution_low=None, completeness=None, reflection_count=None, work_set_count=None, rfree_set_count=None, r_all=None, r_work=None, r_free=None, cc_fo_fc_work=None, cc_fo_fc_free=None, fsc_work=None, fsc_free=None, cc_intensity_work=None, cc_intensity_free=None)¶
Readonly refinement statistics for reflection work and free sets; unavailable values retain native sentinels.
Members (15)
- cc_fo_fc_free: float¶
Observed/calculated structure-factor correlation for the free set.
- cc_fo_fc_work: float¶
Observed/calculated structure-factor correlation for the working set.
- cc_intensity_free: float¶
Intensity correlation for the free set.
- cc_intensity_work: float¶
Intensity correlation for the working set.
- completeness: float¶
Reported completeness of the refinement data.
- fsc_free: float¶
Fourier-shell correlation reported for the free set.
- fsc_work: float¶
Fourier-shell correlation reported for the working set.
- r_all: float¶
R factor over all reflections.
- r_free: float¶
R factor over the free reflections.
- r_work: float¶
R factor over the working reflections.
- reflection_count: int¶
Total reflection count.
- resolution_high: float¶
High-resolution refinement limit in angstroms.
- resolution_low: float¶
Low-resolution refinement limit in angstroms.
- rfree_set_count: int¶
Number of reflections in the R-free set.
- work_set_count: int¶
Number of reflections in the working set.
- class cosmolkit.BioCalcFlag(value)¶
Typed BioCalcFlag values corresponding to the Rust enum.
Members:
NotSet,NoHydrogen,Determined,Calculated,Dummy, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (8)
- Calculated = BioCalcFlag.Calculated¶
- Determined = BioCalcFlag.Determined¶
- Dummy = BioCalcFlag.Dummy¶
- NoHydrogen = BioCalcFlag.NoHydrogen¶
- NotSet = BioCalcFlag.NotSet¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'NotSet': BioCalcFlag.NotSet, 'NoHydrogen': BioCalcFlag.NoHydrogen, 'Determined': BioCalcFlag.Determined, 'Calculated': BioCalcFlag.Calculated, 'Dummy': BioCalcFlag.Dummy})¶
- values = mappingproxy({0: BioCalcFlag.NotSet, 1: BioCalcFlag.NoHydrogen, 2: BioCalcFlag.Determined, 3: BioCalcFlag.Calculated, 4: BioCalcFlag.Dummy})¶
- class cosmolkit.BioChain¶
Owned BioChain view retaining its structure version.
Hierarchy and coordinate reads use that retained structure. Editing another COW structure value does not invalidate this object or alter its values. value() returns the detached row without its owner context.
Members (9)
- entity_id: int | None¶
Associated entity’s local identifier, or None when no entity is assigned. Associated entity’s local row identifier, or None if unassigned.
- id: int¶
Stable local row identifier in the retained structure, not a source-file serial number.
- model_id: int¶
Local identifier of the model containing this chain.
- num_residues: int¶
Number of residue rows in this chain.
- residue_span: BioRowSpan¶
Half-open span of this chain’s residue rows in the retained structure.
- residues: list[BioResidue]¶
Residues in stored order, each retaining the same structure version.
- source: ChainSourceIds¶
Source-format chain identifiers, distinct from local row identifiers.
- value() BioChainRow¶
Return a detached row copy without structure ownership or contextual traversal.
- class cosmolkit.BioChainRow(model_id, entity_id, residue_span, kind, source)¶
Detached chain row containing parent identifiers and a residue span, without an owning structure.
Members (5)
- entity_id: int | None¶
Local entity row identifier, or None if unassigned.
- model_id: int¶
Local index of the parent model row.
- residue_span: BioRowSpan¶
Half-open range of residue rows belonging to this chain.
- source: ChainSourceIds¶
Source-format identifiers, distinct from local row indices.
- class cosmolkit.BioCisPep(*, partner_c=None, partner_n=None, model_num=None, only_altloc=None, reported_angle=None)¶
Cis-peptide record with partner addresses, model and reported angle.
Members (5)
- model_num: int¶
Source model number associated with the cis-peptide record.
- only_altloc: int¶
Alternate-location restriction retained in the cis-peptide record.
- partner_c: AtomAddress¶
Address of the carbon-side cis-peptide partner.
- partner_n: AtomAddress¶
Address of the nitrogen-side cis-peptide partner.
- reported_angle: float¶
Peptide angle reported by the source, in degrees.
- class cosmolkit.BioConnection(*, name=None, link_id=None, kind=None, asu=None, partner1=None, partner2=None, reported_distance=None, reported_sym=None)¶
Reported inter-atom connection with partner addresses and symmetry metadata.
Members (8)
- kind: BioConnectionKind¶
Native connection classification.
- link_id: str¶
Chemical link identifier reported by the source.
- name: str¶
Name or identifier retained in this source record.
- partner1: AtomAddress¶
Address of the first connection partner.
- partner2: AtomAddress¶
Address of the second connection partner.
- reported_distance: float¶
Inter-partner distance reported in the source.
- class cosmolkit.BioConnectionKind(value)¶
Typed BioConnectionKind values corresponding to the Rust enum.
Members:
Covale,Disulf,Hydrog,MetalC,Unknown, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (8)
- Covale = BioConnectionKind.Covale¶
- Disulf = BioConnectionKind.Disulf¶
- Hydrog = BioConnectionKind.Hydrog¶
- MetalC = BioConnectionKind.MetalC¶
- Unknown = BioConnectionKind.Unknown¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Covale': BioConnectionKind.Covale, 'Disulf': BioConnectionKind.Disulf, 'Hydrog': BioConnectionKind.Hydrog, 'MetalC': BioConnectionKind.MetalC, 'Unknown': BioConnectionKind.Unknown})¶
- values = mappingproxy({0: BioConnectionKind.Covale, 1: BioConnectionKind.Disulf, 2: BioConnectionKind.Hydrog, 3: BioConnectionKind.MetalC, 4: BioConnectionKind.Unknown})¶
- class cosmolkit.BioCoordinateBlock(positions)¶
Cartesian atom coordinates stored as three-component rows; positions returns an independent NumPy array.
Members (3)
- is_empty: bool¶
Whether there are no coordinate rows.
- len: int¶
Number of stored Cartesian coordinate rows.
- positions: numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]¶
[“numpy”],”type”:”numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]”} Independent float64 NumPy array with shape (num_atoms, 3), in stored atom order.
- Type:
{“role”
- Type:
“return_type”,”imports”
- class cosmolkit.BioCoordinateFormat(value)¶
Typed BioCoordinateFormat values corresponding to the Rust enum.
Members:
Unknown,Detect,Pdb,Mmcif,Mmjson,ChemComp, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (9)
- ChemComp = BioCoordinateFormat.ChemComp¶
- Detect = BioCoordinateFormat.Detect¶
- Mmcif = BioCoordinateFormat.Mmcif¶
- Mmjson = BioCoordinateFormat.Mmjson¶
- Pdb = BioCoordinateFormat.Pdb¶
- Unknown = BioCoordinateFormat.Unknown¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Unknown': BioCoordinateFormat.Unknown, 'Detect': BioCoordinateFormat.Detect, 'Pdb': BioCoordinateFormat.Pdb, 'Mmcif': BioCoordinateFormat.Mmcif, 'Mmjson': BioCoordinateFormat.Mmjson, 'ChemComp': BioCoordinateFormat.ChemComp})¶
- values = mappingproxy({0: BioCoordinateFormat.Unknown, 1: BioCoordinateFormat.Detect, 2: BioCoordinateFormat.Pdb, 3: BioCoordinateFormat.Mmcif, 4: BioCoordinateFormat.Mmjson, 5: BioCoordinateFormat.ChemComp})¶
- class cosmolkit.BioCrystalCell(*, a=Ellipsis, b=Ellipsis, c=Ellipsis, alpha=Ellipsis, beta=Ellipsis, gamma=Ellipsis)¶
Crystallographic unit cell: lengths in angstroms and angles in degrees.
- class cosmolkit.BioCrystalInfo(cell, space_group_hm, z_pdb, orthogonal, fractional, explicit_matrices, cs_count, symmetry_images)¶
Unit-cell geometry, coordinate transforms and retained crystallographic symmetry metadata.
Members (13)
- cell: BioCrystalCell¶
Independent copy of the stored unit-cell parameters.
- cs_count: int¶
Stored number of crystallographic symmetry images.
- explicit_matrices: bool¶
Whether the coordinate conversion matrices were explicitly supplied.
- fractional: BioTransform¶
Transform from Cartesian to fractional coordinates.
- is_crystal: bool¶
Whether the native cell information represents a crystallographic unit cell.
- orthogonal: BioTransform¶
Transform from fractional to Cartesian coordinates.
- space_group_hm: str | None¶
Hermann-Mauguin space-group designation, or None if absent.
- space_group_number: int | None¶
International space-group number inferred from the stored designation, or None if unresolved.
- symmetry_images: list[BioTransform]¶
Independent list of retained symmetry-image transforms.
- volume: float¶
Unit-cell volume computed from the stored cell geometry.
- z_pdb: str | None¶
Source PDB Z value as text, or None if absent.
- class cosmolkit.BioDiffractionInfo(*, id=None, temperature=None, source=None, source_type=None, synchrotron=None, beamline=None, wavelengths=None, scattering_type=None, mono_or_laue=None, monochromator=None, collection_date=None, optics=None, detector=None, detector_make=None)¶
Readonly diffraction-experiment metadata preserved from the structural file.
Members (14)
- beamline: str¶
Beamline identifier.
- collection_date: str¶
Data collection date as recorded in the source.
- detector: str¶
Detector technology description.
- detector_make: str¶
Detector manufacturer or model description.
- id: str¶
Source diffraction-experiment identifier.
- mono_or_laue: int¶
Native single-byte monochromatic/Laue classification marker.
- monochromator: str¶
Monochromator description.
- optics: str¶
Beam optics description.
- scattering_type: str¶
Scattering experiment type.
- source: str¶
Radiation source description.
- source_type: str¶
Radiation source type.
- synchrotron: str¶
Synchrotron facility name.
- temperature: float¶
Reported experiment temperature in kelvin.
- wavelengths: str¶
Source wavelength description, preserved as text.
- class cosmolkit.BioEntityDbRef(*, db_name=Ellipsis, accession_code=Ellipsis, id_code=Ellipsis, isoform=Ellipsis, seq_begin=None, seq_end=None, db_begin=None, db_end=None, label_seq_begin=None, label_seq_end=None)¶
Source sequence range and corresponding external database accession and range.
Members (10)
- accession_code: str¶
Accession code in the external database.
- db_name: str¶
Name of the external sequence database.
- id_code: str¶
External database entry identifier.
- isoform: str¶
External database isoform identifier.
- label_seq_begin: int | None¶
First mmCIF label sequence number in the mapping, or None.
- label_seq_end: int | None¶
Last mmCIF label sequence number in the mapping, or None.
- class cosmolkit.BioEntityRow(kind, polymer_kind, reflects_microhetero, full_sequence, dbrefs, sifts_unp_accessions, subchains, source)¶
Detached biological entity metadata, sequence and database references; no owning structure.
Members (9)
- dbrefs: list[BioEntityDbRef]¶
Independent list of external sequence database references.
- static first_mon(mon_list) str¶
Return the first monomer name from a comma-separated microheterogeneity list.
- kind: EntityKind¶
Stored native classification of this entity or residue.
- polymer_kind: PolymerKind¶
Polymer classification stored for the entity.
- reflects_microhetero: bool¶
Whether the sequence records microheterogeneity.
- source: EntitySourceIds¶
Source-format identifiers, distinct from local structure row indices.
- class cosmolkit.BioExperimentalCrystalInfo(*, id=None, description=None, ph=None, ph_range=None, diffractions=None)¶
Crystal identifier, preparation description, pH and diffraction records.
Members (5)
- description: str¶
Source description of crystal preparation or properties.
- diffractions: list[BioDiffractionInfo]¶
Diffraction measurements associated with this crystal.
- id: str¶
Crystal identifier in the source.
- ph: float¶
Reported crystal preparation pH.
- ph_range: str¶
Source text describing the pH range.
- class cosmolkit.BioExperimentInfo(*, method=None, number_of_crystals=None, unique_reflections=None, b_wilson=None, diffraction_ids=None, reflections=None, shells=None)¶
Experimental method and diffraction/reflection statistics reported for a structure.
Members (7)
- b_wilson: float¶
Wilson B factor reported for the experiment.
- method: str¶
Experimental method recorded by the source.
- number_of_crystals: int¶
Reported number of crystals used.
- reflections: BioReflectionsInfo¶
Overall reflection statistics.
- shells: list[BioReflectionsInfo]¶
Reflection statistics by resolution shell.
- unique_reflections: int¶
Reported number of unique reflections.
- class cosmolkit.BioHelix(*, start=None, end=None, pdb_helix_class=None, length=None)¶
Reported helical secondary-structure segment and PDB helix classification.
Members (5)
- end: AtomAddress¶
Address marking the end of this secondary-structure segment.
- length: int¶
Reported helix length in residues.
- pdb_helix_class: BioHelixClass¶
PDB helix classification.
- set_helix_class_as_int(n) None¶
Assign the helix class using the native PDB integer-code conversion.
- start: AtomAddress¶
Address marking the beginning of this secondary-structure segment.
- class cosmolkit.BioHelixClass(value)¶
Typed BioHelixClass values corresponding to the Rust enum.
Members:
UnknownHelix,RAlpha,ROmega,RPi,RGamma,R310,LAlpha,LOmega,LGamma,Helix27,HelixPolyProlineNone, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (14)
- Helix27 = BioHelixClass.Helix27¶
- HelixPolyProlineNone = BioHelixClass.HelixPolyProlineNone¶
- LAlpha = BioHelixClass.LAlpha¶
- LGamma = BioHelixClass.LGamma¶
- LOmega = BioHelixClass.LOmega¶
- R310 = BioHelixClass.R310¶
- RAlpha = BioHelixClass.RAlpha¶
- RGamma = BioHelixClass.RGamma¶
- ROmega = BioHelixClass.ROmega¶
- RPi = BioHelixClass.RPi¶
- UnknownHelix = BioHelixClass.UnknownHelix¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'UnknownHelix': BioHelixClass.UnknownHelix, 'RAlpha': BioHelixClass.RAlpha, 'ROmega': BioHelixClass.ROmega, 'RPi': BioHelixClass.RPi, 'RGamma': BioHelixClass.RGamma, 'R310': BioHelixClass.R310, 'LAlpha': BioHelixClass.LAlpha, 'LOmega': BioHelixClass.LOmega, 'LGamma': BioHelixClass.LGamma, 'Helix27': BioHelixClass.Helix27, 'HelixPolyProlineNone': BioHelixClass.HelixPolyProlineNone})¶
- values = mappingproxy({0: BioHelixClass.UnknownHelix, 1: BioHelixClass.RAlpha, 2: BioHelixClass.ROmega, 3: BioHelixClass.RPi, 4: BioHelixClass.RGamma, 5: BioHelixClass.R310, 6: BioHelixClass.LAlpha, 7: BioHelixClass.LOmega, 8: BioHelixClass.LGamma, 9: BioHelixClass.Helix27, 10: BioHelixClass.HelixPolyProlineNone})¶
- class cosmolkit.BioMetadata(*, authors=None, solved_by=None, starting_model=None, remark_300_detail=None, experiments=None, crystals=None, refinement=None, software=None)¶
Detached experimental, authorship and refinement metadata for a biological structure.
Members (8)
- crystals: list[BioExperimentalCrystalInfo]¶
Crystal preparation and diffraction records.
- experiments: list[BioExperimentInfo]¶
Experimental records.
- refinement: list[BioRefinementInfo]¶
Refinement records.
- remark_300_detail: str¶
Retained PDB REMARK 300 details.
- software: list[BioSoftwareItem]¶
Software records reported by the source.
- solved_by: str¶
Reported structure solution method.
- starting_model: str¶
Description of the starting structural model.
- exception cosmolkit.BioMmcifReadError(*args, **kwargs)¶
BioMmcifReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: CifReadError | BioStructureError | CoordinateBlockSelectionError | MmcifCrystalInfoError | MmcifTlsInfoError | MmcifAtomSiteGroupingError | MmcifEntityInfoError | MmcifHelixError | MmcifSheetError | MmcifConnectionError | MmcifCisPepError | MmcifModResError | MmcifAssemblyError | MmcifSiftsUnpError | MmcifCcdRestoreError | MmcifAtomSiteRowOutOfBounds | None¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- property stage: BioMmcifReadStage¶
mmCIF reading stage that failed.
- class cosmolkit.BioMmcifReadStage(value)¶
Typed BioMmcifReadStage values corresponding to the Rust enum.
Members:
CifDocument,CoordinateBlock,CrystalCell,Refinement,Tls,Experimental,Reflections,Software,Ncs,FractionalTransform,Origx,AnisotropicU,AtomSites,EntitySequence,Helices,Sheets,Connections,CisPeptides,ModifiedResidues,Assemblies,SiftsUnp,CcdRestoration,Materialization,StructureValidation, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (27)
- AnisotropicU = BioMmcifReadStage.AnisotropicU¶
- Assemblies = BioMmcifReadStage.Assemblies¶
- AtomSites = BioMmcifReadStage.AtomSites¶
- CcdRestoration = BioMmcifReadStage.CcdRestoration¶
- CifDocument = BioMmcifReadStage.CifDocument¶
- CisPeptides = BioMmcifReadStage.CisPeptides¶
- Connections = BioMmcifReadStage.Connections¶
- CoordinateBlock = BioMmcifReadStage.CoordinateBlock¶
- CrystalCell = BioMmcifReadStage.CrystalCell¶
- EntitySequence = BioMmcifReadStage.EntitySequence¶
- Experimental = BioMmcifReadStage.Experimental¶
- FractionalTransform = BioMmcifReadStage.FractionalTransform¶
- Helices = BioMmcifReadStage.Helices¶
- Materialization = BioMmcifReadStage.Materialization¶
- ModifiedResidues = BioMmcifReadStage.ModifiedResidues¶
- Ncs = BioMmcifReadStage.Ncs¶
- Origx = BioMmcifReadStage.Origx¶
- Refinement = BioMmcifReadStage.Refinement¶
- Reflections = BioMmcifReadStage.Reflections¶
- Sheets = BioMmcifReadStage.Sheets¶
- SiftsUnp = BioMmcifReadStage.SiftsUnp¶
- Software = BioMmcifReadStage.Software¶
- StructureValidation = BioMmcifReadStage.StructureValidation¶
- Tls = BioMmcifReadStage.Tls¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'CifDocument': BioMmcifReadStage.CifDocument, 'CoordinateBlock': BioMmcifReadStage.CoordinateBlock, 'CrystalCell': BioMmcifReadStage.CrystalCell, 'Refinement': BioMmcifReadStage.Refinement, 'Tls': BioMmcifReadStage.Tls, 'Experimental': BioMmcifReadStage.Experimental, 'Reflections': BioMmcifReadStage.Reflections, 'Software': BioMmcifReadStage.Software, 'Ncs': BioMmcifReadStage.Ncs, 'FractionalTransform': BioMmcifReadStage.FractionalTransform, 'Origx': BioMmcifReadStage.Origx, 'AnisotropicU': BioMmcifReadStage.AnisotropicU, 'AtomSites': BioMmcifReadStage.AtomSites, 'EntitySequence': BioMmcifReadStage.EntitySequence, 'Helices': BioMmcifReadStage.Helices, 'Sheets': BioMmcifReadStage.Sheets, 'Connections': BioMmcifReadStage.Connections, 'CisPeptides': BioMmcifReadStage.CisPeptides, 'ModifiedResidues': BioMmcifReadStage.ModifiedResidues, 'Assemblies': BioMmcifReadStage.Assemblies, 'SiftsUnp': BioMmcifReadStage.SiftsUnp, 'CcdRestoration': BioMmcifReadStage.CcdRestoration, 'Materialization': BioMmcifReadStage.Materialization, 'StructureValidation': BioMmcifReadStage.StructureValidation})¶
- values = mappingproxy({0: BioMmcifReadStage.CifDocument, 1: BioMmcifReadStage.CoordinateBlock, 2: BioMmcifReadStage.CrystalCell, 3: BioMmcifReadStage.Refinement, 4: BioMmcifReadStage.Tls, 5: BioMmcifReadStage.Experimental, 6: BioMmcifReadStage.Reflections, 7: BioMmcifReadStage.Software, 8: BioMmcifReadStage.Ncs, 9: BioMmcifReadStage.FractionalTransform, 10: BioMmcifReadStage.Origx, 11: BioMmcifReadStage.AnisotropicU, 12: BioMmcifReadStage.AtomSites, 13: BioMmcifReadStage.EntitySequence, 14: BioMmcifReadStage.Helices, 15: BioMmcifReadStage.Sheets, 16: BioMmcifReadStage.Connections, 17: BioMmcifReadStage.CisPeptides, 18: BioMmcifReadStage.ModifiedResidues, 19: BioMmcifReadStage.Assemblies, 20: BioMmcifReadStage.SiftsUnp, 21: BioMmcifReadStage.CcdRestoration, 22: BioMmcifReadStage.Materialization, 23: BioMmcifReadStage.StructureValidation})¶
- exception cosmolkit.BioMmcifWriteError(*args, **kwargs)¶
BioMmcifWriteError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property field: str | None¶
Field whose content or type caused the failure. Applies to BioMmcifWriteError.InvalidText. None when this payload is absent.
- property path: pathlib.Path | None¶
Filesystem path involved in the operation. Applies to BioMmcifWriteError.FileWrite. None when this payload is absent.
- property source: BioStructureError | CifReadError | IoError | None¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause. Source name associated with the CIF input, not an exception cause.
- Type:
{“role”
- property variant: BioMmcifWriteErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.BioMmcifWriteErrorKind(value)¶
Discriminants of BioMmcifWriteErrorKind.
Members:
Structure,Cif,InvalidText,Io,FileWrite, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- Cif = BioMmcifWriteErrorKind.Cif¶
- FileWrite = BioMmcifWriteErrorKind.FileWrite¶
- InvalidText = BioMmcifWriteErrorKind.InvalidText¶
- Io = BioMmcifWriteErrorKind.Io¶
- Structure = BioMmcifWriteErrorKind.Structure¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Structure': BioMmcifWriteErrorKind.Structure, 'Cif': BioMmcifWriteErrorKind.Cif, 'InvalidText': BioMmcifWriteErrorKind.InvalidText, 'Io': BioMmcifWriteErrorKind.Io, 'FileWrite': BioMmcifWriteErrorKind.FileWrite})¶
- values = mappingproxy({0: BioMmcifWriteErrorKind.Structure, 1: BioMmcifWriteErrorKind.Cif, 2: BioMmcifWriteErrorKind.InvalidText, 3: BioMmcifWriteErrorKind.Io, 4: BioMmcifWriteErrorKind.FileWrite})¶
- class cosmolkit.BioMmcifWriteParams(*, atoms=Ellipsis, block_name=Ellipsis, entry=Ellipsis, database_status=Ellipsis, author=Ellipsis, cell=Ellipsis, symmetry=Ellipsis, entity=Ellipsis, entity_poly=Ellipsis, struct_ref=Ellipsis, chem_comp=Ellipsis, exptl=Ellipsis, diffrn=Ellipsis, reflns=Ellipsis, refine=Ellipsis, title_keywords=Ellipsis, ncs=Ellipsis, struct_asym=Ellipsis, origx=Ellipsis, struct_conf=Ellipsis, struct_sheet=Ellipsis, struct_biol=Ellipsis, assembly=Ellipsis, conn=Ellipsis, cis=Ellipsis, modres=Ellipsis, scale=Ellipsis, atom_type=Ellipsis, entity_poly_seq=Ellipsis, tls=Ellipsis, software=Ellipsis, group_pdb=Ellipsis, auth_all=Ellipsis, prefer_pairs=Ellipsis, compact=Ellipsis, misuse_hash=Ellipsis, align_pairs=Ellipsis, align_loops=Ellipsis)¶
Full source-defined mmCIF category switches and canonical CIF layout controls.
The default enables every category and group_pdb; auth_all is false. Switches are flattened into this single IO-owned parameter value.
Members (38)
- align_loops: int¶
Max loop column width used for value alignment (0 = no alignment).
- align_pairs: int¶
Column at which pair values start (0 = single space).
- assembly: bool¶
Emit assembly definitions and operators.
- atom_type: bool¶
Emit atom-type metadata.
- atoms: bool¶
Emit atom coordinates and associated atom-site data.
- auth_all: bool¶
Emit _atom_site.auth_atom_id/auth_comp_id in addition to label ids.
- author: bool¶
Emit author information.
- block_name: bool¶
Set the CIF data-block name from the structure.
- cell: bool¶
Emit crystallographic unit-cell parameters.
- chem_comp: bool¶
Emit chemical-component definitions.
- cis: bool¶
Emit cis-peptide annotations.
- compact: bool¶
Omit blank lines between categories (blocks still separated).
- conn: bool¶
Emit explicit structural connections.
- database_status: bool¶
Emit deposition and database-status metadata.
- diffrn: bool¶
Emit diffraction-experiment metadata.
- entity: bool¶
Emit molecular entity definitions.
- entity_poly: bool¶
Emit polymer entity classifications.
- entity_poly_seq: bool¶
Emit polymer entity sequences.
- entry: bool¶
Emit entry-identification metadata.
- exptl: bool¶
Emit experimental-method metadata.
- group_pdb: bool¶
Emit the _atom_site.group_PDB column (ATOM/HETATM records).
- misuse_hash: bool¶
Put # empty comments before/after categories.
- modres: bool¶
Emit modified-residue annotations.
- ncs: bool¶
Emit non-crystallographic symmetry operators.
- origx: bool¶
Emit the original-coordinate transform.
- prefer_pairs: bool¶
Write single-row loops as tag/value pairs.
- refine: bool¶
Emit refinement statistics and restraints.
- reflns: bool¶
Emit reflection statistics.
- scale: bool¶
Emit fractional-coordinate transformation information.
- software: bool¶
Emit software provenance recorded in the structure.
- struct_asym: bool¶
Emit asymmetric-unit chain/entity associations.
- struct_biol: bool¶
Emit biological-structure metadata.
- struct_conf: bool¶
Emit helical and other conformational annotations.
- struct_ref: bool¶
Emit reference-database links.
- struct_sheet: bool¶
Emit beta-sheet annotations.
- symmetry: bool¶
Emit space-group symmetry metadata.
- title_keywords: bool¶
Emit the structure title and keywords.
- tls: bool¶
Emit translation/libration/screw refinement metadata.
- class cosmolkit.BioModel¶
Owned BioModel view retaining its structure version.
Hierarchy and coordinate reads use that retained structure. Editing another COW structure value does not invalidate this object or alter its values. value() returns the detached row without its owner context.
Members (6)
- chain_span: BioRowSpan¶
Half-open span of this model’s chain rows in the retained structure.
- id: int¶
Stable local row identifier in the retained structure, not a source-file serial number.
- num_chains: int¶
Number of chains in this model.
- source_model_number: int | None¶
Model number recorded by the input format, or None if it was not supplied.
- value() BioModelRow¶
Return a detached row copy without structure ownership or contextual traversal.
- class cosmolkit.BioModelRow(chain_span, source_model_number)¶
Detached model row containing its chain span and optional source model number.
Members (2)
- chain_span: BioRowSpan¶
Half-open range of chain rows belonging to this model.
- source_model_number: int | None¶
Model number from the input file, or None if absent.
- class cosmolkit.BioModRes(*, chain_name=None, res_id=None, parent_comp_id=None, mod_id=None, details=None)¶
Modified-residue record linking a source residue to its parent chemical component.
- exception cosmolkit.BioMoleculeConversionError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BioMoleculeConversionError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: AtomPropertyError | TopologyValidationError | CoordinateValidationError | ValenceError | TopologyEditError | PropertyUIntReadError | MoleculePropertyError | BondValueError | QueryStateError | CleanupError | PropertyCacheError | RingFindingError | KekulizeError | RadicalError | AromaticityError | ConjugationError | HybridizationError | AtropisomerError | StereoError | AdjustHsError | StereoOrderError | StereoGroupError | PropertyIntReadError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: BioStructureError | TopologyValidationError | PdbPostprocessError | SanitizeError | HydrogenError | ValenceError | StereoError¶
“error_payload”} Concrete native payload describing why conversion of the biological structure failed.
- Type:
{“role”
- property variant: BioMoleculeConversionErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BioMoleculeConversionErrorKind(value)¶
Discriminants of BioMoleculeConversionErrorKind.
Members:
Structure,Topology,Chemistry,Sanitize,Hydrogens,Valence,Stereo, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (10)
- Chemistry = BioMoleculeConversionErrorKind.Chemistry¶
- Hydrogens = BioMoleculeConversionErrorKind.Hydrogens¶
- Sanitize = BioMoleculeConversionErrorKind.Sanitize¶
- Stereo = BioMoleculeConversionErrorKind.Stereo¶
- Structure = BioMoleculeConversionErrorKind.Structure¶
- Topology = BioMoleculeConversionErrorKind.Topology¶
- Valence = BioMoleculeConversionErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Structure': BioMoleculeConversionErrorKind.Structure, 'Topology': BioMoleculeConversionErrorKind.Topology, 'Chemistry': BioMoleculeConversionErrorKind.Chemistry, 'Sanitize': BioMoleculeConversionErrorKind.Sanitize, 'Hydrogens': BioMoleculeConversionErrorKind.Hydrogens, 'Valence': BioMoleculeConversionErrorKind.Valence, 'Stereo': BioMoleculeConversionErrorKind.Stereo})¶
- values = mappingproxy({0: BioMoleculeConversionErrorKind.Structure, 1: BioMoleculeConversionErrorKind.Topology, 2: BioMoleculeConversionErrorKind.Chemistry, 3: BioMoleculeConversionErrorKind.Sanitize, 4: BioMoleculeConversionErrorKind.Hydrogens, 5: BioMoleculeConversionErrorKind.Valence, 6: BioMoleculeConversionErrorKind.Stereo})¶
- exception cosmolkit.BioMoleculeError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BioMoleculeError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: BioMoleculeConversionError | OperationError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BioMoleculeErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BioMoleculeErrorKind(value)¶
Discriminants of BioMoleculeErrorKind.
Members:
Conversion,Construction, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Construction = BioMoleculeErrorKind.Construction¶
- Conversion = BioMoleculeErrorKind.Conversion¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Conversion': BioMoleculeErrorKind.Conversion, 'Construction': BioMoleculeErrorKind.Construction})¶
- values = mappingproxy({0: BioMoleculeErrorKind.Conversion, 1: BioMoleculeErrorKind.Construction})¶
- class cosmolkit.BioMoleculeParams(*, sanitize=Ellipsis, remove_hs=Ellipsis, flavor=Ellipsis, proximity_bonding=Ellipsis)¶
Canonical detached structural conversion controls.
Members (4)
- flavor: PdbReadFlags¶
PDB atom and connectivity interpretation flags.
- proximity_bonding: bool¶
Infer bonds from spatial proximity where applicable.
- remove_hs: bool¶
Remove removable explicit hydrogens during molecular conversion.
- sanitize: bool¶
Sanitize the molecular topology after converting the structure.
- class cosmolkit.BioNcsOperator(id, given, transform)¶
Non-crystallographic symmetry operator with its source identifier and transform.
Members (3)
- given: bool¶
Whether this NCS operator is marked as already represented by the input coordinates.
- id: str¶
Identifier of this non-crystallographic symmetry operator in the source structure.
- transform: BioTransform¶
Affine transform associated with this symmetry or assembly operator.
- exception cosmolkit.BioOperationError(*args, **kwargs)¶
BioOperationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: BioStructureError | ProteinProjectionError | BioSelectionCopyError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- property variant: BioOperationErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.BioOperationErrorKind(value)¶
Discriminants of BioOperationErrorKind.
Members:
Structure,Protein,Selection, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Protein = BioOperationErrorKind.Protein¶
- Selection = BioOperationErrorKind.Selection¶
- Structure = BioOperationErrorKind.Structure¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Structure': BioOperationErrorKind.Structure, 'Protein': BioOperationErrorKind.Protein, 'Selection': BioOperationErrorKind.Selection})¶
- values = mappingproxy({0: BioOperationErrorKind.Structure, 1: BioOperationErrorKind.Protein, 2: BioOperationErrorKind.Selection})¶
- exception cosmolkit.BioPdbReadError(*args, **kwargs)¶
BioPdbReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property line_number: int | None¶
PDB source line number, or None when unavailable.
- property source: PdbReaderCause¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- property stage: BioPdbReadStage¶
PDB reading stage that failed.
- class cosmolkit.BioPdbReadParams(*, max_line_length=Ellipsis, check_non_ascii=Ellipsis, ignore_ter=Ellipsis, split_chain_on_ter=Ellipsis, skip_remarks=Ellipsis)¶
Source options for reading PDB text into the detached BIO hierarchy.
Members (5)
- check_non_ascii: bool¶
Record the first line containing a non-ASCII byte without rejecting it.
- ignore_ter: bool¶
Ignore TER records completely.
- max_line_length: int¶
Values <= 0 or > 120 are normalized to Gemmi’s 120-byte maximum.
- skip_remarks: bool¶
Retain raw remarks but skip their later metadata interpretation.
- split_chain_on_ter: bool¶
Split chain parts at TER without inferring residue entity kinds.
- class cosmolkit.BioPdbReadStage(value)¶
Typed BioPdbReadStage values corresponding to the Rust enum.
Members:
Stream,Record,Finalization, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (6)
- Finalization = BioPdbReadStage.Finalization¶
- Record = BioPdbReadStage.Record¶
- Stream = BioPdbReadStage.Stream¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Stream': BioPdbReadStage.Stream, 'Record': BioPdbReadStage.Record, 'Finalization': BioPdbReadStage.Finalization})¶
- values = mappingproxy({0: BioPdbReadStage.Stream, 1: BioPdbReadStage.Record, 2: BioPdbReadStage.Finalization})¶
- exception cosmolkit.BioPdbWriteError(*args, **kwargs)¶
BioPdbWriteError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (11)
- property chain: str | None¶
Structural chain involved in the failure. Applies to BioPdbWriteError.ChainNameTooLong. None when this payload is absent.
- property detail: str | None¶
Additional native diagnostic detail. Applies to BioPdbWriteError.UnrepresentableField. None when this payload is absent.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property field: str | None¶
Field whose content or type caused the failure. Applies to BioPdbWriteError.UnrepresentableField. None when this payload is absent.
- property from_: int | None¶
Starting endpoint reported by the native failure. Applies to BioPdbWriteError.SerialIncrementOverflow. None when this payload is absent.
- property length: int | None¶
Length reported by the failed native check. Applies to BioPdbWriteError.ChainNameTooLong. None when this payload is absent.
- property path: pathlib.Path | None¶
Filesystem path involved in the operation. Applies to BioPdbWriteError.Io. None when this payload is absent.
- property serial: int | None¶
Source serial number implicated in the failure. Applies to BioPdbWriteError.NegativeSerial, BioPdbWriteError.SerialOffsetOverflow. None when this payload is absent.
- property source: BioStructureError | IoError | None¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- property value: int | None¶
Value rejected or reported by the native operation. Applies to BioPdbWriteError.NegativeBase36Value. None when this payload is absent.
- property variant: BioPdbWriteErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.BioPdbWriteErrorKind(value)¶
Discriminants of BioPdbWriteErrorKind.
Members:
InvalidStructure,ChainNameTooLong,NegativeSerial,SerialIncrementOverflow,SerialOffsetOverflow,NegativeBase36Value,UnrepresentableField,Io, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (11)
- ChainNameTooLong = BioPdbWriteErrorKind.ChainNameTooLong¶
- InvalidStructure = BioPdbWriteErrorKind.InvalidStructure¶
- Io = BioPdbWriteErrorKind.Io¶
- NegativeBase36Value = BioPdbWriteErrorKind.NegativeBase36Value¶
- NegativeSerial = BioPdbWriteErrorKind.NegativeSerial¶
- SerialIncrementOverflow = BioPdbWriteErrorKind.SerialIncrementOverflow¶
- SerialOffsetOverflow = BioPdbWriteErrorKind.SerialOffsetOverflow¶
- UnrepresentableField = BioPdbWriteErrorKind.UnrepresentableField¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidStructure': BioPdbWriteErrorKind.InvalidStructure, 'ChainNameTooLong': BioPdbWriteErrorKind.ChainNameTooLong, 'NegativeSerial': BioPdbWriteErrorKind.NegativeSerial, 'SerialIncrementOverflow': BioPdbWriteErrorKind.SerialIncrementOverflow, 'SerialOffsetOverflow': BioPdbWriteErrorKind.SerialOffsetOverflow, 'NegativeBase36Value': BioPdbWriteErrorKind.NegativeBase36Value, 'UnrepresentableField': BioPdbWriteErrorKind.UnrepresentableField, 'Io': BioPdbWriteErrorKind.Io})¶
- values = mappingproxy({0: BioPdbWriteErrorKind.InvalidStructure, 1: BioPdbWriteErrorKind.ChainNameTooLong, 2: BioPdbWriteErrorKind.NegativeSerial, 3: BioPdbWriteErrorKind.SerialIncrementOverflow, 4: BioPdbWriteErrorKind.SerialOffsetOverflow, 5: BioPdbWriteErrorKind.NegativeBase36Value, 6: BioPdbWriteErrorKind.UnrepresentableField, 7: BioPdbWriteErrorKind.Io})¶
- class cosmolkit.BioPdbWriteParams(*, ter_records=Ellipsis, numbered_ter=Ellipsis, ter_ignores_type=Ellipsis, preserve_serial=Ellipsis, end_record=Ellipsis)¶
Exactly five source-default bool fields (pinned PdbWriteOptions, NOT minimal()).
Members (5)
- end_record: bool¶
Write the terminating END record.
- numbered_ter: bool¶
Assign serial numbers to TER records.
- preserve_serial: bool¶
Preserve atom serial numbers instead of renumbering output.
- ter_ignores_type: bool¶
Write TER records without restricting them to polymer entities.
- ter_records: bool¶
Write TER records at polymer chain endings.
- exception cosmolkit.BioReadError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BioReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property format: BioCoordinateFormat | None¶
“error_payload”} Format involved in the failed conversion. Applies to BioReadError.WrongFormat. None when this payload is absent.
- Type:
{“role”
- property path: pathlib.Path | None¶
Filesystem path involved in the operation. Applies to BioReadError.Io, BioReadError.Utf8, BioReadError.UnknownFileFormat. None when this payload is absent.
- property source: IoError | FromUtf8Error | BioPdbReadError | CifReadError | BioMmcifReadError | MmjsonReadError | ChemCompModelError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property source_name: str | None¶
Readonly source_name payload of the WrongFormat error variant; None for other variants.
- property variant: BioReadErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BioReadErrorKind(value)¶
Discriminants of BioReadErrorKind.
Members:
Io,Utf8,Pdb,Cif,Mmcif,Mmjson,ChemComp,WrongFormat,UnknownFileFormat, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (12)
- ChemComp = BioReadErrorKind.ChemComp¶
- Cif = BioReadErrorKind.Cif¶
- Io = BioReadErrorKind.Io¶
- Mmcif = BioReadErrorKind.Mmcif¶
- Mmjson = BioReadErrorKind.Mmjson¶
- Pdb = BioReadErrorKind.Pdb¶
- UnknownFileFormat = BioReadErrorKind.UnknownFileFormat¶
- Utf8 = BioReadErrorKind.Utf8¶
- WrongFormat = BioReadErrorKind.WrongFormat¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Io': BioReadErrorKind.Io, 'Utf8': BioReadErrorKind.Utf8, 'Pdb': BioReadErrorKind.Pdb, 'Cif': BioReadErrorKind.Cif, 'Mmcif': BioReadErrorKind.Mmcif, 'Mmjson': BioReadErrorKind.Mmjson, 'ChemComp': BioReadErrorKind.ChemComp, 'WrongFormat': BioReadErrorKind.WrongFormat, 'UnknownFileFormat': BioReadErrorKind.UnknownFileFormat})¶
- values = mappingproxy({0: BioReadErrorKind.Io, 1: BioReadErrorKind.Utf8, 2: BioReadErrorKind.Pdb, 3: BioReadErrorKind.Cif, 4: BioReadErrorKind.Mmcif, 5: BioReadErrorKind.Mmjson, 6: BioReadErrorKind.ChemComp, 7: BioReadErrorKind.WrongFormat, 8: BioReadErrorKind.UnknownFileFormat})¶
- class cosmolkit.BioReadParams(*, format=Ellipsis, source_name=Ellipsis)¶
Structural-coordinate input format and source label used in parsing diagnostics.
Members (2)
- format: BioCoordinateFormat¶
Input coordinate format; detection follows the native reader’s format policy.
- source_name: str¶
Source label attached to parsing diagnostics, not a file to open.
- class cosmolkit.BioRefinementInfo(*, id=None, cross_validation_method=None, rfree_selection_method=None, bin_count=None, mean_b=None, aniso_b=None, luzzati_error=None, dpi_blow_r=None, dpi_blow_rfree=None, dpi_cruickshank_r=None, dpi_cruickshank_rfree=None, remarks=None, basic=None, bins=None, restr_stats=None, tls_groups=None)¶
Refinement methods, quality statistics and retained restraint/TLS records.
Members (16)
- basic: BioBasicRefinementInfo¶
Overall refinement statistics.
- bin_count: int¶
Reported number of resolution bins.
- bins: list[BioBasicRefinementInfo]¶
Refinement statistics for each resolution bin.
- cross_validation_method: str¶
Reported cross-validation method.
- dpi_blow_r: float¶
Blow diffraction precision index calculated from R.
- dpi_blow_rfree: float¶
Blow diffraction precision index calculated from free R.
- dpi_cruickshank_r: float¶
Cruickshank diffraction precision index calculated from R.
- dpi_cruickshank_rfree: float¶
Cruickshank diffraction precision index calculated from free R.
- id: str¶
Refinement identifier from the source.
- luzzati_error: float¶
Coordinate error estimated by the Luzzati method.
- mean_b: float¶
Mean atomic B factor.
- remarks: str¶
Additional source refinement remarks.
- restr_stats: list[BioRefinementRestraint]¶
Reported restraint statistics.
- rfree_selection_method: str¶
Method used to select the free-R reflection set.
- tls_groups: list[BioTlsGroup]¶
Translation/libration/screw refinement groups.
- class cosmolkit.BioRefinementRestraint(*, name=None, count=None, weight=None, function=None, dev_ideal=None)¶
Readonly statistics for one refinement restraint category.
- class cosmolkit.BioReflectionsInfo(*, resolution_high=None, resolution_low=None, completeness=None, redundancy=None, r_merge=None, r_sym=None, mean_i_over_sigma=None)¶
Readonly diffraction-reflection statistics. Omitted values retain native missing-value sentinels.
Members (7)
- completeness: float¶
Reported reflection completeness.
- mean_i_over_sigma: float¶
Mean intensity divided by its standard uncertainty.
- r_merge: float¶
Merging R factor.
- r_sym: float¶
Symmetry-related R factor.
- redundancy: float¶
Reported measurement redundancy.
- resolution_high: float¶
High-resolution limit in angstroms.
- resolution_low: float¶
Low-resolution limit in angstroms.
- class cosmolkit.BioResidue¶
Owned BioResidue view retaining its structure version.
Hierarchy and coordinate reads use that retained structure. Editing another COW structure value does not invalidate this object or alter its values. value() returns the detached row without its owner context.
Members (14)
- atom_span: BioRowSpan¶
Half-open span of this residue’s atom rows in the retained structure.
- atoms: list[BioAtom]¶
Atom views in stored residue order, each retaining the same structure version.
- chain_id: int¶
Local identifier of the chain containing this residue.
- entity_id: int | None¶
Local entity identifier associated with this residue, or None when unassigned.
- entity_kind: EntityKind¶
Stored entity category associated with this residue.
- het_flag: int | None¶
Source ATOM/HETATM classification marker, or None when unavailable.
- id: int¶
Stable local row identifier in the retained structure, not a source-file serial number.
- kind: ResidueKind¶
Stored residue classification.
- name: str¶
Source atom or residue name retained by this hierarchy object.
- num_atoms: int¶
Number of atom rows in this residue, including retained alternate locations.
- residue_info_kind: ResidueInfoKind¶
Chemical residue classification from the canonical residue information table.
- sifts_unp: BioSiftsUnpResidue¶
Stored SIFTS UniProt mapping for this residue.
- source: ResidueSourceIds¶
Source-file identifiers retained separately from local row indices.
- value() BioResidueRow¶
Return a detached row copy without structure ownership or contextual traversal.
- class cosmolkit.BioResidueRow(chain_id, atom_span, name, residue_info_kind, entity_kind, entity_id, het_flag, source, sifts_unp)¶
Detached residue row with a parent chain identifier and atom span; no owning structure.
Members (10)
- atom_span: BioRowSpan¶
Half-open span of atom rows belonging to this residue.
- chain_id: int¶
Local identifier of the parent chain.
- entity_id: int | None¶
Parent entity identifier, or None if unassigned.
- entity_kind: EntityKind¶
Entity classification associated with this residue.
- het_flag: int | None¶
Source heteroatom-record flag, or None if absent.
- kind: ResidueKind¶
Stored native classification of this entity or residue.
- name: str¶
Source residue or atom name, preserving its native representation.
- residue_info_kind: ResidueInfoKind¶
Residue-information classification stored in the row.
- sifts_unp: BioSiftsUnpResidue¶
Retained UniProt residue mapping.
- source: ResidueSourceIds¶
Source-format identifiers, distinct from local structure row indices.
- exception cosmolkit.BioRowChainError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BioRowChainError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BioRowChainErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BioRowChainErrorKind(value)¶
Discriminants of BioRowChainErrorKind.
Members:
MissingCanonicalChainName, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (4)
- MissingCanonicalChainName = BioRowChainErrorKind.MissingCanonicalChainName¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingCanonicalChainName': BioRowChainErrorKind.MissingCanonicalChainName})¶
- values = mappingproxy({0: BioRowChainErrorKind.MissingCanonicalChainName})¶
- exception cosmolkit.BioRowModelError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BioRowModelError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BioRowModelErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BioRowModelErrorKind(value)¶
Discriminants of BioRowModelErrorKind.
Members:
MissingModelNumber, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (4)
- class cosmolkit.BioRowSpan(start, len)¶
Checked half-open range of rows represented by an inclusive start and row count.
- exception cosmolkit.BioRowTraverseError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BioRowTraverseError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: BioRowModelError | BioRowChainError¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BioRowTraverseErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BioRowTraverseErrorKind(value)¶
Discriminants of BioRowTraverseErrorKind.
Members:
Model,Chain, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Chain = BioRowTraverseErrorKind.Chain¶
- Model = BioRowTraverseErrorKind.Model¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Model': BioRowTraverseErrorKind.Model, 'Chain': BioRowTraverseErrorKind.Chain})¶
- values = mappingproxy({0: BioRowTraverseErrorKind.Model, 1: BioRowTraverseErrorKind.Chain})¶
- class cosmolkit.BioSelection¶
Parsed CID selector for models, chains, residues and atoms in a biological structure.
Members (2)
- static from_cid(cid) BioSelection¶
Parse a CID expression into a reusable structure selector.
- to_cid() str¶
Serialize this selection as a CID expression.
- exception cosmolkit.BioSelectionCopyCause(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BioSelectionCopyCause is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: BioStructureError | BioRowTraverseError¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BioSelectionCopyCauseKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BioSelectionCopyCauseKind(value)¶
Discriminants of BioSelectionCopyCauseKind.
Members:
Structure,Traverse, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Structure = BioSelectionCopyCauseKind.Structure¶
- Traverse = BioSelectionCopyCauseKind.Traverse¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Structure': BioSelectionCopyCauseKind.Structure, 'Traverse': BioSelectionCopyCauseKind.Traverse})¶
- values = mappingproxy({0: BioSelectionCopyCauseKind.Structure, 1: BioSelectionCopyCauseKind.Traverse})¶
- exception cosmolkit.BioSelectionCopyError(*args, **kwargs)¶
BioSelectionCopyError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: BioStructureError | BioRowTraverseError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- exception cosmolkit.BioSelectionMatchError(*args, **kwargs)¶
BioSelectionMatchError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: BioRowTraverseError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- exception cosmolkit.BioSelectionParseError(*args, **kwargs)¶
BioSelectionParseError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property cid: str | None¶
CID expression that failed syntax parsing; None for sequence-ID range failures.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property info: str | None¶
Optional syntax-parser explanation; None for sequence-ID range failures.
- property pos: int | None¶
Syntax failure position in the CID expression; None for sequence-ID range failures.
- property variant: BioSelectionParseErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.BioSelectionParseErrorKind(value)¶
Discriminants of BioSelectionParseErrorKind.
Members:
Syntax,SeqidRange, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- SeqidRange = BioSelectionParseErrorKind.SeqidRange¶
- Syntax = BioSelectionParseErrorKind.Syntax¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Syntax': BioSelectionParseErrorKind.Syntax, 'SeqidRange': BioSelectionParseErrorKind.SeqidRange})¶
- values = mappingproxy({0: BioSelectionParseErrorKind.Syntax, 1: BioSelectionParseErrorKind.SeqidRange})¶
- class cosmolkit.BioSheet(sheet_id, strands=None)¶
Named beta sheet containing ordered strand records.
- class cosmolkit.BioSiftsUnpResidue(*, residue=Ellipsis, accession_index=Ellipsis, number=Ellipsis)¶
SIFTS mapping of a structure residue to a UniProt accession index and residue number.
- class cosmolkit.BioSoftwareClassification(value)¶
Typed BioSoftwareClassification values corresponding to the Rust enum.
Members:
DataCollection,DataExtraction,DataProcessing,DataReduction,DataScaling,ModelBuilding,Phasing,Refinement,Unspecified, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (12)
- DataCollection = BioSoftwareClassification.DataCollection¶
- DataExtraction = BioSoftwareClassification.DataExtraction¶
- DataProcessing = BioSoftwareClassification.DataProcessing¶
- DataReduction = BioSoftwareClassification.DataReduction¶
- DataScaling = BioSoftwareClassification.DataScaling¶
- ModelBuilding = BioSoftwareClassification.ModelBuilding¶
- Phasing = BioSoftwareClassification.Phasing¶
- Refinement = BioSoftwareClassification.Refinement¶
- Unspecified = BioSoftwareClassification.Unspecified¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'DataCollection': BioSoftwareClassification.DataCollection, 'DataExtraction': BioSoftwareClassification.DataExtraction, 'DataProcessing': BioSoftwareClassification.DataProcessing, 'DataReduction': BioSoftwareClassification.DataReduction, 'DataScaling': BioSoftwareClassification.DataScaling, 'ModelBuilding': BioSoftwareClassification.ModelBuilding, 'Phasing': BioSoftwareClassification.Phasing, 'Refinement': BioSoftwareClassification.Refinement, 'Unspecified': BioSoftwareClassification.Unspecified})¶
- values = mappingproxy({0: BioSoftwareClassification.DataCollection, 1: BioSoftwareClassification.DataExtraction, 2: BioSoftwareClassification.DataProcessing, 3: BioSoftwareClassification.DataReduction, 4: BioSoftwareClassification.DataScaling, 5: BioSoftwareClassification.ModelBuilding, 6: BioSoftwareClassification.Phasing, 7: BioSoftwareClassification.Refinement, 8: BioSoftwareClassification.Unspecified})¶
- class cosmolkit.BioSoftwareItem(*, name=Ellipsis, version=Ellipsis, date=Ellipsis, description=Ellipsis, contact_author=Ellipsis, contact_author_email=Ellipsis, classification=None)¶
Software provenance reported during structure determination or refinement.
Members (7)
- classification: BioSoftwareClassification¶
Role of the software in structure determination.
- contact_author: str¶
Contact author recorded for the software.
- contact_author_email: str¶
Contact author’s email address.
- date: str¶
Reported software date.
- description: str¶
Source description of the software.
- name: str¶
Name of the software reported in the source.
- version: str¶
Reported software version.
- class cosmolkit.BioStrand(start, end, hbond_atom2, hbond_atom1, sense, name)¶
Reported beta strand with its boundaries, orientation and hydrogen-bond anchors.
Members (6)
- end: AtomAddress¶
Address marking the end of this secondary-structure segment.
- hbond_atom1: AtomAddress¶
First atom address in the reported sheet hydrogen bond.
- hbond_atom2: AtomAddress¶
Second atom address in the reported sheet hydrogen bond.
- name: str¶
Name or identifier retained in this source record.
- sense: int¶
native parallel/antiparallel sense code.
- Type:
Strand orientation relative to its predecessor
- start: AtomAddress¶
Address marking the beginning of this secondary-structure segment.
- exception cosmolkit.BioStructureError(*args, **kwargs)¶
BioStructureError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (17)
- property actual_start: int | None¶
Actual start of the next span. Present for BioStructureError.NonContiguousSpan; None when unavailable.
- property atom_count: int | None¶
Number of atoms available to the operation. Present for BioStructureError.CoordinateCountMismatch; None when unavailable.
- property coordinate_count: int | None¶
Number of supplied coordinate rows. Present for BioStructureError.CoordinateCountMismatch; None when unavailable.
- property covered: int | None¶
Number of rows covered by the supplied spans. Present for BioStructureError.IncompleteCoverage; None when unavailable.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property entity_id: int | None¶
Entity identifier associated with the failure. Present for BioStructureError.EntitySubchainMismatch; None when unavailable.
- property expected_start: int | None¶
Required start of the next contiguous span. Present for BioStructureError.NonContiguousSpan; None when unavailable.
- property index: int | None¶
Index associated with the failure. Present for BioStructureError.ParentMismatch, BioStructureError.RowReferenceOutOfBounds; None when unavailable.
- property len: int | None¶
Length of the invalid span or collection. Present for BioStructureError.RowSpanOverflow, BioStructureError.RowSpanOutOfBounds, BioStructureError.TableTooLarge; None when unavailable.
- property operation: str | None¶
Operation name or registered operation descriptor reporting the failure. Present for BioStructureError.EmptyResidueSpan; None when unavailable.
- property source_message: str | None¶
Message of the immediate native cause, or None when no cause exists.
- property start: int | None¶
Start of the invalid row span. Present for BioStructureError.RowSpanOverflow, BioStructureError.RowSpanOutOfBounds; None when unavailable.
- property subchain: str | None¶
Subchain identifier associated with the failure. Present for BioStructureError.EntitySubchainMismatch; None when unavailable.
- property table: str | None¶
Name of the affected structure table. Present for BioStructureError.TableTooLarge, BioStructureError.NonContiguousSpan, BioStructureError.IncompleteCoverage, BioStructureError.ParentMismatch, BioStructureError.RowReferenceOutOfBounds; None when unavailable.
- property table_len: int | None¶
Length of the referenced structure table. Present for BioStructureError.RowSpanOutOfBounds, BioStructureError.IncompleteCoverage, BioStructureError.RowReferenceOutOfBounds; None when unavailable.
- property value: int | None¶
Original value rejected by the operation. Present for BioStructureError.RowIndexTooLarge; None when unavailable.
- property variant: BioStructureErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.BioStructureErrorKind(value)¶
Discriminants of BioStructureErrorKind.
Members:
RowIndexTooLarge,RowSpanOverflow,RowSpanOutOfBounds,TableTooLarge,NonContiguousSpan,IncompleteCoverage,ParentMismatch,RowReferenceOutOfBounds,CoordinateCountMismatch,EntitySubchainMismatch,EmptyResidueSpan,ImpossibleCrystalAngle,AtomNotFound, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (16)
- AtomNotFound = BioStructureErrorKind.AtomNotFound¶
- CoordinateCountMismatch = BioStructureErrorKind.CoordinateCountMismatch¶
- EmptyResidueSpan = BioStructureErrorKind.EmptyResidueSpan¶
- EntitySubchainMismatch = BioStructureErrorKind.EntitySubchainMismatch¶
- ImpossibleCrystalAngle = BioStructureErrorKind.ImpossibleCrystalAngle¶
- IncompleteCoverage = BioStructureErrorKind.IncompleteCoverage¶
- NonContiguousSpan = BioStructureErrorKind.NonContiguousSpan¶
- ParentMismatch = BioStructureErrorKind.ParentMismatch¶
- RowIndexTooLarge = BioStructureErrorKind.RowIndexTooLarge¶
- RowReferenceOutOfBounds = BioStructureErrorKind.RowReferenceOutOfBounds¶
- RowSpanOutOfBounds = BioStructureErrorKind.RowSpanOutOfBounds¶
- RowSpanOverflow = BioStructureErrorKind.RowSpanOverflow¶
- TableTooLarge = BioStructureErrorKind.TableTooLarge¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'RowIndexTooLarge': BioStructureErrorKind.RowIndexTooLarge, 'RowSpanOverflow': BioStructureErrorKind.RowSpanOverflow, 'RowSpanOutOfBounds': BioStructureErrorKind.RowSpanOutOfBounds, 'TableTooLarge': BioStructureErrorKind.TableTooLarge, 'NonContiguousSpan': BioStructureErrorKind.NonContiguousSpan, 'IncompleteCoverage': BioStructureErrorKind.IncompleteCoverage, 'ParentMismatch': BioStructureErrorKind.ParentMismatch, 'RowReferenceOutOfBounds': BioStructureErrorKind.RowReferenceOutOfBounds, 'CoordinateCountMismatch': BioStructureErrorKind.CoordinateCountMismatch, 'EntitySubchainMismatch': BioStructureErrorKind.EntitySubchainMismatch, 'EmptyResidueSpan': BioStructureErrorKind.EmptyResidueSpan, 'ImpossibleCrystalAngle': BioStructureErrorKind.ImpossibleCrystalAngle, 'AtomNotFound': BioStructureErrorKind.AtomNotFound})¶
- values = mappingproxy({0: BioStructureErrorKind.RowIndexTooLarge, 1: BioStructureErrorKind.RowSpanOverflow, 2: BioStructureErrorKind.RowSpanOutOfBounds, 3: BioStructureErrorKind.TableTooLarge, 4: BioStructureErrorKind.NonContiguousSpan, 5: BioStructureErrorKind.IncompleteCoverage, 6: BioStructureErrorKind.ParentMismatch, 7: BioStructureErrorKind.RowReferenceOutOfBounds, 8: BioStructureErrorKind.CoordinateCountMismatch, 9: BioStructureErrorKind.EntitySubchainMismatch, 10: BioStructureErrorKind.EmptyResidueSpan, 11: BioStructureErrorKind.ImpossibleCrystalAngle, 12: BioStructureErrorKind.AtomNotFound})¶
- class cosmolkit.BioStructureParts(*, input_format, models, chains, residues, atoms, entities, connections, cispeps, mod_residues, helices, sheets, ncs_operators, assemblies, metadata, source_state, coordinates, crystal)¶
Detached structural rows, coordinates and metadata for validated BioStructure construction.
Members (17)
- assemblies: list[BioAssembly]¶
Independent list of detached BioAssembly values in stored order; these rows do not retain an owning structure.
- atoms: list[BioAtomRow]¶
Independent list of detached BioAtomRow values in stored order; these rows do not retain an owning structure.
- chains: list[BioChainRow]¶
Independent list of detached BioChainRow values in stored order; these rows do not retain an owning structure.
- cispeps: list[BioCisPep]¶
Independent list of detached BioCisPep values in stored order; these rows do not retain an owning structure.
- connections: list[BioConnection]¶
Independent list of detached BioConnection values in stored order; these rows do not retain an owning structure.
- coordinates: BioCoordinateBlock¶
Detached coordinate block in atom-row order.
- crystal: BioCrystalInfo | None¶
Crystallographic cell and symmetry information, or None when absent.
- entities: list[BioEntityRow]¶
Independent list of detached BioEntityRow values in stored order; these rows do not retain an owning structure.
- helices: list[BioHelix]¶
Independent list of detached BioHelix values in stored order; these rows do not retain an owning structure.
- input_format: BioCoordinateFormat¶
Coordinate-file format recorded by the source reader.
- metadata: BioMetadata¶
Detached copy of experimental, refinement and provenance metadata.
- mod_residues: list[BioModRes]¶
Independent list of detached BioModRes values in stored order; these rows do not retain an owning structure.
- models: list[BioModelRow]¶
Independent list of detached BioModelRow values in stored order; these rows do not retain an owning structure.
- ncs_operators: list[BioNcsOperator]¶
Independent list of detached BioNcsOperator values in stored order; these rows do not retain an owning structure.
- residues: list[BioResidueRow]¶
Independent list of detached BioResidueRow values in stored order; these rows do not retain an owning structure.
- sheets: list[BioSheet]¶
Independent list of detached BioSheet values in stored order; these rows do not retain an owning structure.
- source_state: BioStructureSourceState¶
Detached source-format state, including retained record annotations.
- class cosmolkit.BioStructureSourceState(*, name=Ellipsis, resolution=Ellipsis, conect_map=None, has_d_fraction=Ellipsis, non_ascii_line=Ellipsis, ter_status=Ellipsis, has_origx=Ellipsis, origx=None, info=None, raw_remarks=Ellipsis)¶
Source-format metadata and parsing state retained with a biological structure.
Members (10)
- has_d_fraction: bool¶
Whether the input supplied deuterium-fraction information.
- has_origx: bool¶
Whether the source supplied an ORIGX transformation.
- info: dict[str, str]¶
Source metadata key/value pairs.
- name: str¶
Structure name retained in the source metadata.
- non_ascii_line: int¶
Native source line indicator for non-ASCII input.
- origx: BioTransform¶
Original-coordinate transformation retained from the source.
- resolution: float¶
Resolution reported by the source structure.
- ter_status: int¶
Stored native status of PDB TER record handling.
- class cosmolkit.BioTlsGroup(*, num_id=None, id=None, origin=None, t=None, l=None, s=None, selections=None)¶
Translation/libration/screw refinement group, its origin and atom selections.
Members (7)
- id: str¶
Textual source identifier for this TLS group.
- num_id: int¶
Numeric source identifier for this TLS group.
- selections: list[BioTlsSelection]¶
Chain/residue selections belonging to this TLS group.
- class cosmolkit.BioTlsSelection(*, chain=None, res_begin=None, res_end=None, details=Ellipsis)¶
Chain and residue range to which a TLS refinement group applies.
- class cosmolkit.BioTransform(matrix=Ellipsis, translation=Ellipsis)¶
Three-dimensional affine transform with a 3-by-3 matrix and three-component translation.
Members (3)
- approx(other, epsilon) bool¶
Whether matrix and translation components match within the supplied native tolerance.
- matrix: numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]¶
[“numpy”], “type”: “numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]”} Independent float64 NumPy array of shape (3, 3) containing the linear transform.
- Type:
{“role”
- Type:
“return_type”, “imports”
- translation: numpy.ndarray[tuple[int], numpy.dtype[numpy.float64]]¶
[“numpy”], “type”: “numpy.ndarray[tuple[int], numpy.dtype[numpy.float64]]”} Independent float64 NumPy array of shape (3,) containing the translation vector.
- Type:
{“role”
- Type:
“return_type”, “imports”
- class cosmolkit.Bond¶
Detached readonly bond data, including endpoints, order and stored stereochemical annotations.
Members (16)
- begin: int¶
Zero-based index of the bond’s begin atom.
- cip_descriptor: CipDescriptor | None¶
Stored CIP descriptor, or None if absent; invalid stored values raise CipDescriptorError.
- cip_neighbor_order: list[int] | None¶
Stored CIP neighbor ordering as atom indices, or None if absent; invalid encodings raise CipDescriptorError.
- direction: BondDirection¶
Stored drawing or directional bond annotation.
- direction_code: int¶
Integer code of the stored bond direction.
- direction_name: str¶
Canonical name of the stored bond direction.
- end: int¶
Zero-based index of the bond’s end atom.
- id: int¶
Zero-based identifier within the originating topology.
- is_aromatic: bool¶
Stored aromaticity flag; reading does not perform aromaticity perception.
- order_code: int¶
Integer code of the stored bond order.
- order_name: str¶
Canonical name of the stored bond order.
- stereo: BondStereo¶
Stored bond stereochemical assignment.
- stereo_atoms: list[int] | None¶
Pair of reference atom indices defining bond stereo, or None when unassigned.
- stereo_code: int¶
Integer code of the stored bond stereo assignment.
- stereo_name: str¶
Canonical name of the stored bond stereo assignment.
- class cosmolkit.BondDirection(value)¶
Typed BondDirection values corresponding to the Rust enum.
Members:
None,BeginWedge,BeginDash,EndDownRight,EndUpRight,EitherDouble,Unknown, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (17)
- BEGINDASH = BondDirection.BeginDash¶
- BEGINWEDGE = BondDirection.BeginWedge¶
- BeginDash = BondDirection.BeginDash¶
- BeginWedge = BondDirection.BeginWedge¶
- EITHERDOUBLE = BondDirection.EitherDouble¶
- ENDDOWNRIGHT = BondDirection.EndDownRight¶
- ENDUPRIGHT = BondDirection.EndUpRight¶
- EitherDouble = BondDirection.EitherDouble¶
- EndDownRight = BondDirection.EndDownRight¶
- EndUpRight = BondDirection.EndUpRight¶
- NONE = BondDirection.None_¶
- None_ = BondDirection.None_¶
- UNKNOWN = BondDirection.Unknown¶
- Unknown = BondDirection.Unknown¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'None_': BondDirection.None_, 'NONE': BondDirection.None_, 'BeginWedge': BondDirection.BeginWedge, 'BEGINWEDGE': BondDirection.BeginWedge, 'BeginDash': BondDirection.BeginDash, 'BEGINDASH': BondDirection.BeginDash, 'EndDownRight': BondDirection.EndDownRight, 'ENDDOWNRIGHT': BondDirection.EndDownRight, 'EndUpRight': BondDirection.EndUpRight, 'ENDUPRIGHT': BondDirection.EndUpRight, 'EitherDouble': BondDirection.EitherDouble, 'EITHERDOUBLE': BondDirection.EitherDouble, 'Unknown': BondDirection.Unknown, 'UNKNOWN': BondDirection.Unknown})¶
- values = mappingproxy({0: BondDirection.None_, 1: BondDirection.BeginWedge, 2: BondDirection.BeginDash, 3: BondDirection.EndDownRight, 4: BondDirection.EndUpRight, 5: BondDirection.EitherDouble, 6: BondDirection.Unknown})¶
- exception cosmolkit.BondDirectionStereoError(*args, **kwargs)¶
Failure in the stereo domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BondDirectionStereoError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property atropisomer: AtropisomerError | None¶
“error_payload”} Structured AtropisomerError payload of BondDirectionStereoError.Atropisomer; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property message: str | None¶
Detailed native diagnostic message. Applies to BondDirectionStereoError.InvalidState. None when this payload is absent.
- property source: StereoGroupError | ValenceError | ConjugationError | HybridizationError | RingFindingError | TopologyValidationError | CoordinateValidationError | BondValueError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of BondDirectionStereoError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: BondDirectionStereoErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BondDirectionStereoErrorKind(value)¶
Discriminants of BondDirectionStereoErrorKind.
Members:
InvalidState,Valence,Atropisomer, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Atropisomer = BondDirectionStereoErrorKind.Atropisomer¶
- InvalidState = BondDirectionStereoErrorKind.InvalidState¶
- Valence = BondDirectionStereoErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidState': BondDirectionStereoErrorKind.InvalidState, 'Valence': BondDirectionStereoErrorKind.Valence, 'Atropisomer': BondDirectionStereoErrorKind.Atropisomer})¶
- values = mappingproxy({0: BondDirectionStereoErrorKind.InvalidState, 1: BondDirectionStereoErrorKind.Valence, 2: BondDirectionStereoErrorKind.Atropisomer})¶
- class cosmolkit.BondEndPointsParseErrorKind(value)¶
Typed BondEndPointsParseErrorKind values corresponding to the Rust enum.
Members:
InvalidArgument,OutOfRange,UnrepresentableEndpoint, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (6)
- InvalidArgument = BondEndPointsParseErrorKind.InvalidArgument¶
- OutOfRange = BondEndPointsParseErrorKind.OutOfRange¶
- UnrepresentableEndpoint = BondEndPointsParseErrorKind.UnrepresentableEndpoint¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidArgument': BondEndPointsParseErrorKind.InvalidArgument, 'OutOfRange': BondEndPointsParseErrorKind.OutOfRange, 'UnrepresentableEndpoint': BondEndPointsParseErrorKind.UnrepresentableEndpoint})¶
- values = mappingproxy({0: BondEndPointsParseErrorKind.InvalidArgument, 1: BondEndPointsParseErrorKind.OutOfRange, 2: BondEndPointsParseErrorKind.UnrepresentableEndpoint})¶
- class cosmolkit.BondOrder(value)¶
Typed BondOrder values corresponding to the Rust enum.
Members:
Unspecified,Single,Double,Triple,Quadruple,Quintuple,Hextuple,OneAndHalf,TwoAndHalf,ThreeAndHalf,FourAndHalf,FiveAndHalf,Aromatic,Ionic,Hydrogen,ThreeCenter,DativeOne,Dative,DativeLeft,DativeRight,Other,Zero, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (47)
- AROMATIC = BondOrder.Aromatic¶
- Aromatic = BondOrder.Aromatic¶
- DATIVE = BondOrder.Dative¶
- DATIVEL = BondOrder.DativeLeft¶
- DATIVEONE = BondOrder.DativeOne¶
- DATIVER = BondOrder.DativeRight¶
- DOUBLE = BondOrder.Double¶
- Dative = BondOrder.Dative¶
- DativeLeft = BondOrder.DativeLeft¶
- DativeOne = BondOrder.DativeOne¶
- DativeRight = BondOrder.DativeRight¶
- Double = BondOrder.Double¶
- FIVEANDAHALF = BondOrder.FiveAndHalf¶
- FOURANDAHALF = BondOrder.FourAndHalf¶
- FiveAndHalf = BondOrder.FiveAndHalf¶
- FourAndHalf = BondOrder.FourAndHalf¶
- HEXTUPLE = BondOrder.Hextuple¶
- HYDROGEN = BondOrder.Hydrogen¶
- Hextuple = BondOrder.Hextuple¶
- Hydrogen = BondOrder.Hydrogen¶
- IONIC = BondOrder.Ionic¶
- Ionic = BondOrder.Ionic¶
- ONEANDAHALF = BondOrder.OneAndHalf¶
- OTHER = BondOrder.Other¶
- OneAndHalf = BondOrder.OneAndHalf¶
- Other = BondOrder.Other¶
- QUADRUPLE = BondOrder.Quadruple¶
- QUINTUPLE = BondOrder.Quintuple¶
- Quadruple = BondOrder.Quadruple¶
- Quintuple = BondOrder.Quintuple¶
- SINGLE = BondOrder.Single¶
- Single = BondOrder.Single¶
- THREEANDAHALF = BondOrder.ThreeAndHalf¶
- THREECENTER = BondOrder.ThreeCenter¶
- TRIPLE = BondOrder.Triple¶
- TWOANDAHALF = BondOrder.TwoAndHalf¶
- ThreeAndHalf = BondOrder.ThreeAndHalf¶
- ThreeCenter = BondOrder.ThreeCenter¶
- Triple = BondOrder.Triple¶
- TwoAndHalf = BondOrder.TwoAndHalf¶
- UNSPECIFIED = BondOrder.Unspecified¶
- Unspecified = BondOrder.Unspecified¶
- ZERO = BondOrder.Zero¶
- Zero = BondOrder.Zero¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Unspecified': BondOrder.Unspecified, 'UNSPECIFIED': BondOrder.Unspecified, 'Single': BondOrder.Single, 'SINGLE': BondOrder.Single, 'Double': BondOrder.Double, 'DOUBLE': BondOrder.Double, 'Triple': BondOrder.Triple, 'TRIPLE': BondOrder.Triple, 'Quadruple': BondOrder.Quadruple, 'QUADRUPLE': BondOrder.Quadruple, 'Quintuple': BondOrder.Quintuple, 'QUINTUPLE': BondOrder.Quintuple, 'Hextuple': BondOrder.Hextuple, 'HEXTUPLE': BondOrder.Hextuple, 'OneAndHalf': BondOrder.OneAndHalf, 'ONEANDAHALF': BondOrder.OneAndHalf, 'TwoAndHalf': BondOrder.TwoAndHalf, 'TWOANDAHALF': BondOrder.TwoAndHalf, 'ThreeAndHalf': BondOrder.ThreeAndHalf, 'THREEANDAHALF': BondOrder.ThreeAndHalf, 'FourAndHalf': BondOrder.FourAndHalf, 'FOURANDAHALF': BondOrder.FourAndHalf, 'FiveAndHalf': BondOrder.FiveAndHalf, 'FIVEANDAHALF': BondOrder.FiveAndHalf, 'Aromatic': BondOrder.Aromatic, 'AROMATIC': BondOrder.Aromatic, 'Ionic': BondOrder.Ionic, 'IONIC': BondOrder.Ionic, 'Hydrogen': BondOrder.Hydrogen, 'HYDROGEN': BondOrder.Hydrogen, 'ThreeCenter': BondOrder.ThreeCenter, 'THREECENTER': BondOrder.ThreeCenter, 'DativeOne': BondOrder.DativeOne, 'DATIVEONE': BondOrder.DativeOne, 'Dative': BondOrder.Dative, 'DATIVE': BondOrder.Dative, 'DativeLeft': BondOrder.DativeLeft, 'DATIVEL': BondOrder.DativeLeft, 'DativeRight': BondOrder.DativeRight, 'DATIVER': BondOrder.DativeRight, 'Other': BondOrder.Other, 'OTHER': BondOrder.Other, 'Zero': BondOrder.Zero, 'ZERO': BondOrder.Zero})¶
- values = mappingproxy({0: BondOrder.Unspecified, 1: BondOrder.Single, 2: BondOrder.Double, 3: BondOrder.Triple, 4: BondOrder.Quadruple, 5: BondOrder.Quintuple, 6: BondOrder.Hextuple, 7: BondOrder.OneAndHalf, 8: BondOrder.TwoAndHalf, 9: BondOrder.ThreeAndHalf, 10: BondOrder.FourAndHalf, 11: BondOrder.FiveAndHalf, 12: BondOrder.Aromatic, 13: BondOrder.Ionic, 14: BondOrder.Hydrogen, 15: BondOrder.ThreeCenter, 16: BondOrder.DativeOne, 17: BondOrder.Dative, 18: BondOrder.DativeLeft, 19: BondOrder.DativeRight, 20: BondOrder.Other, 21: BondOrder.Zero})¶
- class cosmolkit.BondQueryPredicate¶
Read-only native bond predicate retained by a SMARTS writer diagnostic; variant determines its payload.
Members (3)
- name: str | None¶
Property name in a PropertyValue predicate, or None for other variants.
- value: BondOrder | list[BondOrder] | bool | BondDirection | BondStereo | int | str | None¶
Typed payload of the selected predicate or one-sided bound; None for payload-free or differently structured variants.
- variant: BondQueryPredicateKind¶
Exact native predicate or bound variant; payload availability follows this variant.
- class cosmolkit.BondQueryPredicateKind(value)¶
Discriminants of BondQueryPredicateKind.
Members:
Any,Order,OrderIn,IsAromatic,IsInRing,Direction,Stereo,HasStereo,IsConjugated,NumRingBonds,InRingOfSize,MinRingSize,NumRingBondsGreaterEqual,NumRingBondsLessEqual,MolFileQueryCode,HasProperty,PropertyValue,UnsupportedFeature, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (21)
- Any = BondQueryPredicateKind.Any¶
- Direction = BondQueryPredicateKind.Direction¶
- HasProperty = BondQueryPredicateKind.HasProperty¶
- HasStereo = BondQueryPredicateKind.HasStereo¶
- InRingOfSize = BondQueryPredicateKind.InRingOfSize¶
- IsAromatic = BondQueryPredicateKind.IsAromatic¶
- IsConjugated = BondQueryPredicateKind.IsConjugated¶
- IsInRing = BondQueryPredicateKind.IsInRing¶
- MinRingSize = BondQueryPredicateKind.MinRingSize¶
- MolFileQueryCode = BondQueryPredicateKind.MolFileQueryCode¶
- NumRingBonds = BondQueryPredicateKind.NumRingBonds¶
- NumRingBondsGreaterEqual = BondQueryPredicateKind.NumRingBondsGreaterEqual¶
- NumRingBondsLessEqual = BondQueryPredicateKind.NumRingBondsLessEqual¶
- Order = BondQueryPredicateKind.Order¶
- OrderIn = BondQueryPredicateKind.OrderIn¶
- PropertyValue = BondQueryPredicateKind.PropertyValue¶
- Stereo = BondQueryPredicateKind.Stereo¶
- UnsupportedFeature = BondQueryPredicateKind.UnsupportedFeature¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Any': BondQueryPredicateKind.Any, 'Order': BondQueryPredicateKind.Order, 'OrderIn': BondQueryPredicateKind.OrderIn, 'IsAromatic': BondQueryPredicateKind.IsAromatic, 'IsInRing': BondQueryPredicateKind.IsInRing, 'Direction': BondQueryPredicateKind.Direction, 'Stereo': BondQueryPredicateKind.Stereo, 'HasStereo': BondQueryPredicateKind.HasStereo, 'IsConjugated': BondQueryPredicateKind.IsConjugated, 'NumRingBonds': BondQueryPredicateKind.NumRingBonds, 'InRingOfSize': BondQueryPredicateKind.InRingOfSize, 'MinRingSize': BondQueryPredicateKind.MinRingSize, 'NumRingBondsGreaterEqual': BondQueryPredicateKind.NumRingBondsGreaterEqual, 'NumRingBondsLessEqual': BondQueryPredicateKind.NumRingBondsLessEqual, 'MolFileQueryCode': BondQueryPredicateKind.MolFileQueryCode, 'HasProperty': BondQueryPredicateKind.HasProperty, 'PropertyValue': BondQueryPredicateKind.PropertyValue, 'UnsupportedFeature': BondQueryPredicateKind.UnsupportedFeature})¶
- values = mappingproxy({0: BondQueryPredicateKind.Any, 1: BondQueryPredicateKind.Order, 2: BondQueryPredicateKind.OrderIn, 3: BondQueryPredicateKind.IsAromatic, 4: BondQueryPredicateKind.IsInRing, 5: BondQueryPredicateKind.Direction, 6: BondQueryPredicateKind.Stereo, 7: BondQueryPredicateKind.HasStereo, 8: BondQueryPredicateKind.IsConjugated, 9: BondQueryPredicateKind.NumRingBonds, 10: BondQueryPredicateKind.InRingOfSize, 11: BondQueryPredicateKind.MinRingSize, 12: BondQueryPredicateKind.NumRingBondsGreaterEqual, 13: BondQueryPredicateKind.NumRingBondsLessEqual, 14: BondQueryPredicateKind.MolFileQueryCode, 15: BondQueryPredicateKind.HasProperty, 16: BondQueryPredicateKind.PropertyValue, 17: BondQueryPredicateKind.UnsupportedFeature})¶
- class cosmolkit.BondSpec(begin, end, order)¶
Detached bond-construction inputs: zero-based endpoint atom identifiers and bond order.
- class cosmolkit.BondStereo(value)¶
Typed BondStereo values corresponding to the Rust enum.
Members:
None,Any,Z,E,Cis,Trans,AtropCw,AtropCcw, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (19)
- Any = BondStereo.Any¶
- AtropCcw = BondStereo.AtropCcw¶
- AtropCw = BondStereo.AtropCw¶
- Cis = BondStereo.Cis¶
- E = BondStereo.E¶
- None_ = BondStereo.None_¶
- STEREOANY = BondStereo.Any¶
- STEREOATROPCCW = BondStereo.AtropCcw¶
- STEREOATROPCW = BondStereo.AtropCw¶
- STEREOCIS = BondStereo.Cis¶
- STEREOE = BondStereo.E¶
- STEREONONE = BondStereo.None_¶
- STEREOTRANS = BondStereo.Trans¶
- STEREOZ = BondStereo.Z¶
- Trans = BondStereo.Trans¶
- Z = BondStereo.Z¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'None_': BondStereo.None_, 'STEREONONE': BondStereo.None_, 'Any': BondStereo.Any, 'STEREOANY': BondStereo.Any, 'Z': BondStereo.Z, 'STEREOZ': BondStereo.Z, 'E': BondStereo.E, 'STEREOE': BondStereo.E, 'Cis': BondStereo.Cis, 'STEREOCIS': BondStereo.Cis, 'Trans': BondStereo.Trans, 'STEREOTRANS': BondStereo.Trans, 'AtropCw': BondStereo.AtropCw, 'STEREOATROPCW': BondStereo.AtropCw, 'AtropCcw': BondStereo.AtropCcw, 'STEREOATROPCCW': BondStereo.AtropCcw})¶
- values = mappingproxy({0: BondStereo.None_, 1: BondStereo.Any, 2: BondStereo.Z, 3: BondStereo.E, 4: BondStereo.Cis, 5: BondStereo.Trans, 6: BondStereo.AtropCw, 7: BondStereo.AtropCcw})¶
- exception cosmolkit.BondValueError(*args, **kwargs)¶
Failure in the model domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BondValueError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property computed_list_kind: PropertyValueError | None¶
“error_payload”} Structured PropertyValueError payload of BondValueError.ComputedListKind; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BondValueErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BondValueErrorKind(value)¶
Discriminants of BondValueErrorKind.
Members:
StereoAtomsRequired,EmptyPropertyKey,ComputedListKind, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- ComputedListKind = BondValueErrorKind.ComputedListKind¶
- EmptyPropertyKey = BondValueErrorKind.EmptyPropertyKey¶
- StereoAtomsRequired = BondValueErrorKind.StereoAtomsRequired¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoAtomsRequired': BondValueErrorKind.StereoAtomsRequired, 'EmptyPropertyKey': BondValueErrorKind.EmptyPropertyKey, 'ComputedListKind': BondValueErrorKind.ComputedListKind})¶
- values = mappingproxy({0: BondValueErrorKind.StereoAtomsRequired, 1: BondValueErrorKind.EmptyPropertyKey, 2: BondValueErrorKind.ComputedListKind})¶
- class cosmolkit.BoundKind(value)¶
Typed BoundKind values corresponding to the Rust enum.
Members:
Upper,Lower, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.
- exception cosmolkit.BoundsMatrixError(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BoundsMatrixError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (12)
- property actual: int | None¶
Readonly actual payload of the DataLengthTooShort error variant; None for other variants.
- property axis: MatrixAxis | None¶
“error_payload”} Coordinate axis involved in the failure. Applies to BoundsMatrixError.IndexOutOfBounds. None when this payload is absent.
- Type:
{“role”
- property column: int | None¶
Readonly column payload of the InvalidBound error variant; None for other variants.
- property dimension: int | None¶
Coordinate or matrix dimension involved in the failure. Applies to BoundsMatrixError.DimensionOverflow, BoundsMatrixError.IndexOutOfBounds. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property elements: int | None¶
Readonly elements payload of the AllocationFailed error variant; None for other variants.
- property expected: int | None¶
Readonly expected payload of the DataLengthTooShort error variant; None for other variants.
- property index: int | None¶
Readonly index payload of the IndexOutOfBounds error variant; None for other variants.
- property kind: BoundKind | None¶
“error_payload”} Native failure-specific category or value kind. Applies to BoundsMatrixError.InvalidBound. None when this payload is absent.
- Type:
{“role”
- property row: int | None¶
Readonly row payload of the InvalidBound error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: BoundsMatrixErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BoundsMatrixErrorKind(value)¶
Discriminants of BoundsMatrixErrorKind.
Members:
DimensionOverflow,AllocationFailed,DataLengthTooShort,IndexOutOfBounds,InvalidBound, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- AllocationFailed = BoundsMatrixErrorKind.AllocationFailed¶
- DataLengthTooShort = BoundsMatrixErrorKind.DataLengthTooShort¶
- DimensionOverflow = BoundsMatrixErrorKind.DimensionOverflow¶
- IndexOutOfBounds = BoundsMatrixErrorKind.IndexOutOfBounds¶
- InvalidBound = BoundsMatrixErrorKind.InvalidBound¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'DimensionOverflow': BoundsMatrixErrorKind.DimensionOverflow, 'AllocationFailed': BoundsMatrixErrorKind.AllocationFailed, 'DataLengthTooShort': BoundsMatrixErrorKind.DataLengthTooShort, 'IndexOutOfBounds': BoundsMatrixErrorKind.IndexOutOfBounds, 'InvalidBound': BoundsMatrixErrorKind.InvalidBound})¶
- values = mappingproxy({0: BoundsMatrixErrorKind.DimensionOverflow, 1: BoundsMatrixErrorKind.AllocationFailed, 2: BoundsMatrixErrorKind.DataLengthTooShort, 3: BoundsMatrixErrorKind.IndexOutOfBounds, 4: BoundsMatrixErrorKind.InvalidBound})¶
- exception cosmolkit.BoundsQueryError(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
BoundsQueryError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (10)
- property bounds: GraphBoundsError | None¶
“error_payload”} Structured GraphBoundsError payload of BoundsQueryError.Bounds; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property conjugation: ConjugationError | None¶
“error_payload”} Structured native error payload. Present for BoundsQueryError.Conjugation; None when unavailable.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property hybridization: HybridizationError | None¶
“error_payload”} Structured native error payload. Present for BoundsQueryError.Hybridization; None when unavailable.
- Type:
{“role”
- property rings: RingFindingError | None¶
“error_payload”} Structured native error payload. Present for BoundsQueryError.Rings; None when unavailable.
- Type:
{“role”
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | BoundsMatrixError | UffBoundsError | MatrixError | ValenceError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured native error payload. Present for BoundsQueryError.Topology; None when unavailable.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of BoundsQueryError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: BoundsQueryErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.BoundsQueryErrorKind(value)¶
Discriminants of BoundsQueryErrorKind.
Members:
Topology,Valence,Rings,Conjugation,Hybridization,Bounds, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (9)
- Bounds = BoundsQueryErrorKind.Bounds¶
- Conjugation = BoundsQueryErrorKind.Conjugation¶
- Hybridization = BoundsQueryErrorKind.Hybridization¶
- Rings = BoundsQueryErrorKind.Rings¶
- Topology = BoundsQueryErrorKind.Topology¶
- Valence = BoundsQueryErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Topology': BoundsQueryErrorKind.Topology, 'Valence': BoundsQueryErrorKind.Valence, 'Rings': BoundsQueryErrorKind.Rings, 'Conjugation': BoundsQueryErrorKind.Conjugation, 'Hybridization': BoundsQueryErrorKind.Hybridization, 'Bounds': BoundsQueryErrorKind.Bounds})¶
- values = mappingproxy({0: BoundsQueryErrorKind.Topology, 1: BoundsQueryErrorKind.Valence, 2: BoundsQueryErrorKind.Rings, 3: BoundsQueryErrorKind.Conjugation, 4: BoundsQueryErrorKind.Hybridization, 5: BoundsQueryErrorKind.Bounds})¶
- exception cosmolkit.CanonicalRankError(*args, **kwargs)¶
Failure in the canonical_rank domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CanonicalRankError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (22)
- property actual: int | None¶
Observed value reported by the native check. Applies to CanonicalRankError.AtomMaskLength, CanonicalRankError.BondMaskLength, CanonicalRankError.AtomSymbolLength, CanonicalRankError.BondSymbolLength. None when this payload is absent.
- property actual_atoms: int | None¶
Readonly actual_atoms payload of the PreparedRingLength error variant; None for other variants.
- property actual_bonds: int | None¶
Readonly actual_bonds payload of the PreparedRingLength error variant; None for other variants.
- property atom_count: int | None¶
Atom count used when validating the reported atom reference. Applies to CanonicalRankError.ComponentAtomOutOfRange, CanonicalRankError.PreparedValenceLength. None when this payload is absent.
- property atom_index: int | None¶
Atom index involved in the native failure. Applies to CanonicalRankError.UnsignedRankOverflow, CanonicalRankError.InvalidPropertyKind, CanonicalRankError.ComponentAtomOutOfRange, CanonicalRankError.DuplicateComponentAtom, CanonicalRankError.PreparedValenceInvalid. None when this payload is absent.
- property branch: str | None¶
Readonly branch payload of the ProtocolDebt error variant; None for other variants.
- property carrier: int | None¶
Readonly carrier payload of the TemplateAttachmentRemap error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Required value reported by the native check. Applies to CanonicalRankError.AtomMaskLength, CanonicalRankError.BondMaskLength, CanonicalRankError.AtomSymbolLength, CanonicalRankError.BondSymbolLength. None when this payload is absent.
- property expected_atoms: int | None¶
Readonly expected_atoms payload of the PreparedRingLength error variant; None for other variants.
- property expected_bonds: int | None¶
Readonly expected_bonds payload of the PreparedRingLength error variant; None for other variants.
- property explicit_len: int | None¶
Readonly explicit_len payload of the PreparedValenceLength error variant; None for other variants.
- property implicit_len: int | None¶
Readonly implicit_len payload of the PreparedValenceLength error variant; None for other variants.
- property kind: PropertyValueKind | None¶
“error_payload”} Native failure-specific category or value kind. Applies to CanonicalRankError.InvalidPropertyKind. None when this payload is absent.
- Type:
{“role”
- property property: str | None¶
Property name involved in the failure. Applies to CanonicalRankError.UnsignedRankOverflow, CanonicalRankError.InvalidPropertyKind. None when this payload is absent.
- property reason: str | None¶
Readonly reason payload of the ProtocolDebt error variant; None for other variants.
- property rings: RingFindingError | None¶
“error_payload”} Structured RingFindingError payload of CanonicalRankError.RingFinding; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: StereoGroupError | TemplateAttachmentOrderError | MoleculePropertyError | TopologyValidationError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of CanonicalRankError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property value: int | None¶
Readonly value payload of the UnsignedRankOverflow error variant; None for other variants.
- property variant: CanonicalRankErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CanonicalRankErrorKind(value)¶
Discriminants of CanonicalRankErrorKind.
Members:
HanoiScratchTooSmall,StereoGroup,UnsignedRankOverflow,InvalidPropertyKind,ComponentAtomOutOfRange,DuplicateComponentAtom,AtomMaskLength,BondMaskLength,AtomSymbolLength,BondSymbolLength,PreparedValenceLength,PreparedValenceInvalid,PreparedRingLength,ProtocolDebt,TemplateAttachmentRemap,RingFinding,Valence, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (20)
- AtomMaskLength = CanonicalRankErrorKind.AtomMaskLength¶
- AtomSymbolLength = CanonicalRankErrorKind.AtomSymbolLength¶
- BondMaskLength = CanonicalRankErrorKind.BondMaskLength¶
- BondSymbolLength = CanonicalRankErrorKind.BondSymbolLength¶
- ComponentAtomOutOfRange = CanonicalRankErrorKind.ComponentAtomOutOfRange¶
- DuplicateComponentAtom = CanonicalRankErrorKind.DuplicateComponentAtom¶
- HanoiScratchTooSmall = CanonicalRankErrorKind.HanoiScratchTooSmall¶
- InvalidPropertyKind = CanonicalRankErrorKind.InvalidPropertyKind¶
- PreparedRingLength = CanonicalRankErrorKind.PreparedRingLength¶
- PreparedValenceInvalid = CanonicalRankErrorKind.PreparedValenceInvalid¶
- PreparedValenceLength = CanonicalRankErrorKind.PreparedValenceLength¶
- ProtocolDebt = CanonicalRankErrorKind.ProtocolDebt¶
- RingFinding = CanonicalRankErrorKind.RingFinding¶
- StereoGroup = CanonicalRankErrorKind.StereoGroup¶
- TemplateAttachmentRemap = CanonicalRankErrorKind.TemplateAttachmentRemap¶
- UnsignedRankOverflow = CanonicalRankErrorKind.UnsignedRankOverflow¶
- Valence = CanonicalRankErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'HanoiScratchTooSmall': CanonicalRankErrorKind.HanoiScratchTooSmall, 'StereoGroup': CanonicalRankErrorKind.StereoGroup, 'UnsignedRankOverflow': CanonicalRankErrorKind.UnsignedRankOverflow, 'InvalidPropertyKind': CanonicalRankErrorKind.InvalidPropertyKind, 'ComponentAtomOutOfRange': CanonicalRankErrorKind.ComponentAtomOutOfRange, 'DuplicateComponentAtom': CanonicalRankErrorKind.DuplicateComponentAtom, 'AtomMaskLength': CanonicalRankErrorKind.AtomMaskLength, 'BondMaskLength': CanonicalRankErrorKind.BondMaskLength, 'AtomSymbolLength': CanonicalRankErrorKind.AtomSymbolLength, 'BondSymbolLength': CanonicalRankErrorKind.BondSymbolLength, 'PreparedValenceLength': CanonicalRankErrorKind.PreparedValenceLength, 'PreparedValenceInvalid': CanonicalRankErrorKind.PreparedValenceInvalid, 'PreparedRingLength': CanonicalRankErrorKind.PreparedRingLength, 'ProtocolDebt': CanonicalRankErrorKind.ProtocolDebt, 'TemplateAttachmentRemap': CanonicalRankErrorKind.TemplateAttachmentRemap, 'RingFinding': CanonicalRankErrorKind.RingFinding, 'Valence': CanonicalRankErrorKind.Valence})¶
- values = mappingproxy({0: CanonicalRankErrorKind.HanoiScratchTooSmall, 1: CanonicalRankErrorKind.StereoGroup, 2: CanonicalRankErrorKind.UnsignedRankOverflow, 3: CanonicalRankErrorKind.InvalidPropertyKind, 4: CanonicalRankErrorKind.ComponentAtomOutOfRange, 5: CanonicalRankErrorKind.DuplicateComponentAtom, 6: CanonicalRankErrorKind.AtomMaskLength, 7: CanonicalRankErrorKind.BondMaskLength, 8: CanonicalRankErrorKind.AtomSymbolLength, 9: CanonicalRankErrorKind.BondSymbolLength, 10: CanonicalRankErrorKind.PreparedValenceLength, 11: CanonicalRankErrorKind.PreparedValenceInvalid, 12: CanonicalRankErrorKind.PreparedRingLength, 13: CanonicalRankErrorKind.ProtocolDebt, 14: CanonicalRankErrorKind.TemplateAttachmentRemap, 15: CanonicalRankErrorKind.RingFinding, 16: CanonicalRankErrorKind.Valence})¶
- class cosmolkit.ChainKind(value)¶
Typed ChainKind values corresponding to the Rust enum.
Members:
Protein,Dna,Rna,ProteinDnaComplex,ProteinRnaComplex,LigandOnly,WaterOnly,Mixed,Unknown, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (12)
- Dna = ChainKind.Dna¶
- LigandOnly = ChainKind.LigandOnly¶
- Mixed = ChainKind.Mixed¶
- Protein = ChainKind.Protein¶
- ProteinDnaComplex = ChainKind.ProteinDnaComplex¶
- ProteinRnaComplex = ChainKind.ProteinRnaComplex¶
- Rna = ChainKind.Rna¶
- Unknown = ChainKind.Unknown¶
- WaterOnly = ChainKind.WaterOnly¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Protein': ChainKind.Protein, 'Dna': ChainKind.Dna, 'Rna': ChainKind.Rna, 'ProteinDnaComplex': ChainKind.ProteinDnaComplex, 'ProteinRnaComplex': ChainKind.ProteinRnaComplex, 'LigandOnly': ChainKind.LigandOnly, 'WaterOnly': ChainKind.WaterOnly, 'Mixed': ChainKind.Mixed, 'Unknown': ChainKind.Unknown})¶
- values = mappingproxy({0: ChainKind.Protein, 1: ChainKind.Dna, 2: ChainKind.Rna, 3: ChainKind.ProteinDnaComplex, 4: ChainKind.ProteinRnaComplex, 5: ChainKind.LigandOnly, 6: ChainKind.WaterOnly, 7: ChainKind.Mixed, 8: ChainKind.Unknown})¶
- class cosmolkit.ChainSourceIds(auth_chain_id, label_asym_id)¶
Author and label chain identifiers retained from structural coordinate files.
- exception cosmolkit.ChemCompAtomError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
ChemCompAtomError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property column: int | None¶
Readonly column payload of the MissingValue error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property row: int | None¶
Row reported by the native failure. Applies to ChemCompAtomError.MissingValue, ChemCompAtomError.NameOutsideCanonicalBoundary, ChemCompAtomError.ChargeOutsideSourceDefinedRange. None when this payload is absent.
- property source: CifReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to ChemCompAtomError.NameOutsideCanonicalBoundary, ChemCompAtomError.ChargeOutsideSourceDefinedRange. None when this payload is absent.
- property variant: ChemCompAtomErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.ChemCompAtomErrorKind(value)¶
Discriminants of ChemCompAtomErrorKind.
Members:
MissingValue,NameOutsideCanonicalBoundary,ChargeOutsideSourceDefinedRange,Number, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (7)
- ChargeOutsideSourceDefinedRange = ChemCompAtomErrorKind.ChargeOutsideSourceDefinedRange¶
- MissingValue = ChemCompAtomErrorKind.MissingValue¶
- NameOutsideCanonicalBoundary = ChemCompAtomErrorKind.NameOutsideCanonicalBoundary¶
- Number = ChemCompAtomErrorKind.Number¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingValue': ChemCompAtomErrorKind.MissingValue, 'NameOutsideCanonicalBoundary': ChemCompAtomErrorKind.NameOutsideCanonicalBoundary, 'ChargeOutsideSourceDefinedRange': ChemCompAtomErrorKind.ChargeOutsideSourceDefinedRange, 'Number': ChemCompAtomErrorKind.Number})¶
- values = mappingproxy({0: ChemCompAtomErrorKind.MissingValue, 1: ChemCompAtomErrorKind.NameOutsideCanonicalBoundary, 2: ChemCompAtomErrorKind.ChargeOutsideSourceDefinedRange, 3: ChemCompAtomErrorKind.Number})¶
- exception cosmolkit.ChemCompModelError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
ChemCompModelError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: CifReadError | ChemCompAtomError | BioStructureError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to ChemCompModelError.ResidueName. None when this payload is absent.
- property variant: ChemCompModelErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.ChemCompModelErrorKind(value)¶
Discriminants of ChemCompModelErrorKind.
Members:
NotChemComp,Table,Atom,Hierarchy,ResidueName, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- Atom = ChemCompModelErrorKind.Atom¶
- Hierarchy = ChemCompModelErrorKind.Hierarchy¶
- NotChemComp = ChemCompModelErrorKind.NotChemComp¶
- ResidueName = ChemCompModelErrorKind.ResidueName¶
- Table = ChemCompModelErrorKind.Table¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'NotChemComp': ChemCompModelErrorKind.NotChemComp, 'Table': ChemCompModelErrorKind.Table, 'Atom': ChemCompModelErrorKind.Atom, 'Hierarchy': ChemCompModelErrorKind.Hierarchy, 'ResidueName': ChemCompModelErrorKind.ResidueName})¶
- values = mappingproxy({0: ChemCompModelErrorKind.NotChemComp, 1: ChemCompModelErrorKind.Table, 2: ChemCompModelErrorKind.Atom, 3: ChemCompModelErrorKind.Hierarchy, 4: ChemCompModelErrorKind.ResidueName})¶
- class cosmolkit.ChemistryProblem(operation, error)¶
One sanitization-stage diagnostic with its concrete native error.
Members (2)
- error: ChemistryProblemError¶
Concrete structured error associated with this chemistry problem.
- operation: SanitizeStage¶
Sanitization stage that reported this chemistry problem.
- exception cosmolkit.ChemistryProblemError(*args, **kwargs)¶
Failure in the sanitize domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
ChemistryProblemError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property kekulize: KekulizeError | None¶
“error_payload”} Structured KekulizeError payload of ChemistryProblemError.Kekulize; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of ChemistryProblemError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: ChemistryProblemErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.ChemistryProblemErrorKind(value)¶
Discriminants of ChemistryProblemErrorKind.
Members:
Valence,Kekulize, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Kekulize = ChemistryProblemErrorKind.Kekulize¶
- Valence = ChemistryProblemErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Valence': ChemistryProblemErrorKind.Valence, 'Kekulize': ChemistryProblemErrorKind.Kekulize})¶
- values = mappingproxy({0: ChemistryProblemErrorKind.Valence, 1: ChemistryProblemErrorKind.Kekulize})¶
- class cosmolkit.ChemistryProblemReport(problems=None)¶
Ordered chemistry problems reported by the non-throwing native detector.
Members (1)
- problems: list[ChemistryProblem]¶
Independent list of chemistry problems in native detection order.
- class cosmolkit.ChiralTag(value)¶
Typed ChiralTag values corresponding to the Rust enum.
Members:
Unspecified,TetrahedralCw,TetrahedralCcw,Other,Tetrahedral,Allene,SquarePlanar,TrigonalBipyramidal,Octahedral, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (21)
- Allene = ChiralTag.Allene¶
- CHI_ALLENE = ChiralTag.Allene¶
- CHI_OCTAHEDRAL = ChiralTag.Octahedral¶
- CHI_OTHER = ChiralTag.Other¶
- CHI_SQUAREPLANAR = ChiralTag.SquarePlanar¶
- CHI_TETRAHEDRAL = ChiralTag.Tetrahedral¶
- CHI_TETRAHEDRAL_CCW = ChiralTag.TetrahedralCcw¶
- CHI_TETRAHEDRAL_CW = ChiralTag.TetrahedralCw¶
- CHI_TRIGONALBIPYRAMIDAL = ChiralTag.TrigonalBipyramidal¶
- CHI_UNSPECIFIED = ChiralTag.Unspecified¶
- Octahedral = ChiralTag.Octahedral¶
- Other = ChiralTag.Other¶
- SquarePlanar = ChiralTag.SquarePlanar¶
- Tetrahedral = ChiralTag.Tetrahedral¶
- TetrahedralCcw = ChiralTag.TetrahedralCcw¶
- TetrahedralCw = ChiralTag.TetrahedralCw¶
- TrigonalBipyramidal = ChiralTag.TrigonalBipyramidal¶
- Unspecified = ChiralTag.Unspecified¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Unspecified': ChiralTag.Unspecified, 'CHI_UNSPECIFIED': ChiralTag.Unspecified, 'TetrahedralCw': ChiralTag.TetrahedralCw, 'CHI_TETRAHEDRAL_CW': ChiralTag.TetrahedralCw, 'TetrahedralCcw': ChiralTag.TetrahedralCcw, 'CHI_TETRAHEDRAL_CCW': ChiralTag.TetrahedralCcw, 'Other': ChiralTag.Other, 'CHI_OTHER': ChiralTag.Other, 'Tetrahedral': ChiralTag.Tetrahedral, 'CHI_TETRAHEDRAL': ChiralTag.Tetrahedral, 'Allene': ChiralTag.Allene, 'CHI_ALLENE': ChiralTag.Allene, 'SquarePlanar': ChiralTag.SquarePlanar, 'CHI_SQUAREPLANAR': ChiralTag.SquarePlanar, 'TrigonalBipyramidal': ChiralTag.TrigonalBipyramidal, 'CHI_TRIGONALBIPYRAMIDAL': ChiralTag.TrigonalBipyramidal, 'Octahedral': ChiralTag.Octahedral, 'CHI_OCTAHEDRAL': ChiralTag.Octahedral})¶
- values = mappingproxy({0: ChiralTag.Unspecified, 1: ChiralTag.TetrahedralCw, 2: ChiralTag.TetrahedralCcw, 3: ChiralTag.Other, 4: ChiralTag.Tetrahedral, 5: ChiralTag.Allene, 6: ChiralTag.SquarePlanar, 7: ChiralTag.TrigonalBipyramidal, 8: ChiralTag.Octahedral})¶
- exception cosmolkit.CifReadError(*args, **kwargs)¶
CifReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property column: int¶
Column reported by the CIF parser.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property kind: CifReadErrorKind¶
“error_payload”} Native CIF parsing error category.
- Type:
{“role”
- property line: int¶
Line reported by the CIF parser.
- property message: str¶
Original CIF parser explanation.
- property source: str¶
Source name associated with the CIF input, not an exception cause.
- class cosmolkit.CifReadErrorKind(value)¶
Typed CifReadErrorKind values corresponding to the Rust enum.
Members:
Syntax,MissingValue,DuplicateName,InvalidLoop,InvalidValue,OutOfRange, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (9)
- DuplicateName = CifReadErrorKind.DuplicateName¶
- InvalidLoop = CifReadErrorKind.InvalidLoop¶
- InvalidValue = CifReadErrorKind.InvalidValue¶
- MissingValue = CifReadErrorKind.MissingValue¶
- OutOfRange = CifReadErrorKind.OutOfRange¶
- Syntax = CifReadErrorKind.Syntax¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Syntax': CifReadErrorKind.Syntax, 'MissingValue': CifReadErrorKind.MissingValue, 'DuplicateName': CifReadErrorKind.DuplicateName, 'InvalidLoop': CifReadErrorKind.InvalidLoop, 'InvalidValue': CifReadErrorKind.InvalidValue, 'OutOfRange': CifReadErrorKind.OutOfRange})¶
- values = mappingproxy({0: CifReadErrorKind.Syntax, 1: CifReadErrorKind.MissingValue, 2: CifReadErrorKind.DuplicateName, 3: CifReadErrorKind.InvalidLoop, 4: CifReadErrorKind.InvalidValue, 5: CifReadErrorKind.OutOfRange})¶
- class cosmolkit.CipDescriptor(value)¶
Typed CipDescriptor values corresponding to the Rust enum.
Members:
R,S,LowerR,LowerS,E,Z,LowerE,LowerZ,M,P,LowerM,LowerP, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (22)
- E = CipDescriptor.E¶
- LowerE = CipDescriptor.LowerE¶
- LowerM = CipDescriptor.LowerM¶
- LowerP = CipDescriptor.LowerP¶
- LowerR = CipDescriptor.LowerR¶
- LowerS = CipDescriptor.LowerS¶
- LowerZ = CipDescriptor.LowerZ¶
- M = CipDescriptor.M¶
- P = CipDescriptor.P¶
- R = CipDescriptor.R¶
- S = CipDescriptor.S¶
- Z = CipDescriptor.Z¶
- as_str() str¶
Canonical textual CIP descriptor, retaining case distinctions such as R versus r.
- e = CipDescriptor.LowerE¶
- m = CipDescriptor.LowerM¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'R': CipDescriptor.R, 'S': CipDescriptor.S, 'LowerR': CipDescriptor.LowerR, 'r': CipDescriptor.LowerR, 'LowerS': CipDescriptor.LowerS, 's': CipDescriptor.LowerS, 'E': CipDescriptor.E, 'Z': CipDescriptor.Z, 'LowerE': CipDescriptor.LowerE, 'e': CipDescriptor.LowerE, 'LowerZ': CipDescriptor.LowerZ, 'z': CipDescriptor.LowerZ, 'M': CipDescriptor.M, 'P': CipDescriptor.P, 'LowerM': CipDescriptor.LowerM, 'm': CipDescriptor.LowerM, 'LowerP': CipDescriptor.LowerP, 'p': CipDescriptor.LowerP})¶
- p = CipDescriptor.LowerP¶
- r = CipDescriptor.LowerR¶
- s = CipDescriptor.LowerS¶
- values = mappingproxy({0: CipDescriptor.R, 1: CipDescriptor.S, 2: CipDescriptor.LowerR, 3: CipDescriptor.LowerS, 4: CipDescriptor.E, 5: CipDescriptor.Z, 6: CipDescriptor.LowerE, 7: CipDescriptor.LowerZ, 8: CipDescriptor.M, 9: CipDescriptor.P, 10: CipDescriptor.LowerM, 11: CipDescriptor.LowerP})¶
- z = CipDescriptor.LowerZ¶
- exception cosmolkit.CipDescriptorError(*args, **kwargs)¶
CipDescriptorError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property detail: str | None¶
Explanation of an invalid neighbor-order encoding, or None for other variants.
- property domain: str¶
Error domain for CIP descriptor and neighbor-order access.
- property property_error: PropertyValueError | None¶
“error_payload”} Underlying property-type failure payload, or None. This payload does not invent an additional exception cause.
- Type:
{“role”
- property value: str | None¶
Stored text that failed descriptor or neighbor-order parsing, or None for a property-type error.
- property variant: CipDescriptorErrorKind¶
Native CIP error category determining which payload fields are present.
- class cosmolkit.CipDescriptorErrorKind(value)¶
Discriminants of CipDescriptorErrorKind.
Members:
InvalidNeighborOrder,Property,InvalidStoredDescriptor, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- InvalidNeighborOrder = CipDescriptorErrorKind.InvalidNeighborOrder¶
- InvalidStoredDescriptor = CipDescriptorErrorKind.InvalidStoredDescriptor¶
- Property = CipDescriptorErrorKind.Property¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidNeighborOrder': CipDescriptorErrorKind.InvalidNeighborOrder, 'Property': CipDescriptorErrorKind.Property, 'InvalidStoredDescriptor': CipDescriptorErrorKind.InvalidStoredDescriptor})¶
- values = mappingproxy({0: CipDescriptorErrorKind.InvalidNeighborOrder, 1: CipDescriptorErrorKind.Property, 2: CipDescriptorErrorKind.InvalidStoredDescriptor})¶
- exception cosmolkit.CipLabelerError(*args, **kwargs)¶
Failure in the cip domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CipLabelerError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (25)
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to CipLabelerError.UnsignedPropertyRead, CipLabelerError.InvalidPropertyKind, CipLabelerError.BondNotIncident, CipLabelerError.UnsupportedConfiguration, CipLabelerError.AtomProperty. None when this payload is absent.
- property atom_count: int | None¶
Readonly atom_count payload of the AtomIndexOutOfRange error variant; None for other variants.
- property atropisomer: AtropisomerError | None¶
“error_payload”} Structured AtropisomerError payload of CipLabelerError.Atropisomer; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property bond: int | None¶
Bond identifier implicated in the failure. Applies to CipLabelerError.BondNotIncident, CipLabelerError.BondValue. None when this payload is absent.
- property bond_count: int | None¶
Readonly bond_count payload of the BondIndexOutOfRange error variant; None for other variants.
- property detail: str | None¶
Readonly detail payload of the InvalidInternalState error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property double_stereo: DoubleBondStereoError | None¶
“error_payload”} Structured DoubleBondStereoError payload of CipLabelerError.DoubleStereo; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property edge: int | None¶
Readonly edge payload of the EdgeEndpointMismatch error variant; None for other variants.
- property index: int | None¶
Index reported by the failing native check. Applies to CipLabelerError.AtomIndexOutOfRange, CipLabelerError.BondIndexOutOfRange, CipLabelerError.SourceIndexWidthExceeded. None when this payload is absent.
- property kekulize: KekulizeError | None¶
“error_payload”} Structured KekulizeError payload of CipLabelerError.Kekulize; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property kind: PropertyValueKind | str | None¶
“error_payload”} Native failure-specific category or value kind. Applies to CipLabelerError.InvalidPropertyKind, CipLabelerError.SourceIndexWidthExceeded. None when this payload is absent.
- Type:
{“role”
- property limit: int | None¶
Readonly limit payload of the TooManyNodes error variant; None for other variants.
- property molecule_property: MoleculePropertyError | None¶
“error_payload”} Structured MoleculePropertyError payload of CipLabelerError.MoleculeProperty; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property node: int | None¶
Readonly node payload of the EdgeEndpointMismatch error variant; None for other variants.
- property order: BondOrder | None¶
Readonly order payload of the NonIntegerBondOrder error variant; None for other variants.
- property periodic_table: PeriodicTableError | None¶
“error_payload”} Structured PeriodicTableError payload of CipLabelerError.PeriodicTable; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property property: str | None¶
Property name involved in the failure. Applies to CipLabelerError.UnsignedPropertyRead, CipLabelerError.InvalidPropertyKind. None when this payload is absent.
- property ring_finding: RingFindingError | None¶
“error_payload”} Structured RingFindingError payload of CipLabelerError.RingFinding; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: StereoGroupError | ValenceError | ConjugationError | HybridizationError | RingFindingError | TopologyValidationError | CoordinateValidationError | BondValueError | StereoOrderError | AtomPropertyError | PropertyIntReadError | TemplateAttachmentOrderError | MappingValidationError | PropertyUIntReadError | CanonicalRankError | DoubleBondStereoError | MoleculePropertyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property tag: ChiralTag | None¶
Readonly tag payload of the UnsupportedConfiguration error variant; None for other variants.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of CipLabelerError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of CipLabelerError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: CipLabelerErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CipLabelerErrorKind(value)¶
Discriminants of CipLabelerErrorKind.
Members:
UnsignedPropertyRead,InvalidPropertyKind,AtomIndexOutOfRange,BondIndexOutOfRange,SourceIndexWidthExceeded,BondNotIncident,NonIntegerBondOrder,EdgeEndpointMismatch,TooManyNodes,MaxIterationsExceeded,ControlCCaught,UnexpectedUpEdgeOrdering,NoSequenceRuleProvided,EmptyPairListReference,DescriptorListLengthMismatch,InvalidStereoDescriptor,SubstituentsShouldBeTopologicallyEquivalent,SomethingUnexpected,Rule4bInstanceNotInRuleSet,Rule5NewInstanceNotInRuleSet,ParityVectorsMustHaveSize4,EmptyConfigurationFoci,BadTetrahedralConfig,TetrahedralConfigurationMustHave4Carriers,DescriptorNotSupportedForAtoms,InvalidAtomDescriptor,CarrierMismatch,BadSp2BondFoci,BadSp2BondConfig,IncorrectNumberOfStereoAtoms,DescriptorNotSupportedForDoubleBonds,InvalidBondDescriptor,BadAtropisomerBondFoci,BadAtropisomerBondConfig,DescriptorNotSupportedForAtropisomerBonds,InvalidInternalState,UnsupportedConfiguration,InvalidTopology,AtomProperty,BondValue,MoleculeProperty,Atropisomer,DoubleStereo,RingFinding,Valence,Kekulize,PeriodicTable, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (50)
- AtomIndexOutOfRange = CipLabelerErrorKind.AtomIndexOutOfRange¶
- AtomProperty = CipLabelerErrorKind.AtomProperty¶
- Atropisomer = CipLabelerErrorKind.Atropisomer¶
- BadAtropisomerBondConfig = CipLabelerErrorKind.BadAtropisomerBondConfig¶
- BadAtropisomerBondFoci = CipLabelerErrorKind.BadAtropisomerBondFoci¶
- BadSp2BondConfig = CipLabelerErrorKind.BadSp2BondConfig¶
- BadSp2BondFoci = CipLabelerErrorKind.BadSp2BondFoci¶
- BadTetrahedralConfig = CipLabelerErrorKind.BadTetrahedralConfig¶
- BondIndexOutOfRange = CipLabelerErrorKind.BondIndexOutOfRange¶
- BondNotIncident = CipLabelerErrorKind.BondNotIncident¶
- BondValue = CipLabelerErrorKind.BondValue¶
- CarrierMismatch = CipLabelerErrorKind.CarrierMismatch¶
- ControlCCaught = CipLabelerErrorKind.ControlCCaught¶
- DescriptorListLengthMismatch = CipLabelerErrorKind.DescriptorListLengthMismatch¶
- DescriptorNotSupportedForAtoms = CipLabelerErrorKind.DescriptorNotSupportedForAtoms¶
- DescriptorNotSupportedForAtropisomerBonds = CipLabelerErrorKind.DescriptorNotSupportedForAtropisomerBonds¶
- DescriptorNotSupportedForDoubleBonds = CipLabelerErrorKind.DescriptorNotSupportedForDoubleBonds¶
- DoubleStereo = CipLabelerErrorKind.DoubleStereo¶
- EdgeEndpointMismatch = CipLabelerErrorKind.EdgeEndpointMismatch¶
- EmptyConfigurationFoci = CipLabelerErrorKind.EmptyConfigurationFoci¶
- EmptyPairListReference = CipLabelerErrorKind.EmptyPairListReference¶
- IncorrectNumberOfStereoAtoms = CipLabelerErrorKind.IncorrectNumberOfStereoAtoms¶
- InvalidAtomDescriptor = CipLabelerErrorKind.InvalidAtomDescriptor¶
- InvalidBondDescriptor = CipLabelerErrorKind.InvalidBondDescriptor¶
- InvalidInternalState = CipLabelerErrorKind.InvalidInternalState¶
- InvalidPropertyKind = CipLabelerErrorKind.InvalidPropertyKind¶
- InvalidStereoDescriptor = CipLabelerErrorKind.InvalidStereoDescriptor¶
- InvalidTopology = CipLabelerErrorKind.InvalidTopology¶
- Kekulize = CipLabelerErrorKind.Kekulize¶
- MaxIterationsExceeded = CipLabelerErrorKind.MaxIterationsExceeded¶
- MoleculeProperty = CipLabelerErrorKind.MoleculeProperty¶
- NoSequenceRuleProvided = CipLabelerErrorKind.NoSequenceRuleProvided¶
- NonIntegerBondOrder = CipLabelerErrorKind.NonIntegerBondOrder¶
- ParityVectorsMustHaveSize4 = CipLabelerErrorKind.ParityVectorsMustHaveSize4¶
- PeriodicTable = CipLabelerErrorKind.PeriodicTable¶
- RingFinding = CipLabelerErrorKind.RingFinding¶
- Rule4bInstanceNotInRuleSet = CipLabelerErrorKind.Rule4bInstanceNotInRuleSet¶
- Rule5NewInstanceNotInRuleSet = CipLabelerErrorKind.Rule5NewInstanceNotInRuleSet¶
- SomethingUnexpected = CipLabelerErrorKind.SomethingUnexpected¶
- SourceIndexWidthExceeded = CipLabelerErrorKind.SourceIndexWidthExceeded¶
- SubstituentsShouldBeTopologicallyEquivalent = CipLabelerErrorKind.SubstituentsShouldBeTopologicallyEquivalent¶
- TetrahedralConfigurationMustHave4Carriers = CipLabelerErrorKind.TetrahedralConfigurationMustHave4Carriers¶
- TooManyNodes = CipLabelerErrorKind.TooManyNodes¶
- UnexpectedUpEdgeOrdering = CipLabelerErrorKind.UnexpectedUpEdgeOrdering¶
- UnsignedPropertyRead = CipLabelerErrorKind.UnsignedPropertyRead¶
- UnsupportedConfiguration = CipLabelerErrorKind.UnsupportedConfiguration¶
- Valence = CipLabelerErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'UnsignedPropertyRead': CipLabelerErrorKind.UnsignedPropertyRead, 'InvalidPropertyKind': CipLabelerErrorKind.InvalidPropertyKind, 'AtomIndexOutOfRange': CipLabelerErrorKind.AtomIndexOutOfRange, 'BondIndexOutOfRange': CipLabelerErrorKind.BondIndexOutOfRange, 'SourceIndexWidthExceeded': CipLabelerErrorKind.SourceIndexWidthExceeded, 'BondNotIncident': CipLabelerErrorKind.BondNotIncident, 'NonIntegerBondOrder': CipLabelerErrorKind.NonIntegerBondOrder, 'EdgeEndpointMismatch': CipLabelerErrorKind.EdgeEndpointMismatch, 'TooManyNodes': CipLabelerErrorKind.TooManyNodes, 'MaxIterationsExceeded': CipLabelerErrorKind.MaxIterationsExceeded, 'ControlCCaught': CipLabelerErrorKind.ControlCCaught, 'UnexpectedUpEdgeOrdering': CipLabelerErrorKind.UnexpectedUpEdgeOrdering, 'NoSequenceRuleProvided': CipLabelerErrorKind.NoSequenceRuleProvided, 'EmptyPairListReference': CipLabelerErrorKind.EmptyPairListReference, 'DescriptorListLengthMismatch': CipLabelerErrorKind.DescriptorListLengthMismatch, 'InvalidStereoDescriptor': CipLabelerErrorKind.InvalidStereoDescriptor, 'SubstituentsShouldBeTopologicallyEquivalent': CipLabelerErrorKind.SubstituentsShouldBeTopologicallyEquivalent, 'SomethingUnexpected': CipLabelerErrorKind.SomethingUnexpected, 'Rule4bInstanceNotInRuleSet': CipLabelerErrorKind.Rule4bInstanceNotInRuleSet, 'Rule5NewInstanceNotInRuleSet': CipLabelerErrorKind.Rule5NewInstanceNotInRuleSet, 'ParityVectorsMustHaveSize4': CipLabelerErrorKind.ParityVectorsMustHaveSize4, 'EmptyConfigurationFoci': CipLabelerErrorKind.EmptyConfigurationFoci, 'BadTetrahedralConfig': CipLabelerErrorKind.BadTetrahedralConfig, 'TetrahedralConfigurationMustHave4Carriers': CipLabelerErrorKind.TetrahedralConfigurationMustHave4Carriers, 'DescriptorNotSupportedForAtoms': CipLabelerErrorKind.DescriptorNotSupportedForAtoms, 'InvalidAtomDescriptor': CipLabelerErrorKind.InvalidAtomDescriptor, 'CarrierMismatch': CipLabelerErrorKind.CarrierMismatch, 'BadSp2BondFoci': CipLabelerErrorKind.BadSp2BondFoci, 'BadSp2BondConfig': CipLabelerErrorKind.BadSp2BondConfig, 'IncorrectNumberOfStereoAtoms': CipLabelerErrorKind.IncorrectNumberOfStereoAtoms, 'DescriptorNotSupportedForDoubleBonds': CipLabelerErrorKind.DescriptorNotSupportedForDoubleBonds, 'InvalidBondDescriptor': CipLabelerErrorKind.InvalidBondDescriptor, 'BadAtropisomerBondFoci': CipLabelerErrorKind.BadAtropisomerBondFoci, 'BadAtropisomerBondConfig': CipLabelerErrorKind.BadAtropisomerBondConfig, 'DescriptorNotSupportedForAtropisomerBonds': CipLabelerErrorKind.DescriptorNotSupportedForAtropisomerBonds, 'InvalidInternalState': CipLabelerErrorKind.InvalidInternalState, 'UnsupportedConfiguration': CipLabelerErrorKind.UnsupportedConfiguration, 'InvalidTopology': CipLabelerErrorKind.InvalidTopology, 'AtomProperty': CipLabelerErrorKind.AtomProperty, 'BondValue': CipLabelerErrorKind.BondValue, 'MoleculeProperty': CipLabelerErrorKind.MoleculeProperty, 'Atropisomer': CipLabelerErrorKind.Atropisomer, 'DoubleStereo': CipLabelerErrorKind.DoubleStereo, 'RingFinding': CipLabelerErrorKind.RingFinding, 'Valence': CipLabelerErrorKind.Valence, 'Kekulize': CipLabelerErrorKind.Kekulize, 'PeriodicTable': CipLabelerErrorKind.PeriodicTable})¶
- values = mappingproxy({0: CipLabelerErrorKind.UnsignedPropertyRead, 1: CipLabelerErrorKind.InvalidPropertyKind, 2: CipLabelerErrorKind.AtomIndexOutOfRange, 3: CipLabelerErrorKind.BondIndexOutOfRange, 4: CipLabelerErrorKind.SourceIndexWidthExceeded, 5: CipLabelerErrorKind.BondNotIncident, 6: CipLabelerErrorKind.NonIntegerBondOrder, 7: CipLabelerErrorKind.EdgeEndpointMismatch, 8: CipLabelerErrorKind.TooManyNodes, 9: CipLabelerErrorKind.MaxIterationsExceeded, 10: CipLabelerErrorKind.ControlCCaught, 11: CipLabelerErrorKind.UnexpectedUpEdgeOrdering, 12: CipLabelerErrorKind.NoSequenceRuleProvided, 13: CipLabelerErrorKind.EmptyPairListReference, 14: CipLabelerErrorKind.DescriptorListLengthMismatch, 15: CipLabelerErrorKind.InvalidStereoDescriptor, 16: CipLabelerErrorKind.SubstituentsShouldBeTopologicallyEquivalent, 17: CipLabelerErrorKind.SomethingUnexpected, 18: CipLabelerErrorKind.Rule4bInstanceNotInRuleSet, 19: CipLabelerErrorKind.Rule5NewInstanceNotInRuleSet, 20: CipLabelerErrorKind.ParityVectorsMustHaveSize4, 21: CipLabelerErrorKind.EmptyConfigurationFoci, 22: CipLabelerErrorKind.BadTetrahedralConfig, 23: CipLabelerErrorKind.TetrahedralConfigurationMustHave4Carriers, 24: CipLabelerErrorKind.DescriptorNotSupportedForAtoms, 25: CipLabelerErrorKind.InvalidAtomDescriptor, 26: CipLabelerErrorKind.CarrierMismatch, 27: CipLabelerErrorKind.BadSp2BondFoci, 28: CipLabelerErrorKind.BadSp2BondConfig, 29: CipLabelerErrorKind.IncorrectNumberOfStereoAtoms, 30: CipLabelerErrorKind.DescriptorNotSupportedForDoubleBonds, 31: CipLabelerErrorKind.InvalidBondDescriptor, 32: CipLabelerErrorKind.BadAtropisomerBondFoci, 33: CipLabelerErrorKind.BadAtropisomerBondConfig, 34: CipLabelerErrorKind.DescriptorNotSupportedForAtropisomerBonds, 35: CipLabelerErrorKind.InvalidInternalState, 36: CipLabelerErrorKind.UnsupportedConfiguration, 37: CipLabelerErrorKind.InvalidTopology, 38: CipLabelerErrorKind.AtomProperty, 39: CipLabelerErrorKind.BondValue, 40: CipLabelerErrorKind.MoleculeProperty, 41: CipLabelerErrorKind.Atropisomer, 42: CipLabelerErrorKind.DoubleStereo, 43: CipLabelerErrorKind.RingFinding, 44: CipLabelerErrorKind.Valence, 45: CipLabelerErrorKind.Kekulize, 46: CipLabelerErrorKind.PeriodicTable})¶
- class cosmolkit.CipLabelOptions(*, atoms=Ellipsis, bonds=Ellipsis, max_recursive_iterations=Ellipsis)¶
Atom/bond selections and recursion limit for CIP assignment.
- exception cosmolkit.CipRankError(*args, **kwargs)¶
Failure in the stereo domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CipRankError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (16)
- property actual: int | None¶
Observed value reported by the native check. Applies to CipRankError.ValenceRowCount, CipRankError.InvariantCount. None when this payload is absent.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to CipRankError.NegativeImplicitHydrogen, CipRankError.AtomMapOutOfRange, CipRankError.InvariantOutOfRange, CipRankError.TooManyNeighbors. None when this payload is absent.
- property atom_count: int | None¶
Atom count used when validating the reported atom reference. Applies to CipRankError.ValenceRowCount, CipRankError.InvariantCount. None when this payload is absent.
- property bond: int | None¶
Readonly bond payload of the UnsupportedBondOrder error variant; None for other variants.
- property degree: int | None¶
Readonly degree payload of the TooManyNeighbors error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property field: str | None¶
Readonly field payload of the ValenceRowCount error variant; None for other variants.
- property map_number: int | None¶
Readonly map_number payload of the AtomMapOutOfRange error variant; None for other variants.
- property maximum_supported: int | None¶
Readonly maximum_supported payload of the TooManyNeighbors error variant; None for other variants.
- property order: BondOrder | None¶
Readonly order payload of the UnsupportedBondOrder error variant; None for other variants.
- property query_state: QueryStateError | None¶
“error_payload”} Structured QueryStateError payload of CipRankError.InvalidQueryState; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: MappingValidationError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of CipRankError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property value: int | None¶
Value rejected or reported by the native operation. Applies to CipRankError.NegativeImplicitHydrogen, CipRankError.InvariantOutOfRange. None when this payload is absent.
- property variant: CipRankErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CipRankErrorKind(value)¶
Discriminants of CipRankErrorKind.
Members:
InvalidTopology,InvalidQueryState,ValenceRowCount,NegativeImplicitHydrogen,AtomMapOutOfRange,InvariantCount,InvariantOutOfRange,TooManyNeighbors,UnsupportedBondOrder, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (12)
- AtomMapOutOfRange = CipRankErrorKind.AtomMapOutOfRange¶
- InvalidQueryState = CipRankErrorKind.InvalidQueryState¶
- InvalidTopology = CipRankErrorKind.InvalidTopology¶
- InvariantCount = CipRankErrorKind.InvariantCount¶
- InvariantOutOfRange = CipRankErrorKind.InvariantOutOfRange¶
- NegativeImplicitHydrogen = CipRankErrorKind.NegativeImplicitHydrogen¶
- TooManyNeighbors = CipRankErrorKind.TooManyNeighbors¶
- UnsupportedBondOrder = CipRankErrorKind.UnsupportedBondOrder¶
- ValenceRowCount = CipRankErrorKind.ValenceRowCount¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': CipRankErrorKind.InvalidTopology, 'InvalidQueryState': CipRankErrorKind.InvalidQueryState, 'ValenceRowCount': CipRankErrorKind.ValenceRowCount, 'NegativeImplicitHydrogen': CipRankErrorKind.NegativeImplicitHydrogen, 'AtomMapOutOfRange': CipRankErrorKind.AtomMapOutOfRange, 'InvariantCount': CipRankErrorKind.InvariantCount, 'InvariantOutOfRange': CipRankErrorKind.InvariantOutOfRange, 'TooManyNeighbors': CipRankErrorKind.TooManyNeighbors, 'UnsupportedBondOrder': CipRankErrorKind.UnsupportedBondOrder})¶
- values = mappingproxy({0: CipRankErrorKind.InvalidTopology, 1: CipRankErrorKind.InvalidQueryState, 2: CipRankErrorKind.ValenceRowCount, 3: CipRankErrorKind.NegativeImplicitHydrogen, 4: CipRankErrorKind.AtomMapOutOfRange, 5: CipRankErrorKind.InvariantCount, 6: CipRankErrorKind.InvariantOutOfRange, 7: CipRankErrorKind.TooManyNeighbors, 8: CipRankErrorKind.UnsupportedBondOrder})¶
- exception cosmolkit.CleanupError(*args, **kwargs)¶
Failure in the cleanup domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CleanupError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property canonical_rank: CanonicalRankError | None¶
“error_payload”} Structured CanonicalRankError payload of CleanupError.CanonicalRank; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: TopologyValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of CleanupError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of CleanupError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: CleanupErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CleanupErrorKind(value)¶
Discriminants of CleanupErrorKind.
Members:
InvalidTopology,Valence,CanonicalRank, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- CanonicalRank = CleanupErrorKind.CanonicalRank¶
- InvalidTopology = CleanupErrorKind.InvalidTopology¶
- Valence = CleanupErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': CleanupErrorKind.InvalidTopology, 'Valence': CleanupErrorKind.Valence, 'CanonicalRank': CleanupErrorKind.CanonicalRank})¶
- values = mappingproxy({0: CleanupErrorKind.InvalidTopology, 1: CleanupErrorKind.Valence, 2: CleanupErrorKind.CanonicalRank})¶
- class cosmolkit.CompiledQuery¶
Compiled native substructure query with its graph and planned atom order.
- class cosmolkit.Conformer2D(id, coordinates)¶
Owned 2D coordinate rows with a conformer identifier. Reading coordinates returns an independent NumPy array, not mutable molecular storage.
Members (2)
- coordinates: numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]¶
[“numpy”], “type”: “numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]”} Return an independent float64 array of shape (num_atoms, 2), in atom-index order.
- Type:
{“role”
- Type:
“return_type”, “imports”
- id: int¶
Identifier associated with these coordinate rows.
- class cosmolkit.Conformer3D(id, coordinates, is_3d)¶
Owned three-component coordinate rows and their explicit dimensionality flag. A false is_3d flag describes planar data stored as three-component rows.
Members (3)
- coordinates: numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]¶
[“numpy”], “type”: “numpy.ndarray[tuple[int, int], numpy.dtype[numpy.float64]]”} Return an independent float64 array of shape (num_atoms, 3), in atom-index order.
- Type:
{“role”
- Type:
“return_type”, “imports”
- id: int¶
Identifier associated with these coordinate rows.
- is_3d: bool¶
Whether these rows are marked as three-dimensional rather than planar.
- class cosmolkit.ConformerAlignmentParameters(*, atom_indices=Ellipsis, conformer_ids=Ellipsis, weights=Ellipsis, reflect=Ellipsis, max_iterations=Ellipsis)¶
Atom selection, conformer selection and numerical settings for aligning stored conformers.
Members (6)
- atom_indices: tuple[int, ...] | None¶
Optional zero-based atom indices used by alignment.
- conformer_ids: tuple[int, ...] | None¶
Optional stored conformer identifiers to align.
- max_iterations: int¶
Maximum number of iterations in the alignment solver.
- static new(atom_indices=Ellipsis, conformer_ids=Ellipsis, weights=Ellipsis, reflect=Ellipsis, max_iterations=Ellipsis) ConformerAlignmentParameters¶
Create an independent configuration through the native constructor using the supplied field values.
- reflect: bool¶
Allow reflection as part of the alignment transform.
- weights: tuple[float, ...] | None¶
Optional alignment weights in selected-atom order.
- class cosmolkit.ConformerAlignmentReport(rmsds)¶
Ordered RMSD results returned by native conformer alignment.
- exception cosmolkit.ConformerError(*args, **kwargs)¶
ConformerError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Native error domain identifying the conformer subsystem.
- property message: str | None¶
Native failure message for generation or JSON parameter errors; None for variants without a message.
- property variant: ConformerErrorKind¶
Concrete native failure category; payload fields apply only to their corresponding variants.
- class cosmolkit.ConformerErrorKind(value)¶
Discriminants of ConformerErrorKind.
Members:
Unsupported,CannotNormalizeZeroLengthVector,GenerationFailed,InvalidEmbedParametersJson, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (7)
- CannotNormalizeZeroLengthVector = ConformerErrorKind.CannotNormalizeZeroLengthVector¶
- GenerationFailed = ConformerErrorKind.GenerationFailed¶
- InvalidEmbedParametersJson = ConformerErrorKind.InvalidEmbedParametersJson¶
- Unsupported = ConformerErrorKind.Unsupported¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Unsupported': ConformerErrorKind.Unsupported, 'CannotNormalizeZeroLengthVector': ConformerErrorKind.CannotNormalizeZeroLengthVector, 'GenerationFailed': ConformerErrorKind.GenerationFailed, 'InvalidEmbedParametersJson': ConformerErrorKind.InvalidEmbedParametersJson})¶
- values = mappingproxy({0: ConformerErrorKind.Unsupported, 1: ConformerErrorKind.CannotNormalizeZeroLengthVector, 2: ConformerErrorKind.GenerationFailed, 3: ConformerErrorKind.InvalidEmbedParametersJson})¶
- class cosmolkit.ConformerOptimizerCause¶
Structured cause of conformer optimization failure, preserving its native variant.
Members (3)
- construction: DistGeomForceFieldError | None¶
Force-field construction details for Construction failures; None otherwise.
- message: str | None¶
Native diagnostic message. Present for ConformerOptimizerCause.Input; None when unavailable.
- variant: ConformerOptimizerCauseKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.ConformerOptimizerCauseKind(value)¶
Discriminants of ConformerOptimizerCauseKind.
Members:
Input,Construction, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Construction = ConformerOptimizerCauseKind.Construction¶
- Input = ConformerOptimizerCauseKind.Input¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Input': ConformerOptimizerCauseKind.Input, 'Construction': ConformerOptimizerCauseKind.Construction})¶
- values = mappingproxy({0: ConformerOptimizerCauseKind.Input, 1: ConformerOptimizerCauseKind.Construction})¶
- exception cosmolkit.ConformerOptimizerError(*args, **kwargs)¶
ConformerOptimizerError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property cause: ConformerOptimizerCause¶
“error_payload”} Structured native cause of conformer optimization failure.
- Type:
{“role”
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: ForceFieldKernelError | UffInversionContributionError | None¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- class cosmolkit.ConformerRmsd(probe_conformer_id, reference_conformer_id, rmsd)¶
RMSD value associated with explicit probe and reference conformer identifiers.
- exception cosmolkit.ConformerRunError(*args, **kwargs)¶
ConformerRunError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: BoundsQueryError | GenerationError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- exception cosmolkit.ConjugationError(*args, **kwargs)¶
Failure in the conjugation domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
ConjugationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (15)
- property actual: int | None¶
Readonly actual payload of the ValenceAssignmentLength error variant; None for other variants.
- property aromaticity: AromaticityError | None¶
“error_payload”} Structured AromaticityError payload of ConjugationError.Aromaticity; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to ConjugationError.InvalidValenceRow, ConjugationError.AtomOutOfRange. None when this payload is absent.
- property atom_count: int | None¶
Readonly atom_count payload of the AtomOutOfRange error variant; None for other variants.
- property bond: int | None¶
Readonly bond payload of the BondOutOfRange error variant; None for other variants.
- property bond_count: int | None¶
Readonly bond_count payload of the BondOutOfRange error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the ValenceAssignmentLength error variant; None for other variants.
- property field: str | None¶
Field whose content or type caused the failure. Applies to ConjugationError.ValenceAssignmentLength, ConjugationError.InvalidValenceRow, ConjugationError.IntegerOverflow. None when this payload is absent.
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of ConjugationError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of ConjugationError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property value: int | None¶
Readonly value payload of the InvalidValenceRow error variant; None for other variants.
- property variant: ConjugationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.ConjugationErrorKind(value)¶
Discriminants of ConjugationErrorKind.
Members:
InvalidTopology,ValenceAssignmentLength,InvalidValenceRow,AtomOutOfRange,BondOutOfRange,IntegerOverflow,Aromaticity,Valence, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (11)
- Aromaticity = ConjugationErrorKind.Aromaticity¶
- AtomOutOfRange = ConjugationErrorKind.AtomOutOfRange¶
- BondOutOfRange = ConjugationErrorKind.BondOutOfRange¶
- IntegerOverflow = ConjugationErrorKind.IntegerOverflow¶
- InvalidTopology = ConjugationErrorKind.InvalidTopology¶
- InvalidValenceRow = ConjugationErrorKind.InvalidValenceRow¶
- Valence = ConjugationErrorKind.Valence¶
- ValenceAssignmentLength = ConjugationErrorKind.ValenceAssignmentLength¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': ConjugationErrorKind.InvalidTopology, 'ValenceAssignmentLength': ConjugationErrorKind.ValenceAssignmentLength, 'InvalidValenceRow': ConjugationErrorKind.InvalidValenceRow, 'AtomOutOfRange': ConjugationErrorKind.AtomOutOfRange, 'BondOutOfRange': ConjugationErrorKind.BondOutOfRange, 'IntegerOverflow': ConjugationErrorKind.IntegerOverflow, 'Aromaticity': ConjugationErrorKind.Aromaticity, 'Valence': ConjugationErrorKind.Valence})¶
- values = mappingproxy({0: ConjugationErrorKind.InvalidTopology, 1: ConjugationErrorKind.ValenceAssignmentLength, 2: ConjugationErrorKind.InvalidValenceRow, 3: ConjugationErrorKind.AtomOutOfRange, 4: ConjugationErrorKind.BondOutOfRange, 5: ConjugationErrorKind.IntegerOverflow, 6: ConjugationErrorKind.Aromaticity, 7: ConjugationErrorKind.Valence})¶
- exception cosmolkit.Coordinate2DError(*args, **kwargs)¶
Failure in the depict domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
Coordinate2DError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property max_id: int | None¶
Readonly max_id payload of the ConformerIdOverflow error variant; None for other variants.
- property source: TopologyValidationError | ValenceError | RingFindingError | LegacyStereoError | Coordinate2DTemplateError | Coordinate2DLayoutError | CoordinateValidationError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: Coordinate2DErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.Coordinate2DErrorKind(value)¶
Discriminants of Coordinate2DErrorKind.
Members:
InvalidTopology,PropertyCache,RingFinding,StereoAssignment,TemplateLoading,Fragment,CoordinateValidation,ConformerIdOverflow,CoordGenUnavailable, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (12)
- ConformerIdOverflow = Coordinate2DErrorKind.ConformerIdOverflow¶
- CoordinateValidation = Coordinate2DErrorKind.CoordinateValidation¶
- Fragment = Coordinate2DErrorKind.Fragment¶
- InvalidTopology = Coordinate2DErrorKind.InvalidTopology¶
- PropertyCache = Coordinate2DErrorKind.PropertyCache¶
- RingFinding = Coordinate2DErrorKind.RingFinding¶
- StereoAssignment = Coordinate2DErrorKind.StereoAssignment¶
- TemplateLoading = Coordinate2DErrorKind.TemplateLoading¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': Coordinate2DErrorKind.InvalidTopology, 'PropertyCache': Coordinate2DErrorKind.PropertyCache, 'RingFinding': Coordinate2DErrorKind.RingFinding, 'StereoAssignment': Coordinate2DErrorKind.StereoAssignment, 'TemplateLoading': Coordinate2DErrorKind.TemplateLoading, 'Fragment': Coordinate2DErrorKind.Fragment, 'CoordinateValidation': Coordinate2DErrorKind.CoordinateValidation, 'ConformerIdOverflow': Coordinate2DErrorKind.ConformerIdOverflow, 'CoordGenUnavailable': Coordinate2DErrorKind.CoordGenUnavailable})¶
- values = mappingproxy({0: Coordinate2DErrorKind.InvalidTopology, 1: Coordinate2DErrorKind.PropertyCache, 2: Coordinate2DErrorKind.RingFinding, 3: Coordinate2DErrorKind.StereoAssignment, 4: Coordinate2DErrorKind.TemplateLoading, 5: Coordinate2DErrorKind.Fragment, 6: Coordinate2DErrorKind.CoordinateValidation, 7: Coordinate2DErrorKind.ConformerIdOverflow, 8: Coordinate2DErrorKind.CoordGenUnavailable})¶
- class cosmolkit.Coordinate2DInputParams(*, z_policy=Ellipsis)¶
Policy for importing two-dimensional coordinate rows.
Members (1)
- z_policy: CoordinateZPolicy¶
How to handle a supplied third coordinate when importing 2D positions.
- exception cosmolkit.Coordinate2DLayoutError(*args, **kwargs)¶
Failure in the depict domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
Coordinate2DLayoutError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (12)
- property atom: int | None¶
Atom index involved in the failure. Present for Coordinate2DLayoutError.AtomIndexOutOfRange, Coordinate2DLayoutError.AtomAlreadyEmbedded, Coordinate2DLayoutError.AtomNotEmbedded, Coordinate2DLayoutError.NotEnoughEmbeddedNeighbors, Coordinate2DLayoutError.EmptyAttachment, Coordinate2DLayoutError.InvalidRankProperty, Coordinate2DLayoutError.GeometryNotEnoughNeighbors; None when unavailable.
- property atom_count: int | None¶
Number of atoms available to the operation. Present for Coordinate2DLayoutError.AtomIndexOutOfRange, Coordinate2DLayoutError.AtomCountTooLarge; None when unavailable.
- property bond: int | None¶
Bond index involved in the failure. Present for Coordinate2DLayoutError.CisTransBondInvalid, Coordinate2DLayoutError.CollisionBondInvalid; None when unavailable.
- property centre: int | None¶
Center atom involved in the coordinate-layout failure. Present for Coordinate2DLayoutError.NonTetrahedralNoLigand, Coordinate2DLayoutError.NonTetrahedralLigandOverflow; None when unavailable.
- property count: int | None¶
Count observed when the failure occurred. Present for Coordinate2DLayoutError.NotEnoughEmbeddedNeighbors, Coordinate2DLayoutError.GeometryNotEnoughNeighbors; None when unavailable.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property first: int | None¶
Readonly first payload of the UndefinedSamplingDistance error variant; None for other variants.
- property key: str | None¶
Readonly key payload of the InvalidRankProperty error variant; None for other variants.
- property second: int | None¶
Readonly second payload of the UndefinedSamplingDistance error variant; None for other variants.
- property source: PropertyUIntReadError | SubstructMatchError | PathError | MatrixError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: Coordinate2DLayoutErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.Coordinate2DLayoutErrorKind(value)¶
Discriminants of Coordinate2DLayoutErrorKind.
Members:
AtomIndexOutOfRange,AtomAlreadyEmbedded,AtomNotEmbedded,NotEnoughEmbeddedNeighbors,CoincidentPoints,InvalidAngle,NoCommonAtoms,MismatchedTopology,EmptyAttachment,NonTetrahedralNoLigand,NonTetrahedralLigandOverflow,CisTransBondInvalid,CollisionBondInvalid,UndefinedSamplingDistance,AtomCountTooLarge,InvalidRankProperty,GeometryNotEnoughNeighbors,TemplateMatch,GraphPath,GraphDistance, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (23)
- AtomAlreadyEmbedded = Coordinate2DLayoutErrorKind.AtomAlreadyEmbedded¶
- AtomCountTooLarge = Coordinate2DLayoutErrorKind.AtomCountTooLarge¶
- AtomIndexOutOfRange = Coordinate2DLayoutErrorKind.AtomIndexOutOfRange¶
- AtomNotEmbedded = Coordinate2DLayoutErrorKind.AtomNotEmbedded¶
- CisTransBondInvalid = Coordinate2DLayoutErrorKind.CisTransBondInvalid¶
- CoincidentPoints = Coordinate2DLayoutErrorKind.CoincidentPoints¶
- CollisionBondInvalid = Coordinate2DLayoutErrorKind.CollisionBondInvalid¶
- EmptyAttachment = Coordinate2DLayoutErrorKind.EmptyAttachment¶
- GeometryNotEnoughNeighbors = Coordinate2DLayoutErrorKind.GeometryNotEnoughNeighbors¶
- GraphDistance = Coordinate2DLayoutErrorKind.GraphDistance¶
- GraphPath = Coordinate2DLayoutErrorKind.GraphPath¶
- InvalidAngle = Coordinate2DLayoutErrorKind.InvalidAngle¶
- InvalidRankProperty = Coordinate2DLayoutErrorKind.InvalidRankProperty¶
- MismatchedTopology = Coordinate2DLayoutErrorKind.MismatchedTopology¶
- NoCommonAtoms = Coordinate2DLayoutErrorKind.NoCommonAtoms¶
- NonTetrahedralLigandOverflow = Coordinate2DLayoutErrorKind.NonTetrahedralLigandOverflow¶
- NonTetrahedralNoLigand = Coordinate2DLayoutErrorKind.NonTetrahedralNoLigand¶
- NotEnoughEmbeddedNeighbors = Coordinate2DLayoutErrorKind.NotEnoughEmbeddedNeighbors¶
- TemplateMatch = Coordinate2DLayoutErrorKind.TemplateMatch¶
- UndefinedSamplingDistance = Coordinate2DLayoutErrorKind.UndefinedSamplingDistance¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'AtomIndexOutOfRange': Coordinate2DLayoutErrorKind.AtomIndexOutOfRange, 'AtomAlreadyEmbedded': Coordinate2DLayoutErrorKind.AtomAlreadyEmbedded, 'AtomNotEmbedded': Coordinate2DLayoutErrorKind.AtomNotEmbedded, 'NotEnoughEmbeddedNeighbors': Coordinate2DLayoutErrorKind.NotEnoughEmbeddedNeighbors, 'CoincidentPoints': Coordinate2DLayoutErrorKind.CoincidentPoints, 'InvalidAngle': Coordinate2DLayoutErrorKind.InvalidAngle, 'NoCommonAtoms': Coordinate2DLayoutErrorKind.NoCommonAtoms, 'MismatchedTopology': Coordinate2DLayoutErrorKind.MismatchedTopology, 'EmptyAttachment': Coordinate2DLayoutErrorKind.EmptyAttachment, 'NonTetrahedralNoLigand': Coordinate2DLayoutErrorKind.NonTetrahedralNoLigand, 'NonTetrahedralLigandOverflow': Coordinate2DLayoutErrorKind.NonTetrahedralLigandOverflow, 'CisTransBondInvalid': Coordinate2DLayoutErrorKind.CisTransBondInvalid, 'CollisionBondInvalid': Coordinate2DLayoutErrorKind.CollisionBondInvalid, 'UndefinedSamplingDistance': Coordinate2DLayoutErrorKind.UndefinedSamplingDistance, 'AtomCountTooLarge': Coordinate2DLayoutErrorKind.AtomCountTooLarge, 'InvalidRankProperty': Coordinate2DLayoutErrorKind.InvalidRankProperty, 'GeometryNotEnoughNeighbors': Coordinate2DLayoutErrorKind.GeometryNotEnoughNeighbors, 'TemplateMatch': Coordinate2DLayoutErrorKind.TemplateMatch, 'GraphPath': Coordinate2DLayoutErrorKind.GraphPath, 'GraphDistance': Coordinate2DLayoutErrorKind.GraphDistance})¶
- values = mappingproxy({0: Coordinate2DLayoutErrorKind.AtomIndexOutOfRange, 1: Coordinate2DLayoutErrorKind.AtomAlreadyEmbedded, 2: Coordinate2DLayoutErrorKind.AtomNotEmbedded, 3: Coordinate2DLayoutErrorKind.NotEnoughEmbeddedNeighbors, 4: Coordinate2DLayoutErrorKind.CoincidentPoints, 5: Coordinate2DLayoutErrorKind.InvalidAngle, 6: Coordinate2DLayoutErrorKind.NoCommonAtoms, 7: Coordinate2DLayoutErrorKind.MismatchedTopology, 8: Coordinate2DLayoutErrorKind.EmptyAttachment, 9: Coordinate2DLayoutErrorKind.NonTetrahedralNoLigand, 10: Coordinate2DLayoutErrorKind.NonTetrahedralLigandOverflow, 11: Coordinate2DLayoutErrorKind.CisTransBondInvalid, 12: Coordinate2DLayoutErrorKind.CollisionBondInvalid, 13: Coordinate2DLayoutErrorKind.UndefinedSamplingDistance, 14: Coordinate2DLayoutErrorKind.AtomCountTooLarge, 15: Coordinate2DLayoutErrorKind.InvalidRankProperty, 16: Coordinate2DLayoutErrorKind.GeometryNotEnoughNeighbors, 17: Coordinate2DLayoutErrorKind.TemplateMatch, 18: Coordinate2DLayoutErrorKind.GraphPath, 19: Coordinate2DLayoutErrorKind.GraphDistance})¶
- class cosmolkit.Coordinate2DParams(*, coordinate_map=Ellipsis, canonical_orientation=Ellipsis, clear_existing_2d=Ellipsis, flips_per_sample=Ellipsis, samples=Ellipsis, sample_seed=Ellipsis, permute_degree_four=Ellipsis, force_rdkit=Ellipsis, use_ring_templates=Ellipsis, use_path_angle_expansion=Ellipsis)¶
Frozen detached counterpart of RDKit’s Compute2DCoordParameters.
clear_existing_2d is consumed by the live runtime when this detached result is installed. It deliberately does not affect independent 3D rows.
Members (10)
- canonical_orientation: bool¶
Orient the generated layout canonically.
- clear_existing_2d: bool¶
Replace existing 2D conformers rather than retaining them.
- coordinate_map: collections.abc.Mapping[int, tuple[float, ...]]¶
Fixed atom positions keyed by zero-based atom index.
- flips_per_sample: int¶
Number of rotatable-bond flips attempted for each sampled layout.
- force_rdkit: bool¶
Force the native RDKit-style layout path.
- permute_degree_four: bool¶
Permit degree-four atom neighbor permutations during sampling.
- sample_seed: int¶
Random seed for layout sampling.
- samples: int¶
Number of alternative layouts to sample.
- use_path_angle_expansion: bool¶
Resolve remaining nonbonded clashes using source path-angle expansion.
- use_ring_templates: bool¶
Use the native ring template library during layout.
- exception cosmolkit.Coordinate2DTemplateError(*args, **kwargs)¶
Failure in the depict domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
Coordinate2DTemplateError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (8)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property index: int | None¶
Index associated with the failure. Present for Coordinate2DTemplateError.InvalidDefaultRow, Coordinate2DTemplateError.InvalidTopology, Coordinate2DTemplateError.NonElementIdentity, Coordinate2DTemplateError.RingInitialization, Coordinate2DTemplateError.ConnectedComponents; None when unavailable.
- property line: int | None¶
Readonly line payload of the ExternalInvalidSmarts error variant; None for other variants.
- property path: str | None¶
Source path associated with the failure. Present for Coordinate2DTemplateError.ExternalOpen, Coordinate2DTemplateError.ExternalRead, Coordinate2DTemplateError.ExternalInvalidSmarts; None when unavailable.
- property row: str | None¶
Source row associated with the failure. Present for Coordinate2DTemplateError.MissingCoordinates, Coordinate2DTemplateError.ThreeDimensionalCoordinates, Coordinate2DTemplateError.MultipleFragments, Coordinate2DTemplateError.NotRingSystem; None when unavailable.
- property source: SmartsParseError | TopologyValidationError | QueryAtomConversionError | RingFindingError | PathError | IoError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: Coordinate2DTemplateErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.Coordinate2DTemplateErrorKind(value)¶
Discriminants of Coordinate2DTemplateErrorKind.
Members:
InvalidDefaultRow,InvalidTopology,NonElementIdentity,RingInitialization,ConnectedComponents,ExternalOpen,ExternalRead,ExternalInvalidSmarts,MissingCoordinates,ThreeDimensionalCoordinates,MultipleFragments,NotRingSystem, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (15)
- ConnectedComponents = Coordinate2DTemplateErrorKind.ConnectedComponents¶
- ExternalInvalidSmarts = Coordinate2DTemplateErrorKind.ExternalInvalidSmarts¶
- ExternalOpen = Coordinate2DTemplateErrorKind.ExternalOpen¶
- ExternalRead = Coordinate2DTemplateErrorKind.ExternalRead¶
- InvalidDefaultRow = Coordinate2DTemplateErrorKind.InvalidDefaultRow¶
- InvalidTopology = Coordinate2DTemplateErrorKind.InvalidTopology¶
- MissingCoordinates = Coordinate2DTemplateErrorKind.MissingCoordinates¶
- MultipleFragments = Coordinate2DTemplateErrorKind.MultipleFragments¶
- NonElementIdentity = Coordinate2DTemplateErrorKind.NonElementIdentity¶
- NotRingSystem = Coordinate2DTemplateErrorKind.NotRingSystem¶
- RingInitialization = Coordinate2DTemplateErrorKind.RingInitialization¶
- ThreeDimensionalCoordinates = Coordinate2DTemplateErrorKind.ThreeDimensionalCoordinates¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidDefaultRow': Coordinate2DTemplateErrorKind.InvalidDefaultRow, 'InvalidTopology': Coordinate2DTemplateErrorKind.InvalidTopology, 'NonElementIdentity': Coordinate2DTemplateErrorKind.NonElementIdentity, 'RingInitialization': Coordinate2DTemplateErrorKind.RingInitialization, 'ConnectedComponents': Coordinate2DTemplateErrorKind.ConnectedComponents, 'ExternalOpen': Coordinate2DTemplateErrorKind.ExternalOpen, 'ExternalRead': Coordinate2DTemplateErrorKind.ExternalRead, 'ExternalInvalidSmarts': Coordinate2DTemplateErrorKind.ExternalInvalidSmarts, 'MissingCoordinates': Coordinate2DTemplateErrorKind.MissingCoordinates, 'ThreeDimensionalCoordinates': Coordinate2DTemplateErrorKind.ThreeDimensionalCoordinates, 'MultipleFragments': Coordinate2DTemplateErrorKind.MultipleFragments, 'NotRingSystem': Coordinate2DTemplateErrorKind.NotRingSystem})¶
- values = mappingproxy({0: Coordinate2DTemplateErrorKind.InvalidDefaultRow, 1: Coordinate2DTemplateErrorKind.InvalidTopology, 2: Coordinate2DTemplateErrorKind.NonElementIdentity, 3: Coordinate2DTemplateErrorKind.RingInitialization, 4: Coordinate2DTemplateErrorKind.ConnectedComponents, 5: Coordinate2DTemplateErrorKind.ExternalOpen, 6: Coordinate2DTemplateErrorKind.ExternalRead, 7: Coordinate2DTemplateErrorKind.ExternalInvalidSmarts, 8: Coordinate2DTemplateErrorKind.MissingCoordinates, 9: Coordinate2DTemplateErrorKind.ThreeDimensionalCoordinates, 10: Coordinate2DTemplateErrorKind.MultipleFragments, 11: Coordinate2DTemplateErrorKind.NotRingSystem})¶
- class cosmolkit.Coordinate3DInputParams(*, is_3d=Ellipsis)¶
Dimensionality metadata for imported three-component coordinates.
Members (1)
- is_3d: bool¶
Mark the imported conformer as three-dimensional.
- exception cosmolkit.Coordinate3DReadError(*args, **kwargs)¶
Failure in the coordinates domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
Coordinate3DReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property conformer_id: int | None¶
Readonly conformer_id payload of the ConformerNotFound error variant; None for other variants.
- property count: int | None¶
Readonly count payload of the ConformerNotFound error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: Coordinate3DReadErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.Coordinate3DReadErrorKind(value)¶
Discriminants of Coordinate3DReadErrorKind.
Members:
ConformerNotFound, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (4)
- ConformerNotFound = Coordinate3DReadErrorKind.ConformerNotFound¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'ConformerNotFound': Coordinate3DReadErrorKind.ConformerNotFound})¶
- values = mappingproxy({0: Coordinate3DReadErrorKind.ConformerNotFound})¶
- class cosmolkit.CoordinateBlock(conformers_2d, conformers_3d, source_coordinate_dim, source_conformer_order)¶
Detached 2D/3D conformers and source ordering metadata.
Members (4)
- conformers_2d: list[Conformer2D]¶
Independent copies of the stored two-dimensional conformers.
- conformers_3d: list[Conformer3D]¶
Independent copies of the stored three-dimensional conformers.
- source_conformer_order: list[CoordinateDimension] | None¶
Original 2D/3D conformer ordering, or None when not recorded.
- source_coordinate_dim: CoordinateDimension | None¶
Coordinate dimensionality recorded by the source, or None.
- exception cosmolkit.CoordinateBlockSelectionError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CoordinateBlockSelectionError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property block_number: int | None¶
Readonly block_number payload of the LaterCoordinateBlock error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: str¶
Input source name associated with coordinate-block selection failure.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: CoordinateBlockSelectionErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CoordinateBlockSelectionErrorKind(value)¶
Discriminants of CoordinateBlockSelectionErrorKind.
Members:
EmptyDocument,LaterCoordinateBlock, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- EmptyDocument = CoordinateBlockSelectionErrorKind.EmptyDocument¶
- LaterCoordinateBlock = CoordinateBlockSelectionErrorKind.LaterCoordinateBlock¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'EmptyDocument': CoordinateBlockSelectionErrorKind.EmptyDocument, 'LaterCoordinateBlock': CoordinateBlockSelectionErrorKind.LaterCoordinateBlock})¶
- values = mappingproxy({0: CoordinateBlockSelectionErrorKind.EmptyDocument, 1: CoordinateBlockSelectionErrorKind.LaterCoordinateBlock})¶
- class cosmolkit.CoordinateDimension(value)¶
Typed CoordinateDimension values corresponding to the Rust enum.
Members:
TwoD,ThreeD, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (5)
- ThreeD = CoordinateDimension.ThreeD¶
- TwoD = CoordinateDimension.TwoD¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'TwoD': CoordinateDimension.TwoD, 'ThreeD': CoordinateDimension.ThreeD})¶
- values = mappingproxy({0: CoordinateDimension.TwoD, 1: CoordinateDimension.ThreeD})¶
- exception cosmolkit.CoordinateInputError(*args, **kwargs)¶
Failure in the coordinates domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CoordinateInputError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (15)
- property actual: int | None¶
Readonly actual payload of the RowCount error variant; None for other variants.
- property column: int | None¶
Readonly column payload of the NonFinite error variant; None for other variants.
- property columns: int | None¶
Readonly columns payload of the Shape error variant; None for other variants.
- property conformer_id: int | None¶
Readonly conformer_id payload of the ConformerNotFound error variant; None for other variants.
- property coordinates: CoordinateValidationError | None¶
“error_payload”} Structured CoordinateValidationError payload of CoordinateInputError.InvalidCoordinates; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property count: int | None¶
Readonly count payload of the ConformerNotFound error variant; None for other variants.
- property dimension: str | None¶
Coordinate or matrix dimension involved in the failure. Applies to CoordinateInputError.RowCount, CoordinateInputError.Shape, CoordinateInputError.NonFinite. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | str | None¶
Required value reported by the native check. Applies to CoordinateInputError.RowCount, CoordinateInputError.Shape. None when this payload is absent.
- property max_id: int | None¶
Readonly max_id payload of the ConformerIdOverflow error variant; None for other variants.
- property row: int | None¶
Row reported by the native failure. Applies to CoordinateInputError.Shape, CoordinateInputError.NonFinite, CoordinateInputError.NonZeroZ. None when this payload is absent.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | float | None¶
Value rejected or reported by the native operation. Applies to CoordinateInputError.UnknownZPolicy, CoordinateInputError.NonFinite. None when this payload is absent.
- property variant: CoordinateInputErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- property z: float | None¶
Readonly z payload of the NonZeroZ error variant; None for other variants.
- class cosmolkit.CoordinateInputErrorKind(value)¶
Discriminants of CoordinateInputErrorKind.
Members:
UnknownZPolicy,RowCount,Shape,NonFinite,NonZeroZ,ThreeColumnsForbidden,ConformerNotFound,ConformerIdOverflow,InvalidCoordinates, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (12)
- ConformerIdOverflow = CoordinateInputErrorKind.ConformerIdOverflow¶
- ConformerNotFound = CoordinateInputErrorKind.ConformerNotFound¶
- InvalidCoordinates = CoordinateInputErrorKind.InvalidCoordinates¶
- NonFinite = CoordinateInputErrorKind.NonFinite¶
- NonZeroZ = CoordinateInputErrorKind.NonZeroZ¶
- RowCount = CoordinateInputErrorKind.RowCount¶
- Shape = CoordinateInputErrorKind.Shape¶
- ThreeColumnsForbidden = CoordinateInputErrorKind.ThreeColumnsForbidden¶
- UnknownZPolicy = CoordinateInputErrorKind.UnknownZPolicy¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'UnknownZPolicy': CoordinateInputErrorKind.UnknownZPolicy, 'RowCount': CoordinateInputErrorKind.RowCount, 'Shape': CoordinateInputErrorKind.Shape, 'NonFinite': CoordinateInputErrorKind.NonFinite, 'NonZeroZ': CoordinateInputErrorKind.NonZeroZ, 'ThreeColumnsForbidden': CoordinateInputErrorKind.ThreeColumnsForbidden, 'ConformerNotFound': CoordinateInputErrorKind.ConformerNotFound, 'ConformerIdOverflow': CoordinateInputErrorKind.ConformerIdOverflow, 'InvalidCoordinates': CoordinateInputErrorKind.InvalidCoordinates})¶
- values = mappingproxy({0: CoordinateInputErrorKind.UnknownZPolicy, 1: CoordinateInputErrorKind.RowCount, 2: CoordinateInputErrorKind.Shape, 3: CoordinateInputErrorKind.NonFinite, 4: CoordinateInputErrorKind.NonZeroZ, 5: CoordinateInputErrorKind.ThreeColumnsForbidden, 6: CoordinateInputErrorKind.ConformerNotFound, 7: CoordinateInputErrorKind.ConformerIdOverflow, 8: CoordinateInputErrorKind.InvalidCoordinates})¶
- class cosmolkit.CoordinateRmsdParameters(*, probe_conformer_id=Ellipsis, reference_conformer_id=Ellipsis, atom_maps=Ellipsis, weights=Ellipsis, max_matches=Ellipsis, symmetrize_conjugated_terminal_groups=Ellipsis)¶
Atom mappings, weights and conformer selection for RMSD without moving coordinates.
Members (7)
- atom_maps: tuple[tuple[AlignmentAtomMap, ...], ...]¶
Candidate probe-to-reference atom mappings; an empty collection requests native match enumeration.
- max_matches: int¶
Maximum number of candidate atom mappings considered.
- static new(probe_conformer_id=Ellipsis, reference_conformer_id=Ellipsis, atom_maps=Ellipsis, weights=Ellipsis, max_matches=Ellipsis, symmetrize_conjugated_terminal_groups=Ellipsis) CoordinateRmsdParameters¶
Create an independent configuration through the native constructor using the supplied field values.
- probe_conformer_id: int¶
Probe conformer identifier; -1 selects the native default conformer.
- reference_conformer_id: int¶
Reference conformer identifier; -1 selects the native default conformer.
- symmetrize_conjugated_terminal_groups: bool¶
Treat conjugated terminal groups symmetrically when selecting matches.
- weights: tuple[float, ...] | None¶
Optional alignment weights in atom-map order.
- exception cosmolkit.CoordinateValidationError(*args, **kwargs)¶
Failure in the coordinates domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CoordinateValidationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (15)
- property atom: int | None¶
Atom index involved in the failure. Present for CoordinateValidationError.AtomIndexOverflow, CoordinateValidationError.NonFiniteCoordinate; None when unavailable.
- property atom_count: int | None¶
Readonly atom_count payload of the RowCount error variant; None for other variants.
- property axis: str | None¶
Readonly axis payload of the NonFiniteCoordinate error variant; None for other variants.
- property conformer: int | None¶
Conformer identifier associated with the failure. Present for CoordinateValidationError.RowCount, CoordinateValidationError.NonFiniteCoordinate; None when unavailable.
- property dimension: str | None¶
Coordinate dimension associated with the failure. Present for CoordinateValidationError.RowCount, CoordinateValidationError.DuplicateConformerId, CoordinateValidationError.NonFiniteCoordinate; None when unavailable.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected_three_d: int | None¶
Readonly expected_three_d payload of the SourceConformerOrder error variant; None for other variants.
- property expected_two_d: int | None¶
Readonly expected_two_d payload of the SourceConformerOrder error variant; None for other variants.
- property id: int | None¶
Identifier associated with the failed validation. Present for CoordinateValidationError.Missing3DConformer, CoordinateValidationError.DuplicateConformerId; None when unavailable.
- property max_id: int | None¶
Readonly max_id payload of the ConformerIdOverflow error variant; None for other variants.
- property rows: int | None¶
Readonly rows payload of the RowCount error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property three_d: int | None¶
Readonly three_d payload of the SourceConformerOrder error variant; None for other variants.
- property two_d: int | None¶
Readonly two_d payload of the SourceConformerOrder error variant; None for other variants.
- property variant: CoordinateValidationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CoordinateValidationErrorKind(value)¶
Discriminants of CoordinateValidationErrorKind.
Members:
AtomIndexOverflow,Missing3DConformer,ConformerIdOverflow,RowCount,MissingSourceConformerOrder,SourceConformerOrder,DuplicateConformerId,NonFiniteCoordinate, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (11)
- AtomIndexOverflow = CoordinateValidationErrorKind.AtomIndexOverflow¶
- ConformerIdOverflow = CoordinateValidationErrorKind.ConformerIdOverflow¶
- DuplicateConformerId = CoordinateValidationErrorKind.DuplicateConformerId¶
- Missing3DConformer = CoordinateValidationErrorKind.Missing3DConformer¶
- MissingSourceConformerOrder = CoordinateValidationErrorKind.MissingSourceConformerOrder¶
- NonFiniteCoordinate = CoordinateValidationErrorKind.NonFiniteCoordinate¶
- RowCount = CoordinateValidationErrorKind.RowCount¶
- SourceConformerOrder = CoordinateValidationErrorKind.SourceConformerOrder¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'AtomIndexOverflow': CoordinateValidationErrorKind.AtomIndexOverflow, 'Missing3DConformer': CoordinateValidationErrorKind.Missing3DConformer, 'ConformerIdOverflow': CoordinateValidationErrorKind.ConformerIdOverflow, 'RowCount': CoordinateValidationErrorKind.RowCount, 'MissingSourceConformerOrder': CoordinateValidationErrorKind.MissingSourceConformerOrder, 'SourceConformerOrder': CoordinateValidationErrorKind.SourceConformerOrder, 'DuplicateConformerId': CoordinateValidationErrorKind.DuplicateConformerId, 'NonFiniteCoordinate': CoordinateValidationErrorKind.NonFiniteCoordinate})¶
- values = mappingproxy({0: CoordinateValidationErrorKind.AtomIndexOverflow, 1: CoordinateValidationErrorKind.Missing3DConformer, 2: CoordinateValidationErrorKind.ConformerIdOverflow, 3: CoordinateValidationErrorKind.RowCount, 4: CoordinateValidationErrorKind.MissingSourceConformerOrder, 5: CoordinateValidationErrorKind.SourceConformerOrder, 6: CoordinateValidationErrorKind.DuplicateConformerId, 7: CoordinateValidationErrorKind.NonFiniteCoordinate})¶
- class cosmolkit.CoordinateZPolicy(value)¶
Typed CoordinateZPolicy values corresponding to the Rust enum.
Members:
Ignore,RequireZero,Error, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (7)
- Error = CoordinateZPolicy.Error¶
- Ignore = CoordinateZPolicy.Ignore¶
- RequireZero = CoordinateZPolicy.RequireZero¶
- static from_name(value) CoordinateZPolicy¶
Parse the canonical coordinate-Z policy name; reject unknown names.
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Ignore': CoordinateZPolicy.Ignore, 'RequireZero': CoordinateZPolicy.RequireZero, 'Error': CoordinateZPolicy.Error})¶
- values = mappingproxy({0: CoordinateZPolicy.Ignore, 1: CoordinateZPolicy.RequireZero, 2: CoordinateZPolicy.Error})¶
- class cosmolkit.CrippenTotals(logp, molar_refractivity)¶
Molecular Crippen logP and molar refractivity totals.
- exception cosmolkit.CrystalffTorsionPreferencesError(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CrystalffTorsionPreferencesError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (15)
- property aid2: int | None¶
Readonly aid2 payload of the MissingCentralBond error variant; None for other variants.
- property aid3: int | None¶
Readonly aid3 payload of the MissingCentralBond error variant; None for other variants.
- property constant_name: str | None¶
Named parameter-table constant involved in the failure. Applies to CrystalffTorsionPreferencesError.InvalidParameterSourceFormat, CrystalffTorsionPreferencesError.UnsupportedEscapeSequence, CrystalffTorsionPreferencesError.UnterminatedQuotedLiteral, CrystalffTorsionPreferencesError.TrailingEscape. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property escape: str | None¶
Readonly escape payload of the UnsupportedEscapeSequence error variant; None for other variants.
- property line: str | None¶
Source line involved in the failure. Applies to CrystalffTorsionPreferencesError.MissingSmartsPattern, CrystalffTorsionPreferencesError.IncompleteParameterLine, CrystalffTorsionPreferencesError.InvalidIntegerToken, CrystalffTorsionPreferencesError.InvalidFloatToken. None when this payload is absent.
- property matching: SubstructMatchError | None¶
“error_payload”} Structured native error payload. Present for CrystalffTorsionPreferencesError.Match; None when unavailable.
- Type:
{“role”
- property prepared_target: QueryMatchContextError | None¶
“error_payload”} Structured native error payload. Present for CrystalffTorsionPreferencesError.PreparedTarget; None when unavailable.
- Type:
{“role”
- property reason: str | None¶
Native explanation for rejecting the operation. Applies to CrystalffTorsionPreferencesError.QueryBuildFailed, CrystalffTorsionPreferencesError.RingInfoUnavailable. None when this payload is absent.
- property smarts: str | None¶
SMARTS expression implicated in the parsing or query failure. Applies to CrystalffTorsionPreferencesError.QueryBuildFailed, CrystalffTorsionPreferencesError.MissingCentralBond. None when this payload is absent.
- property source: PropertyUIntReadError | AtomPropertyError | PropertyIntReadError | TopologyValidationError | RingFindingError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property token: str | None¶
Input token rejected by the parser. Applies to CrystalffTorsionPreferencesError.InvalidIntegerToken, CrystalffTorsionPreferencesError.InvalidFloatToken. None when this payload is absent.
- property variant: CrystalffTorsionPreferencesErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- property version: int | None¶
Readonly version payload of the InvalidExperimentalTorsionVersion error variant; None for other variants.
- class cosmolkit.CrystalffTorsionPreferencesErrorKind(value)¶
Discriminants of CrystalffTorsionPreferencesErrorKind.
Members:
InvalidExperimentalTorsionVersion,MissingSmartsPattern,IncompleteParameterLine,InvalidIntegerToken,InvalidFloatToken,InvalidParameterSourceFormat,UnsupportedEscapeSequence,UnterminatedQuotedLiteral,TrailingEscape,EmptyMolecule,PreparedTarget,Match,QueryBuildFailed,RingInfoUnavailable,MissingCentralBond, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (18)
- EmptyMolecule = CrystalffTorsionPreferencesErrorKind.EmptyMolecule¶
- IncompleteParameterLine = CrystalffTorsionPreferencesErrorKind.IncompleteParameterLine¶
- InvalidExperimentalTorsionVersion = CrystalffTorsionPreferencesErrorKind.InvalidExperimentalTorsionVersion¶
- InvalidFloatToken = CrystalffTorsionPreferencesErrorKind.InvalidFloatToken¶
- InvalidIntegerToken = CrystalffTorsionPreferencesErrorKind.InvalidIntegerToken¶
- InvalidParameterSourceFormat = CrystalffTorsionPreferencesErrorKind.InvalidParameterSourceFormat¶
- Match = CrystalffTorsionPreferencesErrorKind.Match¶
- MissingCentralBond = CrystalffTorsionPreferencesErrorKind.MissingCentralBond¶
- MissingSmartsPattern = CrystalffTorsionPreferencesErrorKind.MissingSmartsPattern¶
- PreparedTarget = CrystalffTorsionPreferencesErrorKind.PreparedTarget¶
- QueryBuildFailed = CrystalffTorsionPreferencesErrorKind.QueryBuildFailed¶
- TrailingEscape = CrystalffTorsionPreferencesErrorKind.TrailingEscape¶
- UnsupportedEscapeSequence = CrystalffTorsionPreferencesErrorKind.UnsupportedEscapeSequence¶
- UnterminatedQuotedLiteral = CrystalffTorsionPreferencesErrorKind.UnterminatedQuotedLiteral¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidExperimentalTorsionVersion': CrystalffTorsionPreferencesErrorKind.InvalidExperimentalTorsionVersion, 'MissingSmartsPattern': CrystalffTorsionPreferencesErrorKind.MissingSmartsPattern, 'IncompleteParameterLine': CrystalffTorsionPreferencesErrorKind.IncompleteParameterLine, 'InvalidIntegerToken': CrystalffTorsionPreferencesErrorKind.InvalidIntegerToken, 'InvalidFloatToken': CrystalffTorsionPreferencesErrorKind.InvalidFloatToken, 'InvalidParameterSourceFormat': CrystalffTorsionPreferencesErrorKind.InvalidParameterSourceFormat, 'UnsupportedEscapeSequence': CrystalffTorsionPreferencesErrorKind.UnsupportedEscapeSequence, 'UnterminatedQuotedLiteral': CrystalffTorsionPreferencesErrorKind.UnterminatedQuotedLiteral, 'TrailingEscape': CrystalffTorsionPreferencesErrorKind.TrailingEscape, 'EmptyMolecule': CrystalffTorsionPreferencesErrorKind.EmptyMolecule, 'PreparedTarget': CrystalffTorsionPreferencesErrorKind.PreparedTarget, 'Match': CrystalffTorsionPreferencesErrorKind.Match, 'QueryBuildFailed': CrystalffTorsionPreferencesErrorKind.QueryBuildFailed, 'RingInfoUnavailable': CrystalffTorsionPreferencesErrorKind.RingInfoUnavailable, 'MissingCentralBond': CrystalffTorsionPreferencesErrorKind.MissingCentralBond})¶
- values = mappingproxy({0: CrystalffTorsionPreferencesErrorKind.InvalidExperimentalTorsionVersion, 1: CrystalffTorsionPreferencesErrorKind.MissingSmartsPattern, 2: CrystalffTorsionPreferencesErrorKind.IncompleteParameterLine, 3: CrystalffTorsionPreferencesErrorKind.InvalidIntegerToken, 4: CrystalffTorsionPreferencesErrorKind.InvalidFloatToken, 5: CrystalffTorsionPreferencesErrorKind.InvalidParameterSourceFormat, 6: CrystalffTorsionPreferencesErrorKind.UnsupportedEscapeSequence, 7: CrystalffTorsionPreferencesErrorKind.UnterminatedQuotedLiteral, 8: CrystalffTorsionPreferencesErrorKind.TrailingEscape, 9: CrystalffTorsionPreferencesErrorKind.EmptyMolecule, 10: CrystalffTorsionPreferencesErrorKind.PreparedTarget, 11: CrystalffTorsionPreferencesErrorKind.Match, 12: CrystalffTorsionPreferencesErrorKind.QueryBuildFailed, 13: CrystalffTorsionPreferencesErrorKind.RingInfoUnavailable, 14: CrystalffTorsionPreferencesErrorKind.MissingCentralBond})¶
- class cosmolkit.CxCoordinateSelection¶
Coordinate selection for CXSMILES: Auto, TwoD(id), or ThreeD(id).
Members (4)
- Auto = CxCoordinateSelection(Auto)¶
- static ThreeD(id) CxCoordinateSelection¶
Select a stored three-dimensional conformer by its dimension-scoped identifier.
- static TwoD(id) CxCoordinateSelection¶
Select a stored two-dimensional layout by its dimension-scoped identifier.
- id: int | None¶
Dimension-scoped coordinate identifier, or None for Auto selection.
- exception cosmolkit.CxParseError(*args, **kwargs)¶
CxParseError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
- exception cosmolkit.CxQueryLoweringError(*args, **kwargs)¶
Failure in the search domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CxQueryLoweringError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (11)
- property actual: int | None¶
Readonly actual payload of the CoordinateCount error variant; None for other variants.
- property atom: int | None¶
Atom index involved in the failure. Present for CxQueryLoweringError.BondAtomMismatch, CxQueryLoweringError.WedgeAtomMismatch; None when unavailable.
- property bond: int | None¶
Bond index involved in the failure. Present for CxQueryLoweringError.BondAtomMismatch, CxQueryLoweringError.WedgeAtomMismatch; None when unavailable.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the CoordinateCount error variant; None for other variants.
- property index: int | None¶
Index associated with the failure. Present for CxQueryLoweringError.AtomIndex, CxQueryLoweringError.BondIndex; None when unavailable.
- property message: str | None¶
Native diagnostic message. Present for CxQueryLoweringError.InvalidGraph; None when unavailable.
- property record: str | None¶
Readonly record payload of the UnsupportedRecord error variant; None for other variants.
- property source: StereoGroupError | CxStereoGroupMergeError | PropertyUIntReadError | BondValueError | AtomPropertyError | PropertyStringError | MoleculePropertyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: CxQueryLoweringErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CxQueryLoweringErrorKind(value)¶
Discriminants of CxQueryLoweringErrorKind.
Members:
StereoGroup,StereoGroupMerge,Numeric,BondProperty,AtomProperty,Property,MoleculeProperty,AtomIndex,BondIndex,CoordinateCount,BondAtomMismatch,WedgeAtomMismatch,UnsupportedRecord,InvalidGraph, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (17)
- AtomIndex = CxQueryLoweringErrorKind.AtomIndex¶
- AtomProperty = CxQueryLoweringErrorKind.AtomProperty¶
- BondAtomMismatch = CxQueryLoweringErrorKind.BondAtomMismatch¶
- BondIndex = CxQueryLoweringErrorKind.BondIndex¶
- BondProperty = CxQueryLoweringErrorKind.BondProperty¶
- CoordinateCount = CxQueryLoweringErrorKind.CoordinateCount¶
- InvalidGraph = CxQueryLoweringErrorKind.InvalidGraph¶
- MoleculeProperty = CxQueryLoweringErrorKind.MoleculeProperty¶
- Numeric = CxQueryLoweringErrorKind.Numeric¶
- Property = CxQueryLoweringErrorKind.Property¶
- StereoGroup = CxQueryLoweringErrorKind.StereoGroup¶
- StereoGroupMerge = CxQueryLoweringErrorKind.StereoGroupMerge¶
- UnsupportedRecord = CxQueryLoweringErrorKind.UnsupportedRecord¶
- WedgeAtomMismatch = CxQueryLoweringErrorKind.WedgeAtomMismatch¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoGroup': CxQueryLoweringErrorKind.StereoGroup, 'StereoGroupMerge': CxQueryLoweringErrorKind.StereoGroupMerge, 'Numeric': CxQueryLoweringErrorKind.Numeric, 'BondProperty': CxQueryLoweringErrorKind.BondProperty, 'AtomProperty': CxQueryLoweringErrorKind.AtomProperty, 'Property': CxQueryLoweringErrorKind.Property, 'MoleculeProperty': CxQueryLoweringErrorKind.MoleculeProperty, 'AtomIndex': CxQueryLoweringErrorKind.AtomIndex, 'BondIndex': CxQueryLoweringErrorKind.BondIndex, 'CoordinateCount': CxQueryLoweringErrorKind.CoordinateCount, 'BondAtomMismatch': CxQueryLoweringErrorKind.BondAtomMismatch, 'WedgeAtomMismatch': CxQueryLoweringErrorKind.WedgeAtomMismatch, 'UnsupportedRecord': CxQueryLoweringErrorKind.UnsupportedRecord, 'InvalidGraph': CxQueryLoweringErrorKind.InvalidGraph})¶
- values = mappingproxy({0: CxQueryLoweringErrorKind.StereoGroup, 1: CxQueryLoweringErrorKind.StereoGroupMerge, 2: CxQueryLoweringErrorKind.Numeric, 3: CxQueryLoweringErrorKind.BondProperty, 4: CxQueryLoweringErrorKind.AtomProperty, 5: CxQueryLoweringErrorKind.Property, 6: CxQueryLoweringErrorKind.MoleculeProperty, 7: CxQueryLoweringErrorKind.AtomIndex, 8: CxQueryLoweringErrorKind.BondIndex, 9: CxQueryLoweringErrorKind.CoordinateCount, 10: CxQueryLoweringErrorKind.BondAtomMismatch, 11: CxQueryLoweringErrorKind.WedgeAtomMismatch, 12: CxQueryLoweringErrorKind.UnsupportedRecord, 13: CxQueryLoweringErrorKind.InvalidGraph})¶
- class cosmolkit.CxSmilesFields¶
Bit mask selecting CXSMILES extension fields; combine constants with the bitwise OR operator.
Members (19)
- ALL = CxSmilesFields(CxSmilesFields(2147483647))¶
- ALL_BUT_COORDS = CxSmilesFields(CxSmilesFields(2147483643))¶
- ATOM_LABELS = CxSmilesFields(CxSmilesFields(1))¶
- ATOM_PROPS = CxSmilesFields(CxSmilesFields(16))¶
- BOND_ATROPISOMER = CxSmilesFields(CxSmilesFields(1024))¶
- BOND_CFG = CxSmilesFields(CxSmilesFields(512))¶
- COORDINATE_BONDS = CxSmilesFields(CxSmilesFields(2048))¶
- COORDS = CxSmilesFields(CxSmilesFields(4))¶
- ENHANCED_STEREO = CxSmilesFields(CxSmilesFields(64))¶
- HYDROGEN_BONDS = CxSmilesFields(CxSmilesFields(4096))¶
- LINKNODES = CxSmilesFields(CxSmilesFields(32))¶
- MOLFILE_VALUES = CxSmilesFields(CxSmilesFields(2))¶
- NONE = CxSmilesFields(CxSmilesFields(0))¶
- POLYMER = CxSmilesFields(CxSmilesFields(256))¶
- RADICALS = CxSmilesFields(CxSmilesFields(8))¶
- SGROUPS = CxSmilesFields(CxSmilesFields(128))¶
- ZERO_BONDS = CxSmilesFields(CxSmilesFields(8192))¶
- bits: int¶
Integer representation of this option mask.
- contains(other) bool¶
Whether every bit in the supplied mask is present.
- class cosmolkit.CxSmilesWriteParams(*, smiles=Ellipsis, fields=Ellipsis, coordinate_selection=Ellipsis)¶
Options for detached CXSMILES writing.
Members (3)
- coordinate_selection: CxCoordinateSelection¶
Stored coordinate set to write in the CX extension.
- fields: CxSmilesFields¶
CX extension fields to include in the output.
- smiles: SmilesWriteParams¶
Base SMILES formatting and stereochemistry options.
- exception cosmolkit.CxStereoGroupMergeError(*args, **kwargs)¶
Failure in the search domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
CxStereoGroupMergeError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property actual: PropertyValueKind | None¶
Readonly actual payload of the TrackerPropertyType error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property groups: int | None¶
Readonly groups payload of the TrackerCount error variant; None for other variants.
- property hashes: int | None¶
Readonly hashes payload of the TrackerCount error variant; None for other variants.
- property source: StereoGroupError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: CxStereoGroupMergeErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.CxStereoGroupMergeErrorKind(value)¶
Discriminants of CxStereoGroupMergeErrorKind.
Members:
StereoGroup,TrackerPropertyType,TrackerCount, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- StereoGroup = CxStereoGroupMergeErrorKind.StereoGroup¶
- TrackerCount = CxStereoGroupMergeErrorKind.TrackerCount¶
- TrackerPropertyType = CxStereoGroupMergeErrorKind.TrackerPropertyType¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoGroup': CxStereoGroupMergeErrorKind.StereoGroup, 'TrackerPropertyType': CxStereoGroupMergeErrorKind.TrackerPropertyType, 'TrackerCount': CxStereoGroupMergeErrorKind.TrackerCount})¶
- values = mappingproxy({0: CxStereoGroupMergeErrorKind.StereoGroup, 1: CxStereoGroupMergeErrorKind.TrackerPropertyType, 2: CxStereoGroupMergeErrorKind.TrackerCount})¶
- class cosmolkit.DenseMatrix¶
Readonly dense square matrix with native row/column indexing.
- exception cosmolkit.DescriptorError(*args, **kwargs)¶
Failure in the descriptors domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
DescriptorError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (18)
- property actual: int | None¶
Observed count or value. Present for DescriptorError.InvalidHallKierContributionRows, DescriptorError.InvalidCrippenOptionalRows, DescriptorError.InvalidValenceRows; None when unavailable.
- property actual_rows: int | None¶
Readonly actual_rows payload of the InvalidConnectivityPath error variant; None for other variants.
- property bin_prop_len: int | None¶
Readonly bin_prop_len payload of the MismatchedBinArrays error variant; None for other variants.
- property bins_len: int | None¶
Readonly bins_len payload of the MismatchedBinArrays error variant; None for other variants.
- property cell: str | None¶
Readonly cell payload of the CrippenParamNumeric error variant; None for other variants.
- property contribs_len: int | None¶
Readonly contribs_len payload of the MismatchedBinArrays error variant; None for other variants.
- property detail: str | None¶
Readonly detail payload of the Unsupported error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Expected count or value. Present for DescriptorError.InvalidCrippenOptionalRows, DescriptorError.InvalidValenceRows; None when unavailable.
- property expected_rows: int | None¶
Readonly expected_rows payload of the InvalidConnectivityPath error variant; None for other variants.
- property field: str | None¶
Input field associated with the failure. Present for DescriptorError.MissingFinalHydrogenState, DescriptorError.CrippenParamNumeric, DescriptorError.InvalidCrippenOptionalRows, DescriptorError.CountOverflow, DescriptorError.InvalidValenceRows; None when unavailable.
- property function: str | None¶
Descriptor function reporting the failure. Present for DescriptorError.TopologyEdit, DescriptorError.InvalidConnectivityPath, DescriptorError.InvalidTopology, DescriptorError.Path, DescriptorError.MissingComputedScalar, DescriptorError.MissingLabuteHydrogens, DescriptorError.MissingLabuteAsa, DescriptorError.MissingCrippenMrContributions, DescriptorError.MissingCrippenMr, DescriptorError.Hydrogens, DescriptorError.CountOverflow, DescriptorError.Valence, DescriptorError.InvalidValenceRows, DescriptorError.Unsupported, DescriptorError.Ring, DescriptorError.Search, DescriptorError.Stereo; None when unavailable.
- property include_sulfur_phosphorus: bool | None¶
Readonly include_sulfur_phosphorus payload of the MissingComputedScalar error variant; None for other variants.
- property minimum: int | None¶
Readonly minimum payload of the InvalidHallKierContributionRows error variant; None for other variants.
- property row: int | None¶
Readonly row payload of the MissingCrippenDefaultPattern error variant; None for other variants.
- property source: TopologyEditError | TopologyValidationError | PathError | HydrogenError | ValenceError | RingFindingError | DescriptorSearchCause | LegacyStereoError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: DescriptorErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.DescriptorErrorKind(value)¶
Discriminants of DescriptorErrorKind.
Members:
TopologyEdit,MissingFinalHydrogenState,InvalidConnectivityPath,InvalidTopology,Path,InvalidHallKierContributionRows,MissingComputedScalar,MissingLabuteHydrogens,MissingLabuteAsa,MismatchedBinArrays,CrippenParamNumeric,MissingCrippenMrContributions,MissingCrippenMr,InvalidCrippenOptionalRows,MissingCrippenDefaultPattern,Hydrogens,CountOverflow,Valence,InvalidValenceRows,Unsupported,Ring,Search,Stereo, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (26)
- CountOverflow = DescriptorErrorKind.CountOverflow¶
- CrippenParamNumeric = DescriptorErrorKind.CrippenParamNumeric¶
- Hydrogens = DescriptorErrorKind.Hydrogens¶
- InvalidConnectivityPath = DescriptorErrorKind.InvalidConnectivityPath¶
- InvalidCrippenOptionalRows = DescriptorErrorKind.InvalidCrippenOptionalRows¶
- InvalidHallKierContributionRows = DescriptorErrorKind.InvalidHallKierContributionRows¶
- InvalidTopology = DescriptorErrorKind.InvalidTopology¶
- InvalidValenceRows = DescriptorErrorKind.InvalidValenceRows¶
- MismatchedBinArrays = DescriptorErrorKind.MismatchedBinArrays¶
- MissingComputedScalar = DescriptorErrorKind.MissingComputedScalar¶
- MissingCrippenDefaultPattern = DescriptorErrorKind.MissingCrippenDefaultPattern¶
- MissingCrippenMr = DescriptorErrorKind.MissingCrippenMr¶
- MissingCrippenMrContributions = DescriptorErrorKind.MissingCrippenMrContributions¶
- MissingFinalHydrogenState = DescriptorErrorKind.MissingFinalHydrogenState¶
- MissingLabuteAsa = DescriptorErrorKind.MissingLabuteAsa¶
- MissingLabuteHydrogens = DescriptorErrorKind.MissingLabuteHydrogens¶
- Path = DescriptorErrorKind.Path¶
- Ring = DescriptorErrorKind.Ring¶
- Search = DescriptorErrorKind.Search¶
- Stereo = DescriptorErrorKind.Stereo¶
- TopologyEdit = DescriptorErrorKind.TopologyEdit¶
- Unsupported = DescriptorErrorKind.Unsupported¶
- Valence = DescriptorErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'TopologyEdit': DescriptorErrorKind.TopologyEdit, 'MissingFinalHydrogenState': DescriptorErrorKind.MissingFinalHydrogenState, 'InvalidConnectivityPath': DescriptorErrorKind.InvalidConnectivityPath, 'InvalidTopology': DescriptorErrorKind.InvalidTopology, 'Path': DescriptorErrorKind.Path, 'InvalidHallKierContributionRows': DescriptorErrorKind.InvalidHallKierContributionRows, 'MissingComputedScalar': DescriptorErrorKind.MissingComputedScalar, 'MissingLabuteHydrogens': DescriptorErrorKind.MissingLabuteHydrogens, 'MissingLabuteAsa': DescriptorErrorKind.MissingLabuteAsa, 'MismatchedBinArrays': DescriptorErrorKind.MismatchedBinArrays, 'CrippenParamNumeric': DescriptorErrorKind.CrippenParamNumeric, 'MissingCrippenMrContributions': DescriptorErrorKind.MissingCrippenMrContributions, 'MissingCrippenMr': DescriptorErrorKind.MissingCrippenMr, 'InvalidCrippenOptionalRows': DescriptorErrorKind.InvalidCrippenOptionalRows, 'MissingCrippenDefaultPattern': DescriptorErrorKind.MissingCrippenDefaultPattern, 'Hydrogens': DescriptorErrorKind.Hydrogens, 'CountOverflow': DescriptorErrorKind.CountOverflow, 'Valence': DescriptorErrorKind.Valence, 'InvalidValenceRows': DescriptorErrorKind.InvalidValenceRows, 'Unsupported': DescriptorErrorKind.Unsupported, 'Ring': DescriptorErrorKind.Ring, 'Search': DescriptorErrorKind.Search, 'Stereo': DescriptorErrorKind.Stereo})¶
- values = mappingproxy({0: DescriptorErrorKind.TopologyEdit, 1: DescriptorErrorKind.MissingFinalHydrogenState, 2: DescriptorErrorKind.InvalidConnectivityPath, 3: DescriptorErrorKind.InvalidTopology, 4: DescriptorErrorKind.Path, 5: DescriptorErrorKind.InvalidHallKierContributionRows, 6: DescriptorErrorKind.MissingComputedScalar, 7: DescriptorErrorKind.MissingLabuteHydrogens, 8: DescriptorErrorKind.MissingLabuteAsa, 9: DescriptorErrorKind.MismatchedBinArrays, 10: DescriptorErrorKind.CrippenParamNumeric, 11: DescriptorErrorKind.MissingCrippenMrContributions, 12: DescriptorErrorKind.MissingCrippenMr, 13: DescriptorErrorKind.InvalidCrippenOptionalRows, 14: DescriptorErrorKind.MissingCrippenDefaultPattern, 15: DescriptorErrorKind.Hydrogens, 16: DescriptorErrorKind.CountOverflow, 17: DescriptorErrorKind.Valence, 18: DescriptorErrorKind.InvalidValenceRows, 19: DescriptorErrorKind.Unsupported, 20: DescriptorErrorKind.Ring, 21: DescriptorErrorKind.Search, 22: DescriptorErrorKind.Stereo})¶
- exception cosmolkit.DescriptorReadError(*args, **kwargs)¶
Failure in the descriptors domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
DescriptorReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: DescriptorError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: DescriptorReadErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.DescriptorReadErrorKind(value)¶
Discriminants of DescriptorReadErrorKind.
Members:
MissingPreparedValence,CachePoisoned,MissingInitializedRings,Algorithm, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (7)
- Algorithm = DescriptorReadErrorKind.Algorithm¶
- CachePoisoned = DescriptorReadErrorKind.CachePoisoned¶
- MissingInitializedRings = DescriptorReadErrorKind.MissingInitializedRings¶
- MissingPreparedValence = DescriptorReadErrorKind.MissingPreparedValence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingPreparedValence': DescriptorReadErrorKind.MissingPreparedValence, 'CachePoisoned': DescriptorReadErrorKind.CachePoisoned, 'MissingInitializedRings': DescriptorReadErrorKind.MissingInitializedRings, 'Algorithm': DescriptorReadErrorKind.Algorithm})¶
- values = mappingproxy({0: DescriptorReadErrorKind.MissingPreparedValence, 1: DescriptorReadErrorKind.CachePoisoned, 2: DescriptorReadErrorKind.MissingInitializedRings, 3: DescriptorReadErrorKind.Algorithm})¶
- exception cosmolkit.DescriptorSearchCause(*args, **kwargs)¶
Failure in the descriptors domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
DescriptorSearchCause is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: SmartsParseError | SubstructMatchError | QueryMatchContextError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: DescriptorSearchCauseKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.DescriptorSearchCauseKind(value)¶
Discriminants of DescriptorSearchCauseKind.
Members:
Compile,Match,Context, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Compile = DescriptorSearchCauseKind.Compile¶
- Context = DescriptorSearchCauseKind.Context¶
- Match = DescriptorSearchCauseKind.Match¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Compile': DescriptorSearchCauseKind.Compile, 'Match': DescriptorSearchCauseKind.Match, 'Context': DescriptorSearchCauseKind.Context})¶
- values = mappingproxy({0: DescriptorSearchCauseKind.Compile, 1: DescriptorSearchCauseKind.Match, 2: DescriptorSearchCauseKind.Context})¶
- exception cosmolkit.DispatchedUffOptimizationError(*args, **kwargs)¶
Failure in the uff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
DispatchedUffOptimizationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: AutomaticForceFieldConstructionError | UffThreadCountError | ThreadCountError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: DispatchedUffOptimizationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.DispatchedUffOptimizationErrorKind(value)¶
Discriminants of DispatchedUffOptimizationErrorKind.
Members:
Construction,ThreadCount,ThreadObservation, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Construction = DispatchedUffOptimizationErrorKind.Construction¶
- ThreadCount = DispatchedUffOptimizationErrorKind.ThreadCount¶
- ThreadObservation = DispatchedUffOptimizationErrorKind.ThreadObservation¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Construction': DispatchedUffOptimizationErrorKind.Construction, 'ThreadCount': DispatchedUffOptimizationErrorKind.ThreadCount, 'ThreadObservation': DispatchedUffOptimizationErrorKind.ThreadObservation})¶
- values = mappingproxy({0: DispatchedUffOptimizationErrorKind.Construction, 1: DispatchedUffOptimizationErrorKind.ThreadCount, 2: DispatchedUffOptimizationErrorKind.ThreadObservation})¶
- class cosmolkit.DistanceMatrix3dParams(*, conformer_id=Ellipsis, use_atom_weights=Ellipsis)¶
Conformer selection and diagonal weighting for Cartesian distance matrices.
- class cosmolkit.DistanceMatrixParams(*, use_bond_order=Ellipsis, use_atom_weights=Ellipsis)¶
Public options for a full-molecule topological distance matrix.
Active atom and bond subsets remain detached implementation APIs because they do not describe an ordinary single-molecule query projection.
- class cosmolkit.DistGeomForceFieldError¶
Distance-geometry force-field construction diagnostic.
Members (4)
- index: int | None¶
Index reported by the failing native check. Applies to DistGeomForceFieldError.IndexOverflow. None when this payload is absent.
- inversion: UffInversionContributionError | None¶
Structured native error payload. Present for DistGeomForceFieldError.Inversion; None when unavailable.
- kernel: ForceFieldKernelError | None¶
Structured native error payload. Present for DistGeomForceFieldError.Kernel; None when unavailable.
- variant: DistGeomForceFieldErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.DistGeomForceFieldErrorKind(value)¶
Discriminants of DistGeomForceFieldErrorKind.
Members:
Kernel,Inversion,IndexOverflow, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- IndexOverflow = DistGeomForceFieldErrorKind.IndexOverflow¶
- Inversion = DistGeomForceFieldErrorKind.Inversion¶
- Kernel = DistGeomForceFieldErrorKind.Kernel¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Kernel': DistGeomForceFieldErrorKind.Kernel, 'Inversion': DistGeomForceFieldErrorKind.Inversion, 'IndexOverflow': DistGeomForceFieldErrorKind.IndexOverflow})¶
- values = mappingproxy({0: DistGeomForceFieldErrorKind.Kernel, 1: DistGeomForceFieldErrorKind.Inversion, 2: DistGeomForceFieldErrorKind.IndexOverflow})¶
- exception cosmolkit.DoubleBondStereoError(*args, **kwargs)¶
Failure in the stereo domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
DoubleBondStereoError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (20)
- property actual: int | None¶
Observed value reported by the native check. Applies to DoubleBondStereoError.RankCount, DoubleBondStereoError.RingRowCount. None when this payload is absent.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to DoubleBondStereoError.UnsignedPropertyOverflow, DoubleBondStereoError.InvalidPropertyKind, DoubleBondStereoError.NumericPropertyRead, DoubleBondStereoError.AtomOutOfRange. None when this payload is absent.
- property atom_count: int | None¶
Atom count used when validating the reported atom reference. Applies to DoubleBondStereoError.AtomOutOfRange, DoubleBondStereoError.RankCount. None when this payload is absent.
- property bond: int | None¶
Bond index involved in the failure. Present for DoubleBondStereoError.UnsignedPropertyOverflow, DoubleBondStereoError.InvalidPropertyKind, DoubleBondStereoError.NumericPropertyRead, DoubleBondStereoError.BondOutOfRange, DoubleBondStereoError.NotDoubleBond, DoubleBondStereoError.UndefinedStereo, DoubleBondStereoError.UnsupportedStereo, DoubleBondStereoError.InvalidEndpointDegree, DoubleBondStereoError.StereoReferenceRequired, DoubleBondStereoError.StereoReferenceNotNeighbor, DoubleBondStereoError.StereoReferenceIsOppositeEndpoint, DoubleBondStereoError.ControllingAtomMismatch, DoubleBondStereoError.ControllingSlotOverflow; None when unavailable.
- property bond_count: int | None¶
Readonly bond_count payload of the BondOutOfRange error variant; None for other variants.
- property degree: int | None¶
Neighbor count reported by the native check. Applies to DoubleBondStereoError.InvalidEndpointDegree, DoubleBondStereoError.ControllingSlotOverflow. None when this payload is absent.
- property dimension: str | None¶
Readonly dimension payload of the RingRowCount error variant; None for other variants.
- property direction: BondDirection | None¶
Readonly direction payload of the InvalidDirection error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property endpoint: str | None¶
Bond endpoint associated with the stereo failure. Present for DoubleBondStereoError.InvalidEndpointDegree, DoubleBondStereoError.StereoReferenceNotNeighbor, DoubleBondStereoError.StereoReferenceIsOppositeEndpoint, DoubleBondStereoError.ControllingAtomMismatch, DoubleBondStereoError.ControllingSlotOverflow; None when unavailable.
- property expected: int | None¶
Readonly expected payload of the RingRowCount error variant; None for other variants.
- property kind: PropertyValueKind | None¶
“error_payload”} Native failure-specific category or value kind. Applies to DoubleBondStereoError.InvalidPropertyKind. None when this payload is absent.
- Type:
{“role”
- property order: BondOrder | None¶
Bond order associated with the failure. Present for DoubleBondStereoError.NotDoubleBond; None when unavailable.
- property property: str | None¶
Property name involved in the failure. Applies to DoubleBondStereoError.UnsignedPropertyOverflow, DoubleBondStereoError.InvalidPropertyKind, DoubleBondStereoError.NumericPropertyRead. None when this payload is absent.
- property reference: int | None¶
Stereo or structural reference implicated in the failure. Applies to DoubleBondStereoError.StereoReferenceNotNeighbor, DoubleBondStereoError.StereoReferenceIsOppositeEndpoint, DoubleBondStereoError.ControllingAtomMismatch. None when this payload is absent.
- property source: RingFindingError | PropertyIntReadError | TopologyValidationError | BondValueError | CoordinateValidationError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stereo: BondStereo | None¶
Bond stereo value rejected by this failure; None for other variants.
- property value: int | None¶
Readonly value payload of the UnsignedPropertyOverflow error variant; None for other variants.
- property variant: DoubleBondStereoErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.DoubleBondStereoErrorKind(value)¶
Discriminants of DoubleBondStereoErrorKind.
Members:
Rings,UnsignedPropertyOverflow,InvalidPropertyKind,NumericPropertyRead,InvalidTopology,BondValue,BondOutOfRange,AtomOutOfRange,NotDoubleBond,UndefinedStereo,UnsupportedStereo,InvalidEndpointDegree,InvalidDirection,RankCount,RingInfoNotInitialized,RingRowCount,InvalidConformer,StereoReferenceRequired,StereoReferenceNotNeighbor,StereoReferenceIsOppositeEndpoint,ControllingAtomMismatch,ControllingSlotOverflow, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (25)
- AtomOutOfRange = DoubleBondStereoErrorKind.AtomOutOfRange¶
- BondOutOfRange = DoubleBondStereoErrorKind.BondOutOfRange¶
- BondValue = DoubleBondStereoErrorKind.BondValue¶
- ControllingAtomMismatch = DoubleBondStereoErrorKind.ControllingAtomMismatch¶
- ControllingSlotOverflow = DoubleBondStereoErrorKind.ControllingSlotOverflow¶
- InvalidConformer = DoubleBondStereoErrorKind.InvalidConformer¶
- InvalidDirection = DoubleBondStereoErrorKind.InvalidDirection¶
- InvalidEndpointDegree = DoubleBondStereoErrorKind.InvalidEndpointDegree¶
- InvalidPropertyKind = DoubleBondStereoErrorKind.InvalidPropertyKind¶
- InvalidTopology = DoubleBondStereoErrorKind.InvalidTopology¶
- NotDoubleBond = DoubleBondStereoErrorKind.NotDoubleBond¶
- NumericPropertyRead = DoubleBondStereoErrorKind.NumericPropertyRead¶
- RankCount = DoubleBondStereoErrorKind.RankCount¶
- RingInfoNotInitialized = DoubleBondStereoErrorKind.RingInfoNotInitialized¶
- RingRowCount = DoubleBondStereoErrorKind.RingRowCount¶
- Rings = DoubleBondStereoErrorKind.Rings¶
- StereoReferenceIsOppositeEndpoint = DoubleBondStereoErrorKind.StereoReferenceIsOppositeEndpoint¶
- StereoReferenceNotNeighbor = DoubleBondStereoErrorKind.StereoReferenceNotNeighbor¶
- StereoReferenceRequired = DoubleBondStereoErrorKind.StereoReferenceRequired¶
- UndefinedStereo = DoubleBondStereoErrorKind.UndefinedStereo¶
- UnsignedPropertyOverflow = DoubleBondStereoErrorKind.UnsignedPropertyOverflow¶
- UnsupportedStereo = DoubleBondStereoErrorKind.UnsupportedStereo¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Rings': DoubleBondStereoErrorKind.Rings, 'UnsignedPropertyOverflow': DoubleBondStereoErrorKind.UnsignedPropertyOverflow, 'InvalidPropertyKind': DoubleBondStereoErrorKind.InvalidPropertyKind, 'NumericPropertyRead': DoubleBondStereoErrorKind.NumericPropertyRead, 'InvalidTopology': DoubleBondStereoErrorKind.InvalidTopology, 'BondValue': DoubleBondStereoErrorKind.BondValue, 'BondOutOfRange': DoubleBondStereoErrorKind.BondOutOfRange, 'AtomOutOfRange': DoubleBondStereoErrorKind.AtomOutOfRange, 'NotDoubleBond': DoubleBondStereoErrorKind.NotDoubleBond, 'UndefinedStereo': DoubleBondStereoErrorKind.UndefinedStereo, 'UnsupportedStereo': DoubleBondStereoErrorKind.UnsupportedStereo, 'InvalidEndpointDegree': DoubleBondStereoErrorKind.InvalidEndpointDegree, 'InvalidDirection': DoubleBondStereoErrorKind.InvalidDirection, 'RankCount': DoubleBondStereoErrorKind.RankCount, 'RingInfoNotInitialized': DoubleBondStereoErrorKind.RingInfoNotInitialized, 'RingRowCount': DoubleBondStereoErrorKind.RingRowCount, 'InvalidConformer': DoubleBondStereoErrorKind.InvalidConformer, 'StereoReferenceRequired': DoubleBondStereoErrorKind.StereoReferenceRequired, 'StereoReferenceNotNeighbor': DoubleBondStereoErrorKind.StereoReferenceNotNeighbor, 'StereoReferenceIsOppositeEndpoint': DoubleBondStereoErrorKind.StereoReferenceIsOppositeEndpoint, 'ControllingAtomMismatch': DoubleBondStereoErrorKind.ControllingAtomMismatch, 'ControllingSlotOverflow': DoubleBondStereoErrorKind.ControllingSlotOverflow})¶
- values = mappingproxy({0: DoubleBondStereoErrorKind.Rings, 1: DoubleBondStereoErrorKind.UnsignedPropertyOverflow, 2: DoubleBondStereoErrorKind.InvalidPropertyKind, 3: DoubleBondStereoErrorKind.NumericPropertyRead, 4: DoubleBondStereoErrorKind.InvalidTopology, 5: DoubleBondStereoErrorKind.BondValue, 6: DoubleBondStereoErrorKind.BondOutOfRange, 7: DoubleBondStereoErrorKind.AtomOutOfRange, 8: DoubleBondStereoErrorKind.NotDoubleBond, 9: DoubleBondStereoErrorKind.UndefinedStereo, 10: DoubleBondStereoErrorKind.UnsupportedStereo, 11: DoubleBondStereoErrorKind.InvalidEndpointDegree, 12: DoubleBondStereoErrorKind.InvalidDirection, 13: DoubleBondStereoErrorKind.RankCount, 14: DoubleBondStereoErrorKind.RingInfoNotInitialized, 15: DoubleBondStereoErrorKind.RingRowCount, 16: DoubleBondStereoErrorKind.InvalidConformer, 17: DoubleBondStereoErrorKind.StereoReferenceRequired, 18: DoubleBondStereoErrorKind.StereoReferenceNotNeighbor, 19: DoubleBondStereoErrorKind.StereoReferenceIsOppositeEndpoint, 20: DoubleBondStereoErrorKind.ControllingAtomMismatch, 21: DoubleBondStereoErrorKind.ControllingSlotOverflow})¶
- exception cosmolkit.DoubleLexicalReadError(*args, **kwargs)¶
DoubleLexicalReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property consumed: int¶
Number of input bytes consumed before conversion failed.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property kind: DoubleLexicalReadErrorKind¶
“error_payload”} Native floating-point lexical conversion failure category.
- Type:
{“role”
- property state: SourceNumericStreamState¶
“error_payload”} Native numeric stream flags at the point of failure.
- Type:
{“role”
- property value_bits: int | None¶
Optional IEEE-754 bits of the value retained by the failed conversion.
- class cosmolkit.DoubleLexicalReadErrorKind(value)¶
Typed DoubleLexicalReadErrorKind values corresponding to the Rust enum.
Members:
Syntax,TrailingByte,Overflow,FloatingEnvironmentNotModeled, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (7)
- FloatingEnvironmentNotModeled = DoubleLexicalReadErrorKind.FloatingEnvironmentNotModeled¶
- Overflow = DoubleLexicalReadErrorKind.Overflow¶
- Syntax = DoubleLexicalReadErrorKind.Syntax¶
- TrailingByte = DoubleLexicalReadErrorKind.TrailingByte¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Syntax': DoubleLexicalReadErrorKind.Syntax, 'TrailingByte': DoubleLexicalReadErrorKind.TrailingByte, 'Overflow': DoubleLexicalReadErrorKind.Overflow, 'FloatingEnvironmentNotModeled': DoubleLexicalReadErrorKind.FloatingEnvironmentNotModeled})¶
- values = mappingproxy({0: DoubleLexicalReadErrorKind.Syntax, 1: DoubleLexicalReadErrorKind.TrailingByte, 2: DoubleLexicalReadErrorKind.Overflow, 3: DoubleLexicalReadErrorKind.FloatingEnvironmentNotModeled})¶
- exception cosmolkit.DrawingError(*args, **kwargs)¶
Failure in the depict domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
DrawingError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (14)
- property actual: int | None¶
Readonly actual payload of the StateRows error variant; None for other variants.
- property atom_count: int | None¶
Readonly atom_count payload of the VariationIndex error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the StateRows error variant; None for other variants.
- property field: str | None¶
Field whose content or type caused the failure. Applies to DrawingError.StateRows, DrawingError.DataFieldDouble. None when this payload is absent.
- property group: int | None¶
Readonly group payload of the DataFieldDouble error variant; None for other variants.
- property height: int | None¶
Height reported by the failed native dimension check. Applies to DrawingError.InvalidDimensions, DrawingError.PixmapAllocation. None when this payload is absent.
- property index: int | None¶
Readonly index payload of the VariationIndex error variant; None for other variants.
- property reason: str | None¶
Readonly reason payload of the HydrogenAppend error variant; None for other variants.
- property row: int | None¶
Readonly row payload of the HydrogenAppend error variant; None for other variants.
- property source: PropertyValueError | TopologyValidationError | CoordinateValidationError | MappingValidationError | KekulizeError | HydrogenError | WedgeError | ValenceError | Coordinate2DError | FromUtf8Error | SvgParseError | IoError | Utf8Error | ExternalError | PropertyStringError | UnsignedStreamArrayError | DoubleLexicalReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: DrawingErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- property width: int | None¶
Width reported by the failing native check. Applies to DrawingError.InvalidDimensions, DrawingError.PixmapAllocation. None when this payload is absent.
- class cosmolkit.DrawingErrorKind(value)¶
Discriminants of DrawingErrorKind.
Members:
Property,Topology,Coordinates,Mapping,Kekulize,Hydrogen,Wedge,Valence,CoordinateGeneration,StateRows,HydrogenAppend,InvalidDimensions,SvgTextProjection,SvgParse,PixmapAllocation,PngEncode,PropertyString,VariationArray,VariationIndex,DataFieldDouble, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (23)
- CoordinateGeneration = DrawingErrorKind.CoordinateGeneration¶
- Coordinates = DrawingErrorKind.Coordinates¶
- DataFieldDouble = DrawingErrorKind.DataFieldDouble¶
- Hydrogen = DrawingErrorKind.Hydrogen¶
- HydrogenAppend = DrawingErrorKind.HydrogenAppend¶
- InvalidDimensions = DrawingErrorKind.InvalidDimensions¶
- Kekulize = DrawingErrorKind.Kekulize¶
- Mapping = DrawingErrorKind.Mapping¶
- PixmapAllocation = DrawingErrorKind.PixmapAllocation¶
- PngEncode = DrawingErrorKind.PngEncode¶
- Property = DrawingErrorKind.Property¶
- PropertyString = DrawingErrorKind.PropertyString¶
- StateRows = DrawingErrorKind.StateRows¶
- SvgParse = DrawingErrorKind.SvgParse¶
- SvgTextProjection = DrawingErrorKind.SvgTextProjection¶
- Topology = DrawingErrorKind.Topology¶
- Valence = DrawingErrorKind.Valence¶
- VariationArray = DrawingErrorKind.VariationArray¶
- VariationIndex = DrawingErrorKind.VariationIndex¶
- Wedge = DrawingErrorKind.Wedge¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Property': DrawingErrorKind.Property, 'Topology': DrawingErrorKind.Topology, 'Coordinates': DrawingErrorKind.Coordinates, 'Mapping': DrawingErrorKind.Mapping, 'Kekulize': DrawingErrorKind.Kekulize, 'Hydrogen': DrawingErrorKind.Hydrogen, 'Wedge': DrawingErrorKind.Wedge, 'Valence': DrawingErrorKind.Valence, 'CoordinateGeneration': DrawingErrorKind.CoordinateGeneration, 'StateRows': DrawingErrorKind.StateRows, 'HydrogenAppend': DrawingErrorKind.HydrogenAppend, 'InvalidDimensions': DrawingErrorKind.InvalidDimensions, 'SvgTextProjection': DrawingErrorKind.SvgTextProjection, 'SvgParse': DrawingErrorKind.SvgParse, 'PixmapAllocation': DrawingErrorKind.PixmapAllocation, 'PngEncode': DrawingErrorKind.PngEncode, 'PropertyString': DrawingErrorKind.PropertyString, 'VariationArray': DrawingErrorKind.VariationArray, 'VariationIndex': DrawingErrorKind.VariationIndex, 'DataFieldDouble': DrawingErrorKind.DataFieldDouble})¶
- values = mappingproxy({0: DrawingErrorKind.Property, 1: DrawingErrorKind.Topology, 2: DrawingErrorKind.Coordinates, 3: DrawingErrorKind.Mapping, 4: DrawingErrorKind.Kekulize, 5: DrawingErrorKind.Hydrogen, 6: DrawingErrorKind.Wedge, 7: DrawingErrorKind.Valence, 8: DrawingErrorKind.CoordinateGeneration, 9: DrawingErrorKind.StateRows, 10: DrawingErrorKind.HydrogenAppend, 11: DrawingErrorKind.InvalidDimensions, 12: DrawingErrorKind.SvgTextProjection, 13: DrawingErrorKind.SvgParse, 14: DrawingErrorKind.PixmapAllocation, 15: DrawingErrorKind.PngEncode, 16: DrawingErrorKind.PropertyString, 17: DrawingErrorKind.VariationArray, 18: DrawingErrorKind.VariationIndex, 19: DrawingErrorKind.DataFieldDouble})¶
- exception cosmolkit.DrawingWriteError(*args, **kwargs)¶
Failure in the depict domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
DrawingWriteError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property path: pathlib.Path | None¶
Filesystem path involved in the operation. Applies to DrawingWriteError.Io. None when this payload is absent.
- property source: DrawingError | IoError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: DrawingWriteErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.DrawingWriteErrorKind(value)¶
Discriminants of DrawingWriteErrorKind.
Members:
Drawing,Io, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Drawing = DrawingWriteErrorKind.Drawing¶
- Io = DrawingWriteErrorKind.Io¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Drawing': DrawingWriteErrorKind.Drawing, 'Io': DrawingWriteErrorKind.Io})¶
- values = mappingproxy({0: DrawingWriteErrorKind.Drawing, 1: DrawingWriteErrorKind.Io})¶
- class cosmolkit.Element¶
Chemical element identified by atomic number, with value equality and hashing. DUMMY represents atomic number zero. Use from_symbol or from_atomic_number to look up a value; an unrecognized symbol or number returns None.
Members (123)
- AC = Element(symbol="Ac", atomic_number=89)¶
- AG = Element(symbol="Ag", atomic_number=47)¶
- AL = Element(symbol="Al", atomic_number=13)¶
- AM = Element(symbol="Am", atomic_number=95)¶
- AR = Element(symbol="Ar", atomic_number=18)¶
- AS = Element(symbol="As", atomic_number=33)¶
- AT = Element(symbol="At", atomic_number=85)¶
- AU = Element(symbol="Au", atomic_number=79)¶
- B = Element(symbol="B", atomic_number=5)¶
- BA = Element(symbol="Ba", atomic_number=56)¶
- BE = Element(symbol="Be", atomic_number=4)¶
- BH = Element(symbol="Bh", atomic_number=107)¶
- BI = Element(symbol="Bi", atomic_number=83)¶
- BK = Element(symbol="Bk", atomic_number=97)¶
- BR = Element(symbol="Br", atomic_number=35)¶
- C = Element(symbol="C", atomic_number=6)¶
- CA = Element(symbol="Ca", atomic_number=20)¶
- CD = Element(symbol="Cd", atomic_number=48)¶
- CE = Element(symbol="Ce", atomic_number=58)¶
- CF = Element(symbol="Cf", atomic_number=98)¶
- CL = Element(symbol="Cl", atomic_number=17)¶
- CM = Element(symbol="Cm", atomic_number=96)¶
- CN = Element(symbol="Cn", atomic_number=112)¶
- CO = Element(symbol="Co", atomic_number=27)¶
- CR = Element(symbol="Cr", atomic_number=24)¶
- CS = Element(symbol="Cs", atomic_number=55)¶
- CU = Element(symbol="Cu", atomic_number=29)¶
- DB = Element(symbol="Db", atomic_number=105)¶
- DS = Element(symbol="Ds", atomic_number=110)¶
- DUMMY = Element(symbol="*", atomic_number=0)¶
- DY = Element(symbol="Dy", atomic_number=66)¶
- ER = Element(symbol="Er", atomic_number=68)¶
- ES = Element(symbol="Es", atomic_number=99)¶
- EU = Element(symbol="Eu", atomic_number=63)¶
- F = Element(symbol="F", atomic_number=9)¶
- FE = Element(symbol="Fe", atomic_number=26)¶
- FL = Element(symbol="Fl", atomic_number=114)¶
- FM = Element(symbol="Fm", atomic_number=100)¶
- FR = Element(symbol="Fr", atomic_number=87)¶
- GA = Element(symbol="Ga", atomic_number=31)¶
- GD = Element(symbol="Gd", atomic_number=64)¶
- GE = Element(symbol="Ge", atomic_number=32)¶
- H = Element(symbol="H", atomic_number=1)¶
- HE = Element(symbol="He", atomic_number=2)¶
- HF = Element(symbol="Hf", atomic_number=72)¶
- HG = Element(symbol="Hg", atomic_number=80)¶
- HO = Element(symbol="Ho", atomic_number=67)¶
- HS = Element(symbol="Hs", atomic_number=108)¶
- I = Element(symbol="I", atomic_number=53)¶
- IN = Element(symbol="In", atomic_number=49)¶
- IR = Element(symbol="Ir", atomic_number=77)¶
- K = Element(symbol="K", atomic_number=19)¶
- KR = Element(symbol="Kr", atomic_number=36)¶
- LA = Element(symbol="La", atomic_number=57)¶
- LI = Element(symbol="Li", atomic_number=3)¶
- LR = Element(symbol="Lr", atomic_number=103)¶
- LU = Element(symbol="Lu", atomic_number=71)¶
- LV = Element(symbol="Lv", atomic_number=116)¶
- MC = Element(symbol="Mc", atomic_number=115)¶
- MD = Element(symbol="Md", atomic_number=101)¶
- MG = Element(symbol="Mg", atomic_number=12)¶
- MN = Element(symbol="Mn", atomic_number=25)¶
- MO = Element(symbol="Mo", atomic_number=42)¶
- MT = Element(symbol="Mt", atomic_number=109)¶
- N = Element(symbol="N", atomic_number=7)¶
- NA = Element(symbol="Na", atomic_number=11)¶
- NB = Element(symbol="Nb", atomic_number=41)¶
- ND = Element(symbol="Nd", atomic_number=60)¶
- NE = Element(symbol="Ne", atomic_number=10)¶
- NH = Element(symbol="Nh", atomic_number=113)¶
- NI = Element(symbol="Ni", atomic_number=28)¶
- NO = Element(symbol="No", atomic_number=102)¶
- NP = Element(symbol="Np", atomic_number=93)¶
- O = Element(symbol="O", atomic_number=8)¶
- OG = Element(symbol="Og", atomic_number=118)¶
- OS = Element(symbol="Os", atomic_number=76)¶
- P = Element(symbol="P", atomic_number=15)¶
- PA = Element(symbol="Pa", atomic_number=91)¶
- PB = Element(symbol="Pb", atomic_number=82)¶
- PD = Element(symbol="Pd", atomic_number=46)¶
- PM = Element(symbol="Pm", atomic_number=61)¶
- PO = Element(symbol="Po", atomic_number=84)¶
- PR = Element(symbol="Pr", atomic_number=59)¶
- PT = Element(symbol="Pt", atomic_number=78)¶
- PU = Element(symbol="Pu", atomic_number=94)¶
- RA = Element(symbol="Ra", atomic_number=88)¶
- RB = Element(symbol="Rb", atomic_number=37)¶
- RE = Element(symbol="Re", atomic_number=75)¶
- RF = Element(symbol="Rf", atomic_number=104)¶
- RG = Element(symbol="Rg", atomic_number=111)¶
- RH = Element(symbol="Rh", atomic_number=45)¶
- RN = Element(symbol="Rn", atomic_number=86)¶
- RU = Element(symbol="Ru", atomic_number=44)¶
- S = Element(symbol="S", atomic_number=16)¶
- SB = Element(symbol="Sb", atomic_number=51)¶
- SC = Element(symbol="Sc", atomic_number=21)¶
- SE = Element(symbol="Se", atomic_number=34)¶
- SG = Element(symbol="Sg", atomic_number=106)¶
- SI = Element(symbol="Si", atomic_number=14)¶
- SM = Element(symbol="Sm", atomic_number=62)¶
- SN = Element(symbol="Sn", atomic_number=50)¶
- SR = Element(symbol="Sr", atomic_number=38)¶
- TA = Element(symbol="Ta", atomic_number=73)¶
- TB = Element(symbol="Tb", atomic_number=65)¶
- TC = Element(symbol="Tc", atomic_number=43)¶
- TE = Element(symbol="Te", atomic_number=52)¶
- TH = Element(symbol="Th", atomic_number=90)¶
- TI = Element(symbol="Ti", atomic_number=22)¶
- TL = Element(symbol="Tl", atomic_number=81)¶
- TM = Element(symbol="Tm", atomic_number=69)¶
- TS = Element(symbol="Ts", atomic_number=117)¶
- U = Element(symbol="U", atomic_number=92)¶
- V = Element(symbol="V", atomic_number=23)¶
- W = Element(symbol="W", atomic_number=74)¶
- XE = Element(symbol="Xe", atomic_number=54)¶
- Y = Element(symbol="Y", atomic_number=39)¶
- YB = Element(symbol="Yb", atomic_number=70)¶
- ZN = Element(symbol="Zn", atomic_number=30)¶
- ZR = Element(symbol="Zr", atomic_number=40)¶
- atomic_number: int¶
Atomic number (proton count), or zero for DUMMY.
- static from_atomic_number(atomic_number) Element | None¶
Look up an atomic number, including zero for DUMMY; return None if it is unknown.
- static from_symbol(symbol) Element | None¶
Look up a case-sensitive element symbol such as “Cl”; return None if it is unknown.
- symbol: str¶
Canonical chemical symbol, preserving element-name capitalization.
- class cosmolkit.ElementInfo¶
Readonly periodic-table metadata for an element, including native valence and radius data.
Members (8)
- atomic_number: int¶
Atomic number of the element.
- atomic_weight: float¶
Standard atomic weight from the native periodic table.
- outer_electrons: int¶
Number of outer-shell electrons in the native periodic table.
- period: int¶
Periodic-table period number.
- rb0: float¶
RDKit-defined Rb0 bond radius in angstroms.
- symbol: str¶
Conventional chemical element symbol.
- class cosmolkit.EmbedFailureCause(value)¶
Typed EmbedFailureCause values corresponding to the Rust enum.
Members:
InitialCoords,FirstMinimization,CheckTetrahedralCenters,CheckChiralCenters,MinimizeFourthDimension,EtkMinimization,FinalChiralBounds,FinalCenterInVolume,LinearDoubleBond,BadDoubleBondStereo,CheckChiralCenters2,ExceededTimeout,Minimization,KtermViolation,Clash,EndOfEnum, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (19)
- BadDoubleBondStereo = EmbedFailureCause.BadDoubleBondStereo¶
- CheckChiralCenters = EmbedFailureCause.CheckChiralCenters¶
- CheckChiralCenters2 = EmbedFailureCause.CheckChiralCenters2¶
- CheckTetrahedralCenters = EmbedFailureCause.CheckTetrahedralCenters¶
- Clash = EmbedFailureCause.Clash¶
- EndOfEnum = EmbedFailureCause.EndOfEnum¶
- EtkMinimization = EmbedFailureCause.EtkMinimization¶
- ExceededTimeout = EmbedFailureCause.ExceededTimeout¶
- FinalCenterInVolume = EmbedFailureCause.FinalCenterInVolume¶
- FinalChiralBounds = EmbedFailureCause.FinalChiralBounds¶
- FirstMinimization = EmbedFailureCause.FirstMinimization¶
- InitialCoords = EmbedFailureCause.InitialCoords¶
- KtermViolation = EmbedFailureCause.KtermViolation¶
- LinearDoubleBond = EmbedFailureCause.LinearDoubleBond¶
- Minimization = EmbedFailureCause.Minimization¶
- MinimizeFourthDimension = EmbedFailureCause.MinimizeFourthDimension¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InitialCoords': EmbedFailureCause.InitialCoords, 'FirstMinimization': EmbedFailureCause.FirstMinimization, 'CheckTetrahedralCenters': EmbedFailureCause.CheckTetrahedralCenters, 'CheckChiralCenters': EmbedFailureCause.CheckChiralCenters, 'MinimizeFourthDimension': EmbedFailureCause.MinimizeFourthDimension, 'EtkMinimization': EmbedFailureCause.EtkMinimization, 'FinalChiralBounds': EmbedFailureCause.FinalChiralBounds, 'FinalCenterInVolume': EmbedFailureCause.FinalCenterInVolume, 'LinearDoubleBond': EmbedFailureCause.LinearDoubleBond, 'BadDoubleBondStereo': EmbedFailureCause.BadDoubleBondStereo, 'CheckChiralCenters2': EmbedFailureCause.CheckChiralCenters2, 'ExceededTimeout': EmbedFailureCause.ExceededTimeout, 'Minimization': EmbedFailureCause.Minimization, 'KtermViolation': EmbedFailureCause.KtermViolation, 'Clash': EmbedFailureCause.Clash, 'EndOfEnum': EmbedFailureCause.EndOfEnum})¶
- values = mappingproxy({0: EmbedFailureCause.InitialCoords, 1: EmbedFailureCause.FirstMinimization, 2: EmbedFailureCause.CheckTetrahedralCenters, 3: EmbedFailureCause.CheckChiralCenters, 4: EmbedFailureCause.MinimizeFourthDimension, 5: EmbedFailureCause.EtkMinimization, 6: EmbedFailureCause.FinalChiralBounds, 7: EmbedFailureCause.FinalCenterInVolume, 8: EmbedFailureCause.LinearDoubleBond, 9: EmbedFailureCause.BadDoubleBondStereo, 10: EmbedFailureCause.CheckChiralCenters2, 11: EmbedFailureCause.ExceededTimeout, 12: EmbedFailureCause.Minimization, 13: EmbedFailureCause.KtermViolation, 14: EmbedFailureCause.Clash, 15: EmbedFailureCause.EndOfEnum})¶
- exception cosmolkit.EmbedFailureCountError(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
EmbedFailureCountError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property available: int | None¶
Readonly available payload of the MissingCounter error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property index: int | None¶
Readonly index payload of the MissingCounter error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: EmbedFailureCountErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.EmbedFailureCountErrorKind(value)¶
Discriminants of EmbedFailureCountErrorKind.
Members:
InvalidCause,MissingCounter, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- InvalidCause = EmbedFailureCountErrorKind.InvalidCause¶
- MissingCounter = EmbedFailureCountErrorKind.MissingCounter¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidCause': EmbedFailureCountErrorKind.InvalidCause, 'MissingCounter': EmbedFailureCountErrorKind.MissingCounter})¶
- values = mappingproxy({0: EmbedFailureCountErrorKind.InvalidCause, 1: EmbedFailureCountErrorKind.MissingCounter})¶
- class cosmolkit.EmbedMoleculeResult(molecule, conf_id, params, termination=Ellipsis)¶
Single-conformer embedding result retaining the output molecule, optional generated ID and execution diagnostics.
Members (8)
- conf_id: int | None¶
Generated conformer identifier, or None when no conformer was generated.
- failure_count(cause) int | None¶
Return the count for one failure cause, or None when tracking was disabled; invalid causes raise EmbedFailureCountError.
- failure_counts: tuple[int, ...] | None¶
Readonly counts in EmbedFailureCause order, or None when tracking was disabled.
- failures_tracked: bool¶
Whether failure-stage counters were enabled for this run.
- molecule: Molecule¶
Output molecule as a copy-on-write value; editing it does not alter this result.
- ok: bool¶
Whether a conformer identifier was produced by this single-conformer run.
- params: EmbedParams¶
Independent configuration value carrying this run’s diagnostics; modifying it does not change the result.
- termination: EmbedTermination¶
completed, timed out or interrupted; inspect generated IDs separately.
- Type:
Reason embedding stopped
- class cosmolkit.EmbedMultipleConfsResult(molecule, conf_ids, requested_num_confs, params, termination=Ellipsis)¶
Multi-conformer embedding result retaining successful IDs, the requested count and execution diagnostics.
Members (9)
- conf_ids: list[int]¶
Identifiers of successfully generated conformers; failed attempts are not conformer IDs.
- failure_count(cause) int | None¶
Return the count for one failure cause, or None when tracking was disabled; invalid causes raise EmbedFailureCountError.
- failure_counts: tuple[int, ...] | None¶
Readonly counts in EmbedFailureCause order, or None when tracking was disabled.
- failures_tracked: bool¶
Whether failure-stage counters were enabled for this run.
- generated_count: int¶
Number of successfully generated conformer IDs, not the number requested or attempted.
- molecule: Molecule¶
Output molecule as a copy-on-write value; editing it does not alter this result.
- params: EmbedParams¶
Independent configuration value carrying this run’s diagnostics; modifying it does not change the result.
- requested_num_confs: int¶
Number of conformers requested, which may exceed the generated count after pruning or failure.
- termination: EmbedTermination¶
completed, timed out or interrupted; inspect generated IDs separately.
- Type:
Reason embedding stopped
- class cosmolkit.EmbedParams(*, max_iterations=Ellipsis, num_threads=Ellipsis, random_seed=Ellipsis, clear_conformers=Ellipsis, use_random_coords=Ellipsis, box_size_mult=Ellipsis, rand_neg_eig=Ellipsis, num_zero_fail=Ellipsis, optimizer_force_tol=Ellipsis, ignore_smoothing_failures=Ellipsis, enforce_chirality=Ellipsis, use_exp_torsion_angle_prefs=Ellipsis, use_basic_knowledge=Ellipsis, verbose=Ellipsis, basin_thresh=Ellipsis, prune_rms_thresh=Ellipsis, only_heavy_atoms_for_rms=Ellipsis, et_version=Ellipsis, embed_fragments_separately=Ellipsis, use_small_ring_torsions=Ellipsis, use_macrocycle_torsions=Ellipsis, use_macrocycle14config=Ellipsis, timeout=Ellipsis, force_trans_amides=Ellipsis, use_symmetry_for_pruning=Ellipsis, bounds_mat_force_scaling=Ellipsis, track_failures=Ellipsis, enable_sequential_random_seeds=Ellipsis, symmetrize_conjugated_terminal_groups_for_pruning=Ellipsis, coord_map=Ellipsis, cpci=Ellipsis)¶
Distance-geometry embedding options with native presets and optional coordinate constraints. Set fields before execution; result objects carry execution diagnostics separately.
Members (43)
- basin_thresh: float¶
Basin threshold used by the distance-geometry force field.
- bounds_mat_force_scaling: float¶
Scale the bounds-matrix contribution to the embedding force field.
- box_size_mult: float¶
Random-coordinate box scaling; negative values specify a fixed box side length by magnitude.
- clear_conformers: bool¶
Remove existing conformers from the output before adding generated conformers.
- coord_map: collections.abc.Mapping[int, tuple[float, ...]] | None¶
Readonly atom-index to three-dimensional coordinate constraints, or None. Replace the whole field to edit.
- cpci: collections.abc.Mapping[tuple[int, int], float] | None¶
Readonly atom-pair to custom Coulomb-like interaction strengths, or None. Replace the whole field to edit.
- static dg() EmbedParams¶
Create parameters using the native dg embedding preset; subsequent field edits affect this configuration only.
- embed_fragments_separately: bool¶
Embed disconnected molecular fragments separately.
- enable_sequential_random_seeds: bool¶
Advance seeds sequentially across conformer generation attempts.
- enforce_chirality: bool¶
Enforce the molecule’s specified chirality during embedding.
- et_version: int¶
Experimental torsion parameter-set version, not the ETKDG preset number.
- static etdg() EmbedParams¶
Create parameters using the native etdg embedding preset; subsequent field edits affect this configuration only.
- static etdg_v2() EmbedParams¶
Create parameters using the native etdg_v2 embedding preset; subsequent field edits affect this configuration only.
- static etkdg() EmbedParams¶
Create parameters using the native etkdg embedding preset; subsequent field edits affect this configuration only.
- static etkdg_v2() EmbedParams¶
Create parameters using the native etkdg_v2 embedding preset; subsequent field edits affect this configuration only.
- static etkdg_v3() EmbedParams¶
Create parameters using the native etkdg_v3 embedding preset; subsequent field edits affect this configuration only.
- failures: list[int]¶
Copy of recorded failure-stage counters; execution results also expose failure_counts directly.
- force_trans_amides: bool¶
Favor trans amide conformations during embedding.
- ignore_smoothing_failures: bool¶
Continue embedding when triangle smoothing fails.
- static kdg() EmbedParams¶
Create parameters using the native kdg embedding preset; subsequent field edits affect this configuration only.
- max_iterations: int¶
Maximum embedding attempts per conformer; zero selects the algorithm’s automatic limit.
- static new() EmbedParams¶
Create distance-geometry parameters using the native constructor defaults.
- num_threads: int¶
Number of embedding threads; zero requests the available hardware threads.
- num_zero_fail: int¶
Number of zero eigenvalues at which embedding is rejected.
- only_heavy_atoms_for_rms: bool¶
Use only heavy atoms when computing pruning RMS differences.
- optimizer_force_tol: float¶
Force convergence tolerance for distance-geometry optimization.
- prune_rms_thresh: float¶
RMS threshold for pruning similar conformers; a negative value disables pruning.
- rand_neg_eig: bool¶
Use random coordinates for components associated with negative eigenvalues.
- random_seed: int¶
Random-number seed; a negative value requests an unseeded run.
- static sr_etkdg_v3() EmbedParams¶
Create parameters using the native sr_etkdg_v3 embedding preset; subsequent field edits affect this configuration only.
- symmetrize_conjugated_terminal_groups_for_pruning: bool¶
Treat conjugated terminal groups symmetrically during RMS pruning.
- timeout: int¶
Embedding timeout in seconds; zero disables the timeout.
- to_json() str¶
Serialize the native JSON-supported embedding options; this is not a complete execution-state archive.
- track_failures: bool¶
Collect counts of failed embedding stages in the returned diagnostics.
- use_basic_knowledge: bool¶
Apply basic geometric knowledge, including preferred planar arrangements.
- use_exp_torsion_angle_prefs: bool¶
Apply experimental torsion-angle preferences.
- use_macrocycle14config: bool¶
Apply macrocycle-specific 1-4 distance-bound treatment.
- use_macrocycle_torsions: bool¶
Include macrocycle torsion preferences.
- use_random_coords: bool¶
Start from random Cartesian coordinates instead of distance-matrix eigenvectors.
- use_small_ring_torsions: bool¶
Include small-ring torsion preferences.
- use_symmetry_for_pruning: bool¶
Account for molecular symmetry when pruning similar conformers.
- verbose: bool¶
Enable verbose embedding diagnostics.
- with_json(json) EmbedParams¶
Return an independent configuration updated from JSON using the native parameter parser.
- exception cosmolkit.EmbedSeedError(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
EmbedSeedError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property index: int | None¶
Readonly index payload of the ResultInvariant error variant; None for other variants.
- property seed: int¶
Random seed associated with the failed embedding seed validation.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: int | None¶
Readonly value payload of the ResultInvariant error variant; None for other variants.
- property variant: EmbedSeedErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.EmbedSeedErrorKind(value)¶
Discriminants of EmbedSeedErrorKind.
Members:
InvalidRandomSeed,ResultInvariant, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- InvalidRandomSeed = EmbedSeedErrorKind.InvalidRandomSeed¶
- ResultInvariant = EmbedSeedErrorKind.ResultInvariant¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidRandomSeed': EmbedSeedErrorKind.InvalidRandomSeed, 'ResultInvariant': EmbedSeedErrorKind.ResultInvariant})¶
- values = mappingproxy({0: EmbedSeedErrorKind.InvalidRandomSeed, 1: EmbedSeedErrorKind.ResultInvariant})¶
- class cosmolkit.EmbedTermination(value)¶
Typed EmbedTermination values corresponding to the Rust enum.
Members:
Completed,TimedOut,Interrupted, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (6)
- Completed = EmbedTermination.Completed¶
- Interrupted = EmbedTermination.Interrupted¶
- TimedOut = EmbedTermination.TimedOut¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Completed': EmbedTermination.Completed, 'TimedOut': EmbedTermination.TimedOut, 'Interrupted': EmbedTermination.Interrupted})¶
- values = mappingproxy({0: EmbedTermination.Completed, 1: EmbedTermination.TimedOut, 2: EmbedTermination.Interrupted})¶
- class cosmolkit.EntityKind(value)¶
Typed EntityKind values corresponding to the Rust enum.
Members:
Unknown,Polymer,NonPolymer,Branched,Water, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (8)
- Branched = EntityKind.Branched¶
- NonPolymer = EntityKind.NonPolymer¶
- Polymer = EntityKind.Polymer¶
- Unknown = EntityKind.Unknown¶
- Water = EntityKind.Water¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Unknown': EntityKind.Unknown, 'Polymer': EntityKind.Polymer, 'NonPolymer': EntityKind.NonPolymer, 'Branched': EntityKind.Branched, 'Water': EntityKind.Water})¶
- values = mappingproxy({0: EntityKind.Unknown, 1: EntityKind.Polymer, 2: EntityKind.NonPolymer, 3: EntityKind.Branched, 4: EntityKind.Water})¶
- class cosmolkit.EntitySourceIds(source_entity_id)¶
Entity identifier retained from the source structure file.
Members (1)
- source_entity_id: str¶
Entity identifier used by the original structure file.
- exception cosmolkit.EnumerationError(*args, **kwargs)¶
Failure in the stereo domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
EnumerationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (21)
- property atom: int | None¶
Readonly atom payload of the InvalidFlipperAtom error variant; None for other variants.
- property atom_property: AtomPropertyError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.AtomProperty; None when unavailable.
- Type:
{“role”
- property bit_count: int | None¶
Readonly bit_count payload of the RandomBitsSource error variant; None for other variants.
- property bond: int | None¶
Readonly bond payload of the InvalidFlipperBond error variant; None for other variants.
- property bond_property: BondValueError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.BondProperty; None when unavailable.
- Type:
{“role”
- property coordinates: CoordinateValidationError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.Coordinates; None when unavailable.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property double_bond: DoubleBondStereoError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.DoubleBond; None when unavailable.
- Type:
{“role”
- property embedding: GenerationError | None¶
“error_payload”} Structured GenerationError payload of EnumerationError.Embedding; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property hydrogens: HydrogenError | None¶
“error_payload”} Hydrogen count or hydrogen-related payload reported by the native check. Applies to EnumerationError.Hydrogens. None when this payload is absent.
- Type:
{“role”
- property message: str | None¶
Readonly message payload of the RandomBitsSource error variant; None for other variants.
- property molecule_property: MoleculePropertyError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.MoleculeProperty; None when unavailable.
- Type:
{“role”
- property potential_stereo: PotentialStereoError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.PotentialStereo; None when unavailable.
- Type:
{“role”
- property rings: RingFindingError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.Rings; None when unavailable.
- Type:
{“role”
- property smiles_write: SmilesParseError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.SmilesWrite; None when unavailable.
- Type:
{“role”
- property source: StereoGroupError | TopologyEditError | CoordinateValidationError | AtomPropertyError | BondValueError | MoleculePropertyError | PropertyIntReadError | PropertyULongReadError | PropertyUIntReadError | PropertyValueError | RequiredPropertyStringError | PropertyStringError | LegacyStereoError | PotentialStereoError | ParserStereoOrderError | StereoOrderError | SmilesStereoError | AtropisomerError | RingFindingError | ParserCarrierError | KekulizeError | SanitizeError | HydrogenError | ValenceError | ConjugationError | HybridizationError | TopologyValidationError | TemplateAttachmentOrderError | MappingValidationError | CanonicalRankError | DoubleBondStereoError | BoundsMatrixError | UffBoundsError | MatrixError | ForceFieldKernelError | UffInversionContributionError | CxQueryLoweringError | QueryGraphError | ThreadCountError | MoleculeFragmentsFailure | UffBuilderError | IoError | PoisonError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stereo: LegacyStereoError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.Stereo; None when unavailable.
- Type:
{“role”
- property topology: TopologyValidationError | None¶
“error_payload”} Structured native error payload. Present for EnumerationError.Topology; None when unavailable.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of EnumerationError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: EnumerationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.EnumerationErrorKind(value)¶
Discriminants of EnumerationErrorKind.
Members:
Valence,Rings,Stereo,DoubleBond,SmilesWrite,PotentialStereo,Hydrogens,Embedding,AtomProperty,BondProperty,MoleculeProperty,Topology,Coordinates,InvalidFlipperAtom,InvalidFlipperBond,RandomBitsSource,RandomSourcePoisoned,EmbeddingCoordinates, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (21)
- AtomProperty = EnumerationErrorKind.AtomProperty¶
- BondProperty = EnumerationErrorKind.BondProperty¶
- Coordinates = EnumerationErrorKind.Coordinates¶
- DoubleBond = EnumerationErrorKind.DoubleBond¶
- Embedding = EnumerationErrorKind.Embedding¶
- EmbeddingCoordinates = EnumerationErrorKind.EmbeddingCoordinates¶
- Hydrogens = EnumerationErrorKind.Hydrogens¶
- InvalidFlipperAtom = EnumerationErrorKind.InvalidFlipperAtom¶
- InvalidFlipperBond = EnumerationErrorKind.InvalidFlipperBond¶
- MoleculeProperty = EnumerationErrorKind.MoleculeProperty¶
- PotentialStereo = EnumerationErrorKind.PotentialStereo¶
- RandomBitsSource = EnumerationErrorKind.RandomBitsSource¶
- RandomSourcePoisoned = EnumerationErrorKind.RandomSourcePoisoned¶
- Rings = EnumerationErrorKind.Rings¶
- SmilesWrite = EnumerationErrorKind.SmilesWrite¶
- Stereo = EnumerationErrorKind.Stereo¶
- Topology = EnumerationErrorKind.Topology¶
- Valence = EnumerationErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Valence': EnumerationErrorKind.Valence, 'Rings': EnumerationErrorKind.Rings, 'Stereo': EnumerationErrorKind.Stereo, 'DoubleBond': EnumerationErrorKind.DoubleBond, 'SmilesWrite': EnumerationErrorKind.SmilesWrite, 'PotentialStereo': EnumerationErrorKind.PotentialStereo, 'Hydrogens': EnumerationErrorKind.Hydrogens, 'Embedding': EnumerationErrorKind.Embedding, 'AtomProperty': EnumerationErrorKind.AtomProperty, 'BondProperty': EnumerationErrorKind.BondProperty, 'MoleculeProperty': EnumerationErrorKind.MoleculeProperty, 'Topology': EnumerationErrorKind.Topology, 'Coordinates': EnumerationErrorKind.Coordinates, 'InvalidFlipperAtom': EnumerationErrorKind.InvalidFlipperAtom, 'InvalidFlipperBond': EnumerationErrorKind.InvalidFlipperBond, 'RandomBitsSource': EnumerationErrorKind.RandomBitsSource, 'RandomSourcePoisoned': EnumerationErrorKind.RandomSourcePoisoned, 'EmbeddingCoordinates': EnumerationErrorKind.EmbeddingCoordinates})¶
- values = mappingproxy({0: EnumerationErrorKind.Valence, 1: EnumerationErrorKind.Rings, 2: EnumerationErrorKind.Stereo, 3: EnumerationErrorKind.DoubleBond, 4: EnumerationErrorKind.SmilesWrite, 5: EnumerationErrorKind.PotentialStereo, 6: EnumerationErrorKind.Hydrogens, 7: EnumerationErrorKind.Embedding, 8: EnumerationErrorKind.AtomProperty, 9: EnumerationErrorKind.BondProperty, 10: EnumerationErrorKind.MoleculeProperty, 11: EnumerationErrorKind.Topology, 12: EnumerationErrorKind.Coordinates, 13: EnumerationErrorKind.InvalidFlipperAtom, 14: EnumerationErrorKind.InvalidFlipperBond, 15: EnumerationErrorKind.RandomBitsSource, 16: EnumerationErrorKind.RandomSourcePoisoned, 17: EnumerationErrorKind.EmbeddingCoordinates})¶
- exception cosmolkit.EnumerationRunError(*args, **kwargs)¶
EnumerationRunError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: EnumerationError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- exception cosmolkit.ExternalError(*args, **kwargs)¶
ExternalError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: IoError | Utf8Error | FromUtf8Error | ExternalError | None¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- class cosmolkit.FeatureSpec¶
Read-only public feature declaration from the compiled Rust facade.
- class cosmolkit.FeatureSpecIter¶
Iterator over the compiled feature declarations in native declaration order.
- class cosmolkit.Fingerprint¶
Immutable bit fingerprint with an explicit bit-index capacity. on_bits() returns the set positions; to_numpy() expands bits to an independent uint8 array. Similarity and bit operations use native values.
Members (6)
- static from_on_bits(n_bits, on_bits) Fingerprint¶
Construct a bit fingerprint of n_bits positions from the supplied set-bit indices; invalid indices raise FingerprintError.
- get_bit(bit) bool¶
Read the bit at a zero-based index; out-of-range indices raise FingerprintError.
- n_bits: int¶
Size of the fingerprint’s bit index space, not the number of set bits.
- tanimoto(other) float¶
Calculate Tanimoto similarity to another fingerprint using the native size and empty-fingerprint rules.
- to_numpy() numpy.ndarray[tuple[int], numpy.dtype[numpy.uint8]]¶
Return an independent uint8 array with one entry per fingerprint bit. Shape is (n_bits,); entries are 0 or 1 in increasing bit-index order.
- class cosmolkit.FingerprintAdditionalOutput¶
Mutable native fingerprint provenance collector. Allocate the desired outputs before passing it to fingerprint generation.
Members (12)
- allocate_atom_counts() None¶
Enable collection of per-atom contribution counts.
- allocate_atom_to_bits() None¶
Enable collection of contributing bit identifiers per atom.
- allocate_atoms_per_bit() None¶
Enable collection of participating atom sets per bit.
- allocate_bit_info_map() None¶
Enable collection of generator-specific bit provenance tuples.
- allocate_bit_paths() None¶
Enable collection of contributing paths per bit.
- atom_to_bits: list[list[int]] | None¶
Contributing fingerprint bit identifiers for each atom, or None when not collected.
- atoms_per_bit: dict[int, list[list[int]]] | None¶
Bit identifiers mapped to participating atom sets, or None when not collected.
- bit_info_map: dict[int, list[tuple[int, int]]] | None¶
Bit identifiers mapped to native feature descriptors (center/radius or atom-pair endpoints, depending on the generator), or None when not collected.
- bit_paths: dict[int, list[list[int]]] | None¶
Bit identifiers mapped to contributing native paths, or None when not collected.
- static default() FingerprintAdditionalOutput¶
Create a collector using the native default allocation policy.
- static new() FingerprintAdditionalOutput¶
Create an empty additional-output collector; enable individual outputs before fingerprint generation.
- class cosmolkit.FingerprintBatch(values)¶
Ordered, immutable collection of optional Fingerprint values.
None retains a missing result at its original position. len() counts all records. Integer indexing returns a record; slices, index sequences and boolean masks return a new collection. Selections preserve order and duplicate indices.
Members (2)
- len: int¶
Number of records, including missing (None) records.
- to_numpy() numpy.ndarray[tuple[int, int], numpy.dtype[numpy.uint8]]¶
Return an independent uint8 matrix of shape (number_of_records, n_bits). Rows retain batch order; columns are increasing bit indices, containing 0 or 1. None rows and unequal widths raise FingerprintBatchError rather than silently dropping records or padding fingerprints.
- exception cosmolkit.FingerprintBatchError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
FingerprintBatchError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property actual: int | None¶
Readonly actual payload of the WidthMismatch error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the WidthMismatch error variant; None for other variants.
- property index: int¶
Zero-based row containing a missing fingerprint or incompatible width.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: FingerprintBatchErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.FingerprintBatchErrorKind(value)¶
Discriminants of FingerprintBatchErrorKind.
Members:
MissingRow,WidthMismatch, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- MissingRow = FingerprintBatchErrorKind.MissingRow¶
- WidthMismatch = FingerprintBatchErrorKind.WidthMismatch¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingRow': FingerprintBatchErrorKind.MissingRow, 'WidthMismatch': FingerprintBatchErrorKind.WidthMismatch})¶
- values = mappingproxy({0: FingerprintBatchErrorKind.MissingRow, 1: FingerprintBatchErrorKind.WidthMismatch})¶
- exception cosmolkit.FingerprintError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
FingerprintError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (13)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property factor: int | None¶
Readonly factor payload of the InvalidFoldFactor error variant; None for other variants.
- property index: int | None¶
Readonly index payload of the SparseIndexOutOfRange error variant; None for other variants.
- property left: int | None¶
Readonly left payload of the BitLengthMismatch error variant; None for other variants.
- property n_bits: int | None¶
Readonly n_bits payload of the InvalidFoldFactor error variant; None for other variants.
- property reason: str | None¶
Readonly reason payload of the InvalidArguments error variant; None for other variants.
- property right: int | None¶
Readonly right payload of the BitLengthMismatch error variant; None for other variants.
- property site: str | None¶
Readonly site payload of the UndefinedArithmetic error variant; None for other variants.
- property size: int | None¶
Readonly size payload of the SparseIndexOutOfRange error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: float | None¶
Readonly value payload of the RangeError error variant; None for other variants.
- property variant: FingerprintErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- property what: str | None¶
Readonly what payload of the PreconditionViolation error variant; None for other variants.
- class cosmolkit.FingerprintErrorKind(value)¶
Discriminants of FingerprintErrorKind.
Members:
EmptyFingerprint,Unsupported,SparseIndexOutOfRange,BitLengthMismatch,InvalidFoldFactor,RangeError,UndefinedArithmetic,PreconditionViolation,InvalidArguments, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (12)
- BitLengthMismatch = FingerprintErrorKind.BitLengthMismatch¶
- EmptyFingerprint = FingerprintErrorKind.EmptyFingerprint¶
- InvalidArguments = FingerprintErrorKind.InvalidArguments¶
- InvalidFoldFactor = FingerprintErrorKind.InvalidFoldFactor¶
- PreconditionViolation = FingerprintErrorKind.PreconditionViolation¶
- RangeError = FingerprintErrorKind.RangeError¶
- SparseIndexOutOfRange = FingerprintErrorKind.SparseIndexOutOfRange¶
- UndefinedArithmetic = FingerprintErrorKind.UndefinedArithmetic¶
- Unsupported = FingerprintErrorKind.Unsupported¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'EmptyFingerprint': FingerprintErrorKind.EmptyFingerprint, 'Unsupported': FingerprintErrorKind.Unsupported, 'SparseIndexOutOfRange': FingerprintErrorKind.SparseIndexOutOfRange, 'BitLengthMismatch': FingerprintErrorKind.BitLengthMismatch, 'InvalidFoldFactor': FingerprintErrorKind.InvalidFoldFactor, 'RangeError': FingerprintErrorKind.RangeError, 'UndefinedArithmetic': FingerprintErrorKind.UndefinedArithmetic, 'PreconditionViolation': FingerprintErrorKind.PreconditionViolation, 'InvalidArguments': FingerprintErrorKind.InvalidArguments})¶
- values = mappingproxy({0: FingerprintErrorKind.EmptyFingerprint, 1: FingerprintErrorKind.Unsupported, 2: FingerprintErrorKind.SparseIndexOutOfRange, 3: FingerprintErrorKind.BitLengthMismatch, 4: FingerprintErrorKind.InvalidFoldFactor, 5: FingerprintErrorKind.RangeError, 6: FingerprintErrorKind.UndefinedArithmetic, 7: FingerprintErrorKind.PreconditionViolation, 8: FingerprintErrorKind.InvalidArguments})¶
- exception cosmolkit.FingerprintJsonError(*args, **kwargs)¶
FingerprintJsonError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property component: str | None¶
Coordinate component involved in the failure. Applies to FingerprintJsonError.UnsupportedComponent. None when this payload is absent.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property invalid: str | None¶
Explanation of invalid fingerprint configuration; None for other variants.
- property source: SerdeJsonError | None¶
“error_source”} Actual underlying JSON parse error, identical to __cause__, or None.
- Type:
{“role”
- property source_type: str | None¶
Native source type reported by the failed conversion. Applies to FingerprintJsonError.UnsupportedComponent. None when this payload is absent.
- property variant: FingerprintJsonErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.FingerprintJsonErrorKind(value)¶
Discriminants of FingerprintJsonErrorKind.
Members:
Parse,Invalid,UnsupportedComponent, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Invalid = FingerprintJsonErrorKind.Invalid¶
- Parse = FingerprintJsonErrorKind.Parse¶
- UnsupportedComponent = FingerprintJsonErrorKind.UnsupportedComponent¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Parse': FingerprintJsonErrorKind.Parse, 'Invalid': FingerprintJsonErrorKind.Invalid, 'UnsupportedComponent': FingerprintJsonErrorKind.UnsupportedComponent})¶
- values = mappingproxy({0: FingerprintJsonErrorKind.Parse, 1: FingerprintJsonErrorKind.Invalid, 2: FingerprintJsonErrorKind.UnsupportedComponent})¶
- exception cosmolkit.FingerprintPreparationError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
FingerprintPreparationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: RingFindingError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: FingerprintPreparationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.FingerprintPreparationErrorKind(value)¶
Discriminants of FingerprintPreparationErrorKind.
Members:
MissingPreparedValence,RingPreparation, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- MissingPreparedValence = FingerprintPreparationErrorKind.MissingPreparedValence¶
- RingPreparation = FingerprintPreparationErrorKind.RingPreparation¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingPreparedValence': FingerprintPreparationErrorKind.MissingPreparedValence, 'RingPreparation': FingerprintPreparationErrorKind.RingPreparation})¶
- values = mappingproxy({0: FingerprintPreparationErrorKind.MissingPreparedValence, 1: FingerprintPreparationErrorKind.RingPreparation})¶
- exception cosmolkit.FingerprintWorkerError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
FingerprintWorkerError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: ThreadCountError | IoError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: FingerprintWorkerErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.FingerprintWorkerErrorKind(value)¶
Discriminants of FingerprintWorkerErrorKind.
Members:
ThreadCount,ThreadSpawn,Panic,Protocol, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (7)
- Panic = FingerprintWorkerErrorKind.Panic¶
- Protocol = FingerprintWorkerErrorKind.Protocol¶
- ThreadCount = FingerprintWorkerErrorKind.ThreadCount¶
- ThreadSpawn = FingerprintWorkerErrorKind.ThreadSpawn¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'ThreadCount': FingerprintWorkerErrorKind.ThreadCount, 'ThreadSpawn': FingerprintWorkerErrorKind.ThreadSpawn, 'Panic': FingerprintWorkerErrorKind.Panic, 'Protocol': FingerprintWorkerErrorKind.Protocol})¶
- values = mappingproxy({0: FingerprintWorkerErrorKind.ThreadCount, 1: FingerprintWorkerErrorKind.ThreadSpawn, 2: FingerprintWorkerErrorKind.Panic, 3: FingerprintWorkerErrorKind.Protocol})¶
- class cosmolkit.ForceFieldAngleConstraintParams(*, relative, min_angle_deg, max_angle_deg, force_constant)¶
Required angle restraint inputs; no implicit numerical defaults.
Members (4)
- class cosmolkit.ForceFieldAngleIndexArgument(value)¶
Typed ForceFieldAngleIndexArgument values corresponding to the Rust enum.
Members:
First,Second,Third, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (6)
- First = ForceFieldAngleIndexArgument.First¶
- Second = ForceFieldAngleIndexArgument.Second¶
- Third = ForceFieldAngleIndexArgument.Third¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'First': ForceFieldAngleIndexArgument.First, 'Second': ForceFieldAngleIndexArgument.Second, 'Third': ForceFieldAngleIndexArgument.Third})¶
- values = mappingproxy({0: ForceFieldAngleIndexArgument.First, 1: ForceFieldAngleIndexArgument.Second, 2: ForceFieldAngleIndexArgument.Third})¶
- class cosmolkit.ForceFieldAngleRangeBound(value)¶
Typed ForceFieldAngleRangeBound values corresponding to the Rust enum.
Members:
Minimum,Maximum, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (5)
- Maximum = ForceFieldAngleRangeBound.Maximum¶
- Minimum = ForceFieldAngleRangeBound.Minimum¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Minimum': ForceFieldAngleRangeBound.Minimum, 'Maximum': ForceFieldAngleRangeBound.Maximum})¶
- values = mappingproxy({0: ForceFieldAngleRangeBound.Minimum, 1: ForceFieldAngleRangeBound.Maximum})¶
- class cosmolkit.ForceFieldBondIndexArgument(value)¶
Typed ForceFieldBondIndexArgument values corresponding to the Rust enum.
Members:
First,Second, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (5)
- First = ForceFieldBondIndexArgument.First¶
- Second = ForceFieldBondIndexArgument.Second¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'First': ForceFieldBondIndexArgument.First, 'Second': ForceFieldBondIndexArgument.Second})¶
- values = mappingproxy({0: ForceFieldBondIndexArgument.First, 1: ForceFieldBondIndexArgument.Second})¶
- exception cosmolkit.ForceFieldConstructionError(*args, **kwargs)¶
Failure in the forcefield domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
ForceFieldConstructionError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: UffBuilderError | NonbondedAssemblyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: ForceFieldConstructionErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.ForceFieldConstructionErrorKind(value)¶
Discriminants of ForceFieldConstructionErrorKind.
Members:
Builder,Nonbonded, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Builder = ForceFieldConstructionErrorKind.Builder¶
- Nonbonded = ForceFieldConstructionErrorKind.Nonbonded¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Builder': ForceFieldConstructionErrorKind.Builder, 'Nonbonded': ForceFieldConstructionErrorKind.Nonbonded})¶
- values = mappingproxy({0: ForceFieldConstructionErrorKind.Builder, 1: ForceFieldConstructionErrorKind.Nonbonded})¶
- class cosmolkit.ForceFieldDistanceConstraintParams(*, relative, min_distance, max_distance, force_constant)¶
Required distance restraint inputs; no implicit numerical defaults.
Members (4)
- class cosmolkit.ForceFieldEnergyGradient¶
Energy and per-atom Cartesian gradient evaluated by a persistent native force field.
- exception cosmolkit.ForceFieldError(*args, **kwargs)¶
ForceFieldError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (8)
- property actual: int | None¶
Observed size or index reported by the native failure, or None when inapplicable.
- property atom_index: int | None¶
Atom index implicated in the failure, or None for failures without an atom.
- property component: int | None¶
Coordinate component implicated in the failure, or None when inapplicable.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property expected: int | None¶
Required size reported by the native failure, or None when inapplicable.
- property kind: MolecularForceFieldErrorKind¶
Typed native persistent-force-field failure category.
- property requested: int | None¶
Requested conformer identifier when relevant, otherwise None.
- property source: MmffMolPropertiesError | MmffBuilderError | UffParameterError | UffBuilderError | ForceFieldKernelError | None¶
“error_source”} Actual underlying exception, identical to __cause__.
- Type:
{“role”
- class cosmolkit.ForceFieldIndexArgument(value)¶
Typed ForceFieldIndexArgument values corresponding to the Rust enum.
Members:
I,J, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (5)
- I = ForceFieldIndexArgument.I¶
- J = ForceFieldIndexArgument.J¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'I': ForceFieldIndexArgument.I, 'J': ForceFieldIndexArgument.J})¶
- values = mappingproxy({0: ForceFieldIndexArgument.I, 1: ForceFieldIndexArgument.J})¶
- exception cosmolkit.ForceFieldKernelError(*args, **kwargs)¶
Failure in the forcefield domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
ForceFieldKernelError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (11)
- property argument: ForceFieldIndexArgument | ForceFieldBondIndexArgument | ForceFieldAngleIndexArgument | ForceFieldTorsionIndexArgument | None¶
“error_payload”} Argument rejected by the native operation. Applies to ForceFieldKernelError.IndexOutOfRange, ForceFieldKernelError.BondIndexOutOfRange, ForceFieldKernelError.AngleIndexOutOfRange, ForceFieldKernelError.TorsionIndexOutOfRange. None when this payload is absent.
- Type:
{“role”
- property bound: ForceFieldAngleRangeBound | None¶
“error_payload”} Bound involved in the failed constraint check. Applies to ForceFieldKernelError.AngleOutOfRange. None when this payload is absent.
- Type:
{“role”
- property buffer_len: int | None¶
Buffer length used by the failed range check. Applies to ForceFieldKernelError.TorsionAddressOutsideDefinedSource, ForceFieldKernelError.OopAddressOutsideDefinedSource. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property index: int | None¶
Index reported by the failing native check. Applies to ForceFieldKernelError.IndexOutOfRange, ForceFieldKernelError.BondIndexOutOfRange, ForceFieldKernelError.AngleIndexOutOfRange, ForceFieldKernelError.TorsionIndexOutOfRange, ForceFieldKernelError.BadFixedPoint, ForceFieldKernelError.OopAddressOutsideDefinedSource, ForceFieldKernelError.TorsionAddressOutsideDefinedSource. None when this payload is absent.
- property num_points: int | None¶
Readonly num_points payload of the PositionCountMismatch error variant; None for other variants.
- property order: int | None¶
Bond order associated with the failure. Present for ForceFieldKernelError.AngleBadOrder, ForceFieldKernelError.TorsionBadOrder; None when unavailable.
- property position_count: int | None¶
Readonly position_count payload of the PositionCountMismatch error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property upper_bound: int | None¶
Upper bound used by the failed range check. Applies to ForceFieldKernelError.IndexOutOfRange, ForceFieldKernelError.BadFixedPoint, ForceFieldKernelError.BondIndexOutOfRange, ForceFieldKernelError.AngleIndexOutOfRange, ForceFieldKernelError.TorsionIndexOutOfRange. None when this payload is absent.
- property variant: ForceFieldKernelErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.ForceFieldKernelErrorKind(value)¶
Discriminants of ForceFieldKernelErrorKind.
Members:
NoPoints,NoDistanceMatrix,MatrixSizeMismatch,NotInitialized,BadBounds,BadBondOrder,PositionCountMismatch,IndexOutOfRange,BondIndexOutOfRange,AngleDegeneratePoints,AngleIndexOutOfRange,AngleBadOrder,TorsionIndexOutOfRange,TorsionDegeneratePoints,TorsionBadHybridizations,TorsionBadOrder,AngleOutOfRange,AngleBoundsOrder,PackedAngleBoundsOrder,TorsionBoundsOrder,BadIndex,OptimizerBadTolerance,OptimizerBadDirection,BadFixedPoint,TransferPostcondition,OopParametersMissing,TorsionParametersOutsideDefinedSource,TorsionAddressOutsideDefinedSource,OopAddressOutsideDefinedSource, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (32)
- AngleBadOrder = ForceFieldKernelErrorKind.AngleBadOrder¶
- AngleBoundsOrder = ForceFieldKernelErrorKind.AngleBoundsOrder¶
- AngleDegeneratePoints = ForceFieldKernelErrorKind.AngleDegeneratePoints¶
- AngleIndexOutOfRange = ForceFieldKernelErrorKind.AngleIndexOutOfRange¶
- AngleOutOfRange = ForceFieldKernelErrorKind.AngleOutOfRange¶
- BadBondOrder = ForceFieldKernelErrorKind.BadBondOrder¶
- BadBounds = ForceFieldKernelErrorKind.BadBounds¶
- BadFixedPoint = ForceFieldKernelErrorKind.BadFixedPoint¶
- BadIndex = ForceFieldKernelErrorKind.BadIndex¶
- BondIndexOutOfRange = ForceFieldKernelErrorKind.BondIndexOutOfRange¶
- IndexOutOfRange = ForceFieldKernelErrorKind.IndexOutOfRange¶
- MatrixSizeMismatch = ForceFieldKernelErrorKind.MatrixSizeMismatch¶
- NoDistanceMatrix = ForceFieldKernelErrorKind.NoDistanceMatrix¶
- NoPoints = ForceFieldKernelErrorKind.NoPoints¶
- NotInitialized = ForceFieldKernelErrorKind.NotInitialized¶
- OopAddressOutsideDefinedSource = ForceFieldKernelErrorKind.OopAddressOutsideDefinedSource¶
- OopParametersMissing = ForceFieldKernelErrorKind.OopParametersMissing¶
- OptimizerBadDirection = ForceFieldKernelErrorKind.OptimizerBadDirection¶
- OptimizerBadTolerance = ForceFieldKernelErrorKind.OptimizerBadTolerance¶
- PackedAngleBoundsOrder = ForceFieldKernelErrorKind.PackedAngleBoundsOrder¶
- PositionCountMismatch = ForceFieldKernelErrorKind.PositionCountMismatch¶
- TorsionAddressOutsideDefinedSource = ForceFieldKernelErrorKind.TorsionAddressOutsideDefinedSource¶
- TorsionBadHybridizations = ForceFieldKernelErrorKind.TorsionBadHybridizations¶
- TorsionBadOrder = ForceFieldKernelErrorKind.TorsionBadOrder¶
- TorsionBoundsOrder = ForceFieldKernelErrorKind.TorsionBoundsOrder¶
- TorsionDegeneratePoints = ForceFieldKernelErrorKind.TorsionDegeneratePoints¶
- TorsionIndexOutOfRange = ForceFieldKernelErrorKind.TorsionIndexOutOfRange¶
- TorsionParametersOutsideDefinedSource = ForceFieldKernelErrorKind.TorsionParametersOutsideDefinedSource¶
- TransferPostcondition = ForceFieldKernelErrorKind.TransferPostcondition¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'NoPoints': ForceFieldKernelErrorKind.NoPoints, 'NoDistanceMatrix': ForceFieldKernelErrorKind.NoDistanceMatrix, 'MatrixSizeMismatch': ForceFieldKernelErrorKind.MatrixSizeMismatch, 'NotInitialized': ForceFieldKernelErrorKind.NotInitialized, 'BadBounds': ForceFieldKernelErrorKind.BadBounds, 'BadBondOrder': ForceFieldKernelErrorKind.BadBondOrder, 'PositionCountMismatch': ForceFieldKernelErrorKind.PositionCountMismatch, 'IndexOutOfRange': ForceFieldKernelErrorKind.IndexOutOfRange, 'BondIndexOutOfRange': ForceFieldKernelErrorKind.BondIndexOutOfRange, 'AngleDegeneratePoints': ForceFieldKernelErrorKind.AngleDegeneratePoints, 'AngleIndexOutOfRange': ForceFieldKernelErrorKind.AngleIndexOutOfRange, 'AngleBadOrder': ForceFieldKernelErrorKind.AngleBadOrder, 'TorsionIndexOutOfRange': ForceFieldKernelErrorKind.TorsionIndexOutOfRange, 'TorsionDegeneratePoints': ForceFieldKernelErrorKind.TorsionDegeneratePoints, 'TorsionBadHybridizations': ForceFieldKernelErrorKind.TorsionBadHybridizations, 'TorsionBadOrder': ForceFieldKernelErrorKind.TorsionBadOrder, 'AngleOutOfRange': ForceFieldKernelErrorKind.AngleOutOfRange, 'AngleBoundsOrder': ForceFieldKernelErrorKind.AngleBoundsOrder, 'PackedAngleBoundsOrder': ForceFieldKernelErrorKind.PackedAngleBoundsOrder, 'TorsionBoundsOrder': ForceFieldKernelErrorKind.TorsionBoundsOrder, 'BadIndex': ForceFieldKernelErrorKind.BadIndex, 'OptimizerBadTolerance': ForceFieldKernelErrorKind.OptimizerBadTolerance, 'OptimizerBadDirection': ForceFieldKernelErrorKind.OptimizerBadDirection, 'BadFixedPoint': ForceFieldKernelErrorKind.BadFixedPoint, 'TransferPostcondition': ForceFieldKernelErrorKind.TransferPostcondition, 'OopParametersMissing': ForceFieldKernelErrorKind.OopParametersMissing, 'TorsionParametersOutsideDefinedSource': ForceFieldKernelErrorKind.TorsionParametersOutsideDefinedSource, 'TorsionAddressOutsideDefinedSource': ForceFieldKernelErrorKind.TorsionAddressOutsideDefinedSource, 'OopAddressOutsideDefinedSource': ForceFieldKernelErrorKind.OopAddressOutsideDefinedSource})¶
- values = mappingproxy({0: ForceFieldKernelErrorKind.NoPoints, 1: ForceFieldKernelErrorKind.NoDistanceMatrix, 2: ForceFieldKernelErrorKind.MatrixSizeMismatch, 3: ForceFieldKernelErrorKind.NotInitialized, 4: ForceFieldKernelErrorKind.BadBounds, 5: ForceFieldKernelErrorKind.BadBondOrder, 6: ForceFieldKernelErrorKind.PositionCountMismatch, 7: ForceFieldKernelErrorKind.IndexOutOfRange, 8: ForceFieldKernelErrorKind.BondIndexOutOfRange, 9: ForceFieldKernelErrorKind.AngleDegeneratePoints, 10: ForceFieldKernelErrorKind.AngleIndexOutOfRange, 11: ForceFieldKernelErrorKind.AngleBadOrder, 12: ForceFieldKernelErrorKind.TorsionIndexOutOfRange, 13: ForceFieldKernelErrorKind.TorsionDegeneratePoints, 14: ForceFieldKernelErrorKind.TorsionBadHybridizations, 15: ForceFieldKernelErrorKind.TorsionBadOrder, 16: ForceFieldKernelErrorKind.AngleOutOfRange, 17: ForceFieldKernelErrorKind.AngleBoundsOrder, 18: ForceFieldKernelErrorKind.PackedAngleBoundsOrder, 19: ForceFieldKernelErrorKind.TorsionBoundsOrder, 20: ForceFieldKernelErrorKind.BadIndex, 21: ForceFieldKernelErrorKind.OptimizerBadTolerance, 22: ForceFieldKernelErrorKind.OptimizerBadDirection, 23: ForceFieldKernelErrorKind.BadFixedPoint, 24: ForceFieldKernelErrorKind.TransferPostcondition, 25: ForceFieldKernelErrorKind.OopParametersMissing, 26: ForceFieldKernelErrorKind.TorsionParametersOutsideDefinedSource, 27: ForceFieldKernelErrorKind.TorsionAddressOutsideDefinedSource, 28: ForceFieldKernelErrorKind.OopAddressOutsideDefinedSource})¶
- class cosmolkit.ForceFieldMinimizeOutcome¶
Persistent force-field minimization outcome with convergence, iteration count and final energy.
- class cosmolkit.ForceFieldMinimizeParams(*, max_iterations=Ellipsis, force_tolerance=Ellipsis, energy_tolerance=Ellipsis)¶
Iteration limit and numerical tolerances for persistent force-field minimization.
- class cosmolkit.ForceFieldPositionConstraintParams(*, max_displacement, force_constant)¶
Required position restraint inputs; no implicit numerical defaults.
- class cosmolkit.ForceFieldTorsionConstraintParams(*, relative, min_dihedral_deg, max_dihedral_deg, force_constant)¶
Required torsion restraint inputs; no implicit numerical defaults.
Members (4)
- force_constant: float¶
Force constant multiplying the restraint penalty.
- max_dihedral_deg: float¶
Upper dihedral-angle bound in degrees.
- min_dihedral_deg: float¶
Lower dihedral-angle bound in degrees.
- relative: bool¶
Interpret restraint bounds relative to the initial geometry instead of as absolute values.
- class cosmolkit.ForceFieldTorsionIndexArgument(value)¶
Typed ForceFieldTorsionIndexArgument values corresponding to the Rust enum.
Members:
First,Second,Third,Fourth, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (7)
- First = ForceFieldTorsionIndexArgument.First¶
- Fourth = ForceFieldTorsionIndexArgument.Fourth¶
- Second = ForceFieldTorsionIndexArgument.Second¶
- Third = ForceFieldTorsionIndexArgument.Third¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'First': ForceFieldTorsionIndexArgument.First, 'Second': ForceFieldTorsionIndexArgument.Second, 'Third': ForceFieldTorsionIndexArgument.Third, 'Fourth': ForceFieldTorsionIndexArgument.Fourth})¶
- values = mappingproxy({0: ForceFieldTorsionIndexArgument.First, 1: ForceFieldTorsionIndexArgument.Second, 2: ForceFieldTorsionIndexArgument.Third, 3: ForceFieldTorsionIndexArgument.Fourth})¶
- exception cosmolkit.FragmentCoordinateViewError(*args, **kwargs)¶
Failure in the forcefield domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
FragmentCoordinateViewError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property actual: int | None¶
Observed value reported by the native check. Applies to FragmentCoordinateViewError.KernelCoordinateRowCount, FragmentCoordinateViewError.KernelCoordinateRowWidth. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the KernelCoordinateRowCount error variant; None for other variants.
- property id: int¶
Identifier involved in the native failure. Applies to FragmentCoordinateViewError.SelectedConformerMissing, FragmentCoordinateViewError.SelectedConformerDuplicated, FragmentCoordinateViewError.KernelCoordinateRowCount, FragmentCoordinateViewError.KernelCoordinateRowWidth.
- property row: int | None¶
Readonly row payload of the KernelCoordinateRowWidth error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: FragmentCoordinateViewErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.FragmentCoordinateViewErrorKind(value)¶
Discriminants of FragmentCoordinateViewErrorKind.
Members:
SelectedConformerMissing,SelectedConformerDuplicated,KernelCoordinateRowCount,KernelCoordinateRowWidth, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (7)
- KernelCoordinateRowCount = FragmentCoordinateViewErrorKind.KernelCoordinateRowCount¶
- KernelCoordinateRowWidth = FragmentCoordinateViewErrorKind.KernelCoordinateRowWidth¶
- SelectedConformerDuplicated = FragmentCoordinateViewErrorKind.SelectedConformerDuplicated¶
- SelectedConformerMissing = FragmentCoordinateViewErrorKind.SelectedConformerMissing¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'SelectedConformerMissing': FragmentCoordinateViewErrorKind.SelectedConformerMissing, 'SelectedConformerDuplicated': FragmentCoordinateViewErrorKind.SelectedConformerDuplicated, 'KernelCoordinateRowCount': FragmentCoordinateViewErrorKind.KernelCoordinateRowCount, 'KernelCoordinateRowWidth': FragmentCoordinateViewErrorKind.KernelCoordinateRowWidth})¶
- values = mappingproxy({0: FragmentCoordinateViewErrorKind.SelectedConformerMissing, 1: FragmentCoordinateViewErrorKind.SelectedConformerDuplicated, 2: FragmentCoordinateViewErrorKind.KernelCoordinateRowCount, 3: FragmentCoordinateViewErrorKind.KernelCoordinateRowWidth})¶
- class cosmolkit.FragmentCxSmilesWriteParams(*, atoms, cx=Ellipsis, bonds=Ellipsis, atom_symbols=Ellipsis, bond_symbols=Ellipsis)¶
Fragment selection with explicit CX fields and dimension-scoped coordinates.
Members (5)
- atom_symbols: tuple[str, ...] | None¶
Optional replacement symbols indexed by original molecule atom index.
- atoms: tuple[int, ...]¶
Original molecule atom indices included in the fragment.
- bond_symbols: tuple[str, ...] | None¶
Optional replacement symbols indexed by original molecule bond index.
- bonds: tuple[int, ...] | None¶
Optional original bond indices; None includes bonds between selected atoms.
- cx: CxSmilesWriteParams¶
CXSMILES formatting, extension fields and coordinate selection.
- class cosmolkit.FragmentSmilesWriteParams(*, atoms, smiles=Ellipsis, bonds=Ellipsis, atom_symbols=Ellipsis, bond_symbols=Ellipsis)¶
Original-index fragment selection; symbol arrays are indexed by the full molecule.
Members (5)
- atom_symbols: tuple[str, ...] | None¶
Optional replacement symbols indexed by original molecule atom index.
- atoms: tuple[int, ...]¶
Original molecule atom indices included in the fragment.
- bond_symbols: tuple[str, ...] | None¶
Optional replacement symbols indexed by original molecule bond index.
- bonds: tuple[int, ...] | None¶
None selects all bonds between selected atoms; Some(empty) selects no bonds.
- smiles: SmilesWriteParams¶
SMILES formatting and stereochemistry options.
- exception cosmolkit.FragmentWriteInputError(*args, **kwargs)¶
Failure in the smiles domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
FragmentWriteInputError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (14)
- property atom_count: int | None¶
Number of atoms available to the operation. Present for FragmentWriteInputError.RootAtomOutOfRange, FragmentWriteInputError.AtomOutOfRange, FragmentWriteInputError.ValenceAssignmentLengthMismatch; None when unavailable.
- property atom_index: int | None¶
Atom index involved in the failure. Present for FragmentWriteInputError.RootAtomOutOfRange, FragmentWriteInputError.RootAtomNotSelected, FragmentWriteInputError.AtomOutOfRange, FragmentWriteInputError.RootAtomRequiresSingleFragment; None when unavailable.
- property bond_count: int | None¶
Readonly bond_count payload of the BondOutOfRange error variant; None for other variants.
- property bond_index: int | None¶
Readonly bond_index payload of the BondOutOfRange error variant; None for other variants.
- property detail: str | None¶
Additional native diagnostic detail. Present for FragmentWriteInputError.InvalidTopology; None when unavailable.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Expected count or value. Present for FragmentWriteInputError.AtomSymbolsTooShort, FragmentWriteInputError.BondSymbolsTooShort; None when unavailable.
- property explicit_len: int | None¶
Readonly explicit_len payload of the ValenceAssignmentLengthMismatch error variant; None for other variants.
- property fragment_count: int | None¶
Readonly fragment_count payload of the RootAtomRequiresSingleFragment error variant; None for other variants.
- property implicit_len: int | None¶
Readonly implicit_len payload of the ValenceAssignmentLengthMismatch error variant; None for other variants.
- property len: int | None¶
Length of the invalid span or collection. Present for FragmentWriteInputError.AtomSymbolsTooShort, FragmentWriteInputError.BondSymbolsTooShort; None when unavailable.
- property source: StereoGroupError | ValenceError | RingFindingError | LegacyStereoError | CanonicalRankError | SmilesParseError | PropertyStringError | AtomPropertyError | BondValueError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: FragmentWriteInputErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.FragmentWriteInputErrorKind(value)¶
Discriminants of FragmentWriteInputErrorKind.
Members:
StereoGroup,NoAtomsProvided,RootAtomOutOfRange,RootAtomNotSelected,AtomSymbolsTooShort,BondSymbolsTooShort,AtomOutOfRange,BondOutOfRange,RootAtomRequiresSingleFragment,InvalidTopology,ValenceAssignmentLengthMismatch,Valence,Ring,Stereo,Rank,Writer,CipProperty,AtomProperty,StereoBond, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (22)
- AtomOutOfRange = FragmentWriteInputErrorKind.AtomOutOfRange¶
- AtomProperty = FragmentWriteInputErrorKind.AtomProperty¶
- AtomSymbolsTooShort = FragmentWriteInputErrorKind.AtomSymbolsTooShort¶
- BondOutOfRange = FragmentWriteInputErrorKind.BondOutOfRange¶
- BondSymbolsTooShort = FragmentWriteInputErrorKind.BondSymbolsTooShort¶
- CipProperty = FragmentWriteInputErrorKind.CipProperty¶
- InvalidTopology = FragmentWriteInputErrorKind.InvalidTopology¶
- NoAtomsProvided = FragmentWriteInputErrorKind.NoAtomsProvided¶
- Rank = FragmentWriteInputErrorKind.Rank¶
- Ring = FragmentWriteInputErrorKind.Ring¶
- RootAtomNotSelected = FragmentWriteInputErrorKind.RootAtomNotSelected¶
- RootAtomOutOfRange = FragmentWriteInputErrorKind.RootAtomOutOfRange¶
- RootAtomRequiresSingleFragment = FragmentWriteInputErrorKind.RootAtomRequiresSingleFragment¶
- Stereo = FragmentWriteInputErrorKind.Stereo¶
- StereoBond = FragmentWriteInputErrorKind.StereoBond¶
- StereoGroup = FragmentWriteInputErrorKind.StereoGroup¶
- Valence = FragmentWriteInputErrorKind.Valence¶
- ValenceAssignmentLengthMismatch = FragmentWriteInputErrorKind.ValenceAssignmentLengthMismatch¶
- Writer = FragmentWriteInputErrorKind.Writer¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoGroup': FragmentWriteInputErrorKind.StereoGroup, 'NoAtomsProvided': FragmentWriteInputErrorKind.NoAtomsProvided, 'RootAtomOutOfRange': FragmentWriteInputErrorKind.RootAtomOutOfRange, 'RootAtomNotSelected': FragmentWriteInputErrorKind.RootAtomNotSelected, 'AtomSymbolsTooShort': FragmentWriteInputErrorKind.AtomSymbolsTooShort, 'BondSymbolsTooShort': FragmentWriteInputErrorKind.BondSymbolsTooShort, 'AtomOutOfRange': FragmentWriteInputErrorKind.AtomOutOfRange, 'BondOutOfRange': FragmentWriteInputErrorKind.BondOutOfRange, 'RootAtomRequiresSingleFragment': FragmentWriteInputErrorKind.RootAtomRequiresSingleFragment, 'InvalidTopology': FragmentWriteInputErrorKind.InvalidTopology, 'ValenceAssignmentLengthMismatch': FragmentWriteInputErrorKind.ValenceAssignmentLengthMismatch, 'Valence': FragmentWriteInputErrorKind.Valence, 'Ring': FragmentWriteInputErrorKind.Ring, 'Stereo': FragmentWriteInputErrorKind.Stereo, 'Rank': FragmentWriteInputErrorKind.Rank, 'Writer': FragmentWriteInputErrorKind.Writer, 'CipProperty': FragmentWriteInputErrorKind.CipProperty, 'AtomProperty': FragmentWriteInputErrorKind.AtomProperty, 'StereoBond': FragmentWriteInputErrorKind.StereoBond})¶
- values = mappingproxy({0: FragmentWriteInputErrorKind.StereoGroup, 1: FragmentWriteInputErrorKind.NoAtomsProvided, 2: FragmentWriteInputErrorKind.RootAtomOutOfRange, 3: FragmentWriteInputErrorKind.RootAtomNotSelected, 4: FragmentWriteInputErrorKind.AtomSymbolsTooShort, 5: FragmentWriteInputErrorKind.BondSymbolsTooShort, 6: FragmentWriteInputErrorKind.AtomOutOfRange, 7: FragmentWriteInputErrorKind.BondOutOfRange, 8: FragmentWriteInputErrorKind.RootAtomRequiresSingleFragment, 9: FragmentWriteInputErrorKind.InvalidTopology, 10: FragmentWriteInputErrorKind.ValenceAssignmentLengthMismatch, 11: FragmentWriteInputErrorKind.Valence, 12: FragmentWriteInputErrorKind.Ring, 13: FragmentWriteInputErrorKind.Stereo, 14: FragmentWriteInputErrorKind.Rank, 15: FragmentWriteInputErrorKind.Writer, 16: FragmentWriteInputErrorKind.CipProperty, 17: FragmentWriteInputErrorKind.AtomProperty, 18: FragmentWriteInputErrorKind.StereoBond})¶
- exception cosmolkit.FromUtf8Error(*args, **kwargs)¶
FromUtf8Error is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
- exception cosmolkit.FullCopyComponentError(*args, **kwargs)¶
Failure in the fragments domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
FullCopyComponentError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (14)
- property actual: int | None¶
Readonly actual payload of the AtomMaskSize error variant; None for other variants.
- property conformer_id: int | None¶
Readonly conformer_id payload of the MissingCoordinateRow error variant; None for other variants.
- property coordinate_validation: CoordinateValidationError | None¶
“error_payload”} Structured CoordinateValidationError payload of FullCopyComponentError.CoordinateValidation; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the AtomMaskSize error variant; None for other variants.
- property mapping_validation: MappingValidationError | None¶
“error_payload”} Structured MappingValidationError payload of FullCopyComponentError.MappingValidation; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property row: int | None¶
Readonly row payload of the AddedAtomRow error variant; None for other variants.
- property source: StereoGroupError | CoordinateValidationError | MoleculePropertyError | AtomPropertyError | TemplateAttachmentOrderError | UIntLexicalReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property source_row: int | None¶
Readonly source_row payload of the MissingCoordinateRow error variant; None for other variants.
- property source_text: PropertyStringError | None¶
“error_payload”} Structured PropertyStringError payload of FullCopyComponentError.SourceText; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source_uint: PropertyUIntReadError | None¶
“error_payload”} Structured PropertyUIntReadError payload of FullCopyComponentError.SourceUInt; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property topology_edit: TopologyEditError | None¶
“error_payload”} Structured TopologyEditError payload of FullCopyComponentError.TopologyEdit; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: FullCopyComponentErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.FullCopyComponentErrorKind(value)¶
Discriminants of FullCopyComponentErrorKind.
Members:
SourceUInt,SourceText,TopologyEdit,MappingValidation,CoordinateValidation,AtomMaskSize,AddedAtomRow,MissingCoordinateRow, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (11)
- AddedAtomRow = FullCopyComponentErrorKind.AddedAtomRow¶
- AtomMaskSize = FullCopyComponentErrorKind.AtomMaskSize¶
- CoordinateValidation = FullCopyComponentErrorKind.CoordinateValidation¶
- MappingValidation = FullCopyComponentErrorKind.MappingValidation¶
- MissingCoordinateRow = FullCopyComponentErrorKind.MissingCoordinateRow¶
- SourceText = FullCopyComponentErrorKind.SourceText¶
- SourceUInt = FullCopyComponentErrorKind.SourceUInt¶
- TopologyEdit = FullCopyComponentErrorKind.TopologyEdit¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'SourceUInt': FullCopyComponentErrorKind.SourceUInt, 'SourceText': FullCopyComponentErrorKind.SourceText, 'TopologyEdit': FullCopyComponentErrorKind.TopologyEdit, 'MappingValidation': FullCopyComponentErrorKind.MappingValidation, 'CoordinateValidation': FullCopyComponentErrorKind.CoordinateValidation, 'AtomMaskSize': FullCopyComponentErrorKind.AtomMaskSize, 'AddedAtomRow': FullCopyComponentErrorKind.AddedAtomRow, 'MissingCoordinateRow': FullCopyComponentErrorKind.MissingCoordinateRow})¶
- values = mappingproxy({0: FullCopyComponentErrorKind.SourceUInt, 1: FullCopyComponentErrorKind.SourceText, 2: FullCopyComponentErrorKind.TopologyEdit, 3: FullCopyComponentErrorKind.MappingValidation, 4: FullCopyComponentErrorKind.CoordinateValidation, 5: FullCopyComponentErrorKind.AtomMaskSize, 6: FullCopyComponentErrorKind.AddedAtomRow, 7: FullCopyComponentErrorKind.MissingCoordinateRow})¶
- class cosmolkit.FunctionStatus¶
Native implementation status with optional parity reference and difference explanation.
Members (4)
- exception cosmolkit.GenerationError(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
GenerationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (25)
- property atom_count: int | None¶
Readonly atom_count payload of the CoordinateMapIndex error variant; None for other variants.
- property atom_index: int | None¶
Atom index involved in the native failure. Applies to GenerationError.CoordinateMapIndex, GenerationError.CoordinateMapNonFinite. None when this payload is absent.
- property atropisomer: AtropisomerError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Atropisomer; None when unavailable.
- Type:
{“role”
- property bounds: BoundsMatrixError | None¶
“error_payload”} Structured BoundsMatrixError payload of GenerationError.Bounds; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property conjugation: ConjugationError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Conjugation; None when unavailable.
- Type:
{“role”
- property coordinates: CoordinateValidationError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Coordinates; None when unavailable.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property force_field: ConformerOptimizerError | None¶
“error_payload”} Structured ConformerOptimizerError payload of GenerationError.ForceField; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property fragments: MoleculeFragmentsError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Fragments; None when unavailable.
- Type:
{“role”
- property generation_failed: GenerationFailure | None¶
“error_payload”} Structured GenerationFailure payload of GenerationError.GenerationFailed; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property hybridization: HybridizationError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Hybridization; None when unavailable.
- Type:
{“role”
- property hydrogens: MissingExplicitHydrogensError | None¶
“error_payload”} Structured MissingExplicitHydrogensError payload of GenerationError.Hydrogens; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property implementation: str | None¶
Readonly implementation payload of the UnsupportedImplementation error variant; None for other variants.
- property message: str | None¶
Detailed native diagnostic message. Applies to GenerationError.Input. None when this payload is absent.
- property numeric: ConformerError | None¶
“error_payload”} Structured ConformerError payload of GenerationError.Numeric; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property pruning: PruningError | None¶
“error_payload”} Structured PruningError payload of GenerationError.Pruning; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property rings: RingFindingError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Rings; None when unavailable.
- Type:
{“role”
- property seed: EmbedSeedError | None¶
“error_payload”} Structured EmbedSeedError payload of GenerationError.Seed; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: StereoGroupError | TopologyEditError | CoordinateValidationError | AtomPropertyError | BondValueError | MoleculePropertyError | PropertyIntReadError | PropertyULongReadError | PropertyUIntReadError | PropertyValueError | RequiredPropertyStringError | PropertyStringError | LegacyStereoError | PotentialStereoError | ParserStereoOrderError | StereoOrderError | SmilesStereoError | AtropisomerError | RingFindingError | ParserCarrierError | KekulizeError | SanitizeError | HydrogenError | ValenceError | ConjugationError | HybridizationError | TopologyValidationError | TemplateAttachmentOrderError | MappingValidationError | CanonicalRankError | DoubleBondStereoError | BoundsMatrixError | UffBoundsError | MatrixError | ForceFieldKernelError | UffInversionContributionError | CxQueryLoweringError | QueryGraphError | ThreadCountError | MoleculeFragmentsFailure | UffBuilderError | IoError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stereo: LegacyStereoError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Stereo; None when unavailable.
- Type:
{“role”
- property thread_count: ThreadCountError | None¶
“error_payload”} Structured ThreadCountError payload of GenerationError.ThreadCount; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property topology: TopologyValidationError | None¶
“error_payload”} Structured native error payload. Present for GenerationError.Topology; None when unavailable.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of GenerationError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: GenerationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.GenerationErrorKind(value)¶
Discriminants of GenerationErrorKind.
Members:
Topology,Coordinates,Valence,Rings,Conjugation,Hybridization,Stereo,Fragments,Hydrogens,Pruning,Seed,GenerationFailed,Atropisomer,Bounds,ForceField,Numeric,ThreadCount,WorkerLaunch,Input,CoordinateMapIndex,CoordinateMapNonFinite,UnsupportedImplementation, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (25)
- Atropisomer = GenerationErrorKind.Atropisomer¶
- Bounds = GenerationErrorKind.Bounds¶
- Conjugation = GenerationErrorKind.Conjugation¶
- CoordinateMapIndex = GenerationErrorKind.CoordinateMapIndex¶
- CoordinateMapNonFinite = GenerationErrorKind.CoordinateMapNonFinite¶
- Coordinates = GenerationErrorKind.Coordinates¶
- ForceField = GenerationErrorKind.ForceField¶
- Fragments = GenerationErrorKind.Fragments¶
- GenerationFailed = GenerationErrorKind.GenerationFailed¶
- Hybridization = GenerationErrorKind.Hybridization¶
- Hydrogens = GenerationErrorKind.Hydrogens¶
- Input = GenerationErrorKind.Input¶
- Numeric = GenerationErrorKind.Numeric¶
- Pruning = GenerationErrorKind.Pruning¶
- Rings = GenerationErrorKind.Rings¶
- Seed = GenerationErrorKind.Seed¶
- Stereo = GenerationErrorKind.Stereo¶
- ThreadCount = GenerationErrorKind.ThreadCount¶
- Topology = GenerationErrorKind.Topology¶
- UnsupportedImplementation = GenerationErrorKind.UnsupportedImplementation¶
- Valence = GenerationErrorKind.Valence¶
- WorkerLaunch = GenerationErrorKind.WorkerLaunch¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Topology': GenerationErrorKind.Topology, 'Coordinates': GenerationErrorKind.Coordinates, 'Valence': GenerationErrorKind.Valence, 'Rings': GenerationErrorKind.Rings, 'Conjugation': GenerationErrorKind.Conjugation, 'Hybridization': GenerationErrorKind.Hybridization, 'Stereo': GenerationErrorKind.Stereo, 'Fragments': GenerationErrorKind.Fragments, 'Hydrogens': GenerationErrorKind.Hydrogens, 'Pruning': GenerationErrorKind.Pruning, 'Seed': GenerationErrorKind.Seed, 'GenerationFailed': GenerationErrorKind.GenerationFailed, 'Atropisomer': GenerationErrorKind.Atropisomer, 'Bounds': GenerationErrorKind.Bounds, 'ForceField': GenerationErrorKind.ForceField, 'Numeric': GenerationErrorKind.Numeric, 'ThreadCount': GenerationErrorKind.ThreadCount, 'WorkerLaunch': GenerationErrorKind.WorkerLaunch, 'Input': GenerationErrorKind.Input, 'CoordinateMapIndex': GenerationErrorKind.CoordinateMapIndex, 'CoordinateMapNonFinite': GenerationErrorKind.CoordinateMapNonFinite, 'UnsupportedImplementation': GenerationErrorKind.UnsupportedImplementation})¶
- values = mappingproxy({0: GenerationErrorKind.Topology, 1: GenerationErrorKind.Coordinates, 2: GenerationErrorKind.Valence, 3: GenerationErrorKind.Rings, 4: GenerationErrorKind.Conjugation, 5: GenerationErrorKind.Hybridization, 6: GenerationErrorKind.Stereo, 7: GenerationErrorKind.Fragments, 8: GenerationErrorKind.Hydrogens, 9: GenerationErrorKind.Pruning, 10: GenerationErrorKind.Seed, 11: GenerationErrorKind.GenerationFailed, 12: GenerationErrorKind.Atropisomer, 13: GenerationErrorKind.Bounds, 14: GenerationErrorKind.ForceField, 15: GenerationErrorKind.Numeric, 16: GenerationErrorKind.ThreadCount, 17: GenerationErrorKind.WorkerLaunch, 18: GenerationErrorKind.Input, 19: GenerationErrorKind.CoordinateMapIndex, 20: GenerationErrorKind.CoordinateMapNonFinite, 21: GenerationErrorKind.UnsupportedImplementation})¶
- exception cosmolkit.GenerationFailure(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
GenerationFailure is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: BoundsMatrixError | UffBoundsError | MatrixError | ValenceError | PropertyUIntReadError | AtomPropertyError | PropertyIntReadError | TopologyValidationError | RingFindingError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology_bounds: GraphBoundsError | None¶
“error_payload”} Structured GraphBoundsError payload of GenerationFailure.TopologyBounds; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property torsion_preferences: CrystalffTorsionPreferencesError | None¶
“error_payload”} Structured CrystalffTorsionPreferencesError payload of GenerationFailure.TorsionPreferences; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: GenerationFailureKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.GenerationFailureKind(value)¶
Discriminants of GenerationFailureKind.
Members:
TopologyBounds,TorsionPreferences, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- TopologyBounds = GenerationFailureKind.TopologyBounds¶
- TorsionPreferences = GenerationFailureKind.TorsionPreferences¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'TopologyBounds': GenerationFailureKind.TopologyBounds, 'TorsionPreferences': GenerationFailureKind.TorsionPreferences})¶
- values = mappingproxy({0: GenerationFailureKind.TopologyBounds, 1: GenerationFailureKind.TorsionPreferences})¶
- exception cosmolkit.GraphBoundsError(*args, **kwargs)¶
Failure in the conformer domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
GraphBoundsError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property atomic_number: int | None¶
Atomic number involved in the failed chemistry operation. Applies to GraphBoundsError.AtomicNumber. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property message: str | None¶
Detailed native diagnostic message. Applies to GraphBoundsError.InvalidBounds, GraphBoundsError.Detail, GraphBoundsError.Input. None when this payload is absent.
- property source: BoundsMatrixError | UffBoundsError | MatrixError | ValenceError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: GraphBoundsErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.GraphBoundsErrorKind(value)¶
Discriminants of GraphBoundsErrorKind.
Members:
Bounds,Uff,Matrix,Valence,InvalidBounds,Detail,Input,AtomicNumber, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (11)
- AtomicNumber = GraphBoundsErrorKind.AtomicNumber¶
- Bounds = GraphBoundsErrorKind.Bounds¶
- Detail = GraphBoundsErrorKind.Detail¶
- Input = GraphBoundsErrorKind.Input¶
- InvalidBounds = GraphBoundsErrorKind.InvalidBounds¶
- Matrix = GraphBoundsErrorKind.Matrix¶
- Uff = GraphBoundsErrorKind.Uff¶
- Valence = GraphBoundsErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Bounds': GraphBoundsErrorKind.Bounds, 'Uff': GraphBoundsErrorKind.Uff, 'Matrix': GraphBoundsErrorKind.Matrix, 'Valence': GraphBoundsErrorKind.Valence, 'InvalidBounds': GraphBoundsErrorKind.InvalidBounds, 'Detail': GraphBoundsErrorKind.Detail, 'Input': GraphBoundsErrorKind.Input, 'AtomicNumber': GraphBoundsErrorKind.AtomicNumber})¶
- values = mappingproxy({0: GraphBoundsErrorKind.Bounds, 1: GraphBoundsErrorKind.Uff, 2: GraphBoundsErrorKind.Matrix, 3: GraphBoundsErrorKind.Valence, 4: GraphBoundsErrorKind.InvalidBounds, 5: GraphBoundsErrorKind.Detail, 6: GraphBoundsErrorKind.Input, 7: GraphBoundsErrorKind.AtomicNumber})¶
- class cosmolkit.Hybridization(value)¶
Typed Hybridization values corresponding to the Rust enum.
Members:
Unspecified,S,Sp,Sp2,Sp3,Sp2d,Sp3d,Sp3d2,Other, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (20)
- OTHER = Hybridization.Other¶
- Other = Hybridization.Other¶
- S = Hybridization.S¶
- SP = Hybridization.Sp¶
- SP2 = Hybridization.Sp2¶
- SP2D = Hybridization.Sp2d¶
- SP3 = Hybridization.Sp3¶
- SP3D = Hybridization.Sp3d¶
- SP3D2 = Hybridization.Sp3d2¶
- Sp = Hybridization.Sp¶
- Sp2 = Hybridization.Sp2¶
- Sp2d = Hybridization.Sp2d¶
- Sp3 = Hybridization.Sp3¶
- Sp3d = Hybridization.Sp3d¶
- Sp3d2 = Hybridization.Sp3d2¶
- UNSPECIFIED = Hybridization.Unspecified¶
- Unspecified = Hybridization.Unspecified¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Unspecified': Hybridization.Unspecified, 'UNSPECIFIED': Hybridization.Unspecified, 'S': Hybridization.S, 'Sp': Hybridization.Sp, 'SP': Hybridization.Sp, 'Sp2': Hybridization.Sp2, 'SP2': Hybridization.Sp2, 'Sp3': Hybridization.Sp3, 'SP3': Hybridization.Sp3, 'Sp2d': Hybridization.Sp2d, 'SP2D': Hybridization.Sp2d, 'Sp3d': Hybridization.Sp3d, 'SP3D': Hybridization.Sp3d, 'Sp3d2': Hybridization.Sp3d2, 'SP3D2': Hybridization.Sp3d2, 'Other': Hybridization.Other, 'OTHER': Hybridization.Other})¶
- values = mappingproxy({0: Hybridization.Unspecified, 1: Hybridization.S, 2: Hybridization.Sp, 3: Hybridization.Sp2, 4: Hybridization.Sp3, 5: Hybridization.Sp2d, 6: Hybridization.Sp3d, 7: Hybridization.Sp3d2, 8: Hybridization.Other})¶
- exception cosmolkit.HybridizationError(*args, **kwargs)¶
Failure in the hybridization domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
HybridizationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (11)
- property actual: int | None¶
Observed value reported by the native check. Applies to HybridizationError.ConjugatedBondAssignmentLength, HybridizationError.ValenceAssignmentLength. None when this payload is absent.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to HybridizationError.InvalidValenceRow, HybridizationError.IntegerOverflow. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Required value reported by the native check. Applies to HybridizationError.ConjugatedBondAssignmentLength, HybridizationError.ValenceAssignmentLength. None when this payload is absent.
- property field: str | None¶
Field whose content or type caused the failure. Applies to HybridizationError.ValenceAssignmentLength, HybridizationError.InvalidValenceRow, HybridizationError.IntegerOverflow. None when this payload is absent.
- property source: TopologyValidationError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of HybridizationError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of HybridizationError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property value: int | None¶
Readonly value payload of the InvalidValenceRow error variant; None for other variants.
- property variant: HybridizationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.HybridizationErrorKind(value)¶
Discriminants of HybridizationErrorKind.
Members:
ConjugatedBondAssignmentLength,InvalidTopology,ValenceAssignmentLength,InvalidValenceRow,IntegerOverflow,Valence, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (9)
- ConjugatedBondAssignmentLength = HybridizationErrorKind.ConjugatedBondAssignmentLength¶
- IntegerOverflow = HybridizationErrorKind.IntegerOverflow¶
- InvalidTopology = HybridizationErrorKind.InvalidTopology¶
- InvalidValenceRow = HybridizationErrorKind.InvalidValenceRow¶
- Valence = HybridizationErrorKind.Valence¶
- ValenceAssignmentLength = HybridizationErrorKind.ValenceAssignmentLength¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'ConjugatedBondAssignmentLength': HybridizationErrorKind.ConjugatedBondAssignmentLength, 'InvalidTopology': HybridizationErrorKind.InvalidTopology, 'ValenceAssignmentLength': HybridizationErrorKind.ValenceAssignmentLength, 'InvalidValenceRow': HybridizationErrorKind.InvalidValenceRow, 'IntegerOverflow': HybridizationErrorKind.IntegerOverflow, 'Valence': HybridizationErrorKind.Valence})¶
- values = mappingproxy({0: HybridizationErrorKind.ConjugatedBondAssignmentLength, 1: HybridizationErrorKind.InvalidTopology, 2: HybridizationErrorKind.ValenceAssignmentLength, 3: HybridizationErrorKind.InvalidValenceRow, 4: HybridizationErrorKind.IntegerOverflow, 5: HybridizationErrorKind.Valence})¶
- exception cosmolkit.HydrogenError(*args, **kwargs)¶
Failure in the hydrogens domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
HydrogenError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (30)
- property actual: int | None¶
Readonly actual payload of the ValenceAssignmentLength error variant; None for other variants.
- property actual_rows: int | None¶
Readonly actual_rows payload of the InvalidPropertyList error variant; None for other variants.
- property addition: int | None¶
Hydrogen addition-plan entry that failed, or None when unavailable.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to HydrogenError.OnlyOnAtomOutOfRange, HydrogenError.InvalidRemovalCandidate, HydrogenError.ExplicitHydrogenOverflow. None when this payload is absent.
- property atom_count: int | None¶
Readonly atom_count payload of the OnlyOnAtomOutOfRange error variant; None for other variants.
- property bond: int | None¶
Readonly bond payload of the InvalidStereoTransition error variant; None for other variants.
- property conformer: int | None¶
Readonly conformer payload of the CoordinatePlacement error variant; None for other variants.
- property coordinates: CoordinateValidationError | None¶
“error_payload”} Structured CoordinateValidationError payload of HydrogenError.InvalidCoordinates; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property current: int | None¶
Readonly current payload of the ExplicitHydrogenOverflow error variant; None for other variants.
- property dimension: str | None¶
Readonly dimension payload of the CoordinatePlacement error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the ValenceAssignmentLength error variant; None for other variants.
- property expected_rows: int | None¶
Readonly expected_rows payload of the InvalidPropertyList error variant; None for other variants.
- property field: str | None¶
Readonly field payload of the ValenceAssignmentLength error variant; None for other variants.
- property mapping: MappingValidationError | None¶
“error_payload”} Structured MappingValidationError payload of HydrogenError.InvalidMapping; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property name: str | None¶
Name associated with the rejected value or property list. Applies to HydrogenError.InvalidPropertyList. None when this payload is absent.
- property operation: str | None¶
Readonly operation payload of the Unsupported error variant; None for other variants.
- property position: int | None¶
Readonly position payload of the InvalidRemovalCandidate error variant; None for other variants.
- property query_state: QueryStateError | None¶
“error_payload”} Structured QueryStateError payload of HydrogenError.InvalidQueryState; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property reason: str | None¶
Native explanation for rejecting the operation. Applies to HydrogenError.Unsupported, HydrogenError.InvalidAdditionPlan, HydrogenError.InvalidRemovalCandidate, HydrogenError.InvalidStereoTransition, HydrogenError.CoordinatePlacement. None when this payload is absent.
- property sanitize: SanitizeError | None¶
“error_payload”} Structured SanitizeError payload of HydrogenError.Sanitize; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: StereoOrderError | AtomPropertyError | BondValueError | MoleculePropertyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stage: str | None¶
Readonly stage payload of the MissingSourceState error variant; None for other variants.
- property state: str | None¶
Readonly state payload of the MissingSourceState error variant; None for other variants.
- property target: SdfPropertyListTarget | None¶
“error_payload”} Target value or index implicated in the failure. Applies to HydrogenError.InvalidPropertyList. None when this payload is absent.
- Type:
{“role”
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of HydrogenError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property topology_edit: TopologyEditError | None¶
“error_payload”} Structured TopologyEditError payload of HydrogenError.TopologyEdit; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of HydrogenError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: HydrogenErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.HydrogenErrorKind(value)¶
Discriminants of HydrogenErrorKind.
Members:
StereoOrder,BondProperty,AtomProperty,InvalidTopology,InvalidCoordinates,TopologyEdit,InvalidMapping,InvalidQueryState,InvalidProperty,InvalidPropertyList,Unsupported,OnlyOnAtomOutOfRange,InvalidAdditionPlan,InvalidRemovalCandidate,MissingSourceState,ValenceAssignmentLength,ExplicitHydrogenOverflow,InvalidStereoTransition,CoordinatePlacement,Valence,Sanitize, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (24)
- AtomProperty = HydrogenErrorKind.AtomProperty¶
- BondProperty = HydrogenErrorKind.BondProperty¶
- CoordinatePlacement = HydrogenErrorKind.CoordinatePlacement¶
- ExplicitHydrogenOverflow = HydrogenErrorKind.ExplicitHydrogenOverflow¶
- InvalidAdditionPlan = HydrogenErrorKind.InvalidAdditionPlan¶
- InvalidCoordinates = HydrogenErrorKind.InvalidCoordinates¶
- InvalidMapping = HydrogenErrorKind.InvalidMapping¶
- InvalidProperty = HydrogenErrorKind.InvalidProperty¶
- InvalidPropertyList = HydrogenErrorKind.InvalidPropertyList¶
- InvalidQueryState = HydrogenErrorKind.InvalidQueryState¶
- InvalidRemovalCandidate = HydrogenErrorKind.InvalidRemovalCandidate¶
- InvalidStereoTransition = HydrogenErrorKind.InvalidStereoTransition¶
- InvalidTopology = HydrogenErrorKind.InvalidTopology¶
- MissingSourceState = HydrogenErrorKind.MissingSourceState¶
- OnlyOnAtomOutOfRange = HydrogenErrorKind.OnlyOnAtomOutOfRange¶
- Sanitize = HydrogenErrorKind.Sanitize¶
- StereoOrder = HydrogenErrorKind.StereoOrder¶
- TopologyEdit = HydrogenErrorKind.TopologyEdit¶
- Unsupported = HydrogenErrorKind.Unsupported¶
- Valence = HydrogenErrorKind.Valence¶
- ValenceAssignmentLength = HydrogenErrorKind.ValenceAssignmentLength¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoOrder': HydrogenErrorKind.StereoOrder, 'BondProperty': HydrogenErrorKind.BondProperty, 'AtomProperty': HydrogenErrorKind.AtomProperty, 'InvalidTopology': HydrogenErrorKind.InvalidTopology, 'InvalidCoordinates': HydrogenErrorKind.InvalidCoordinates, 'TopologyEdit': HydrogenErrorKind.TopologyEdit, 'InvalidMapping': HydrogenErrorKind.InvalidMapping, 'InvalidQueryState': HydrogenErrorKind.InvalidQueryState, 'InvalidProperty': HydrogenErrorKind.InvalidProperty, 'InvalidPropertyList': HydrogenErrorKind.InvalidPropertyList, 'Unsupported': HydrogenErrorKind.Unsupported, 'OnlyOnAtomOutOfRange': HydrogenErrorKind.OnlyOnAtomOutOfRange, 'InvalidAdditionPlan': HydrogenErrorKind.InvalidAdditionPlan, 'InvalidRemovalCandidate': HydrogenErrorKind.InvalidRemovalCandidate, 'MissingSourceState': HydrogenErrorKind.MissingSourceState, 'ValenceAssignmentLength': HydrogenErrorKind.ValenceAssignmentLength, 'ExplicitHydrogenOverflow': HydrogenErrorKind.ExplicitHydrogenOverflow, 'InvalidStereoTransition': HydrogenErrorKind.InvalidStereoTransition, 'CoordinatePlacement': HydrogenErrorKind.CoordinatePlacement, 'Valence': HydrogenErrorKind.Valence, 'Sanitize': HydrogenErrorKind.Sanitize})¶
- values = mappingproxy({0: HydrogenErrorKind.StereoOrder, 1: HydrogenErrorKind.BondProperty, 2: HydrogenErrorKind.AtomProperty, 3: HydrogenErrorKind.InvalidTopology, 4: HydrogenErrorKind.InvalidCoordinates, 5: HydrogenErrorKind.TopologyEdit, 6: HydrogenErrorKind.InvalidMapping, 7: HydrogenErrorKind.InvalidQueryState, 8: HydrogenErrorKind.InvalidProperty, 9: HydrogenErrorKind.InvalidPropertyList, 10: HydrogenErrorKind.Unsupported, 11: HydrogenErrorKind.OnlyOnAtomOutOfRange, 12: HydrogenErrorKind.InvalidAdditionPlan, 13: HydrogenErrorKind.InvalidRemovalCandidate, 14: HydrogenErrorKind.MissingSourceState, 15: HydrogenErrorKind.ValenceAssignmentLength, 16: HydrogenErrorKind.ExplicitHydrogenOverflow, 17: HydrogenErrorKind.InvalidStereoTransition, 18: HydrogenErrorKind.CoordinatePlacement, 19: HydrogenErrorKind.Valence, 20: HydrogenErrorKind.Sanitize})¶
- class cosmolkit.InchiDiagnostic¶
One warning or error message produced by the InChI calculation.
Members (2)
- level: InchiDiagnosticLevel¶
Severity of the InChI diagnostic.
- message: str¶
Message emitted by the native InChI calculation.
- class cosmolkit.InchiDiagnosticLevel(value)¶
Typed InchiDiagnosticLevel values corresponding to the Rust enum.
Members:
Warning,Error, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (5)
- Error = InchiDiagnosticLevel.Error¶
- Warning = InchiDiagnosticLevel.Warning¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Warning': InchiDiagnosticLevel.Warning, 'Error': InchiDiagnosticLevel.Error})¶
- values = mappingproxy({0: InchiDiagnosticLevel.Warning, 1: InchiDiagnosticLevel.Error})¶
- exception cosmolkit.InchiError(*args, **kwargs)¶
InchiError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property detail: str¶
Native explanation of the InChI failure.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property operation: str¶
Native InChI operation reporting the failure.
- property variant: InchiErrorKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.InchiErrorKind(value)¶
Typed InchiErrorKind values corresponding to the Rust enum.
Members:
AllocationFailed,UnsupportedState,InvalidInput,InvalidSourceOutput,SanitizeFailed,Toolkit,SourcePort, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (10)
- AllocationFailed = InchiErrorKind.AllocationFailed¶
- InvalidInput = InchiErrorKind.InvalidInput¶
- InvalidSourceOutput = InchiErrorKind.InvalidSourceOutput¶
- SanitizeFailed = InchiErrorKind.SanitizeFailed¶
- SourcePort = InchiErrorKind.SourcePort¶
- Toolkit = InchiErrorKind.Toolkit¶
- UnsupportedState = InchiErrorKind.UnsupportedState¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'AllocationFailed': InchiErrorKind.AllocationFailed, 'UnsupportedState': InchiErrorKind.UnsupportedState, 'InvalidInput': InchiErrorKind.InvalidInput, 'InvalidSourceOutput': InchiErrorKind.InvalidSourceOutput, 'SanitizeFailed': InchiErrorKind.SanitizeFailed, 'Toolkit': InchiErrorKind.Toolkit, 'SourcePort': InchiErrorKind.SourcePort})¶
- values = mappingproxy({0: InchiErrorKind.AllocationFailed, 1: InchiErrorKind.UnsupportedState, 2: InchiErrorKind.InvalidInput, 3: InchiErrorKind.InvalidSourceOutput, 4: InchiErrorKind.SanitizeFailed, 5: InchiErrorKind.Toolkit, 6: InchiErrorKind.SourcePort})¶
- class cosmolkit.InchiReadParams(*, sanitize=Ellipsis, remove_hs=Ellipsis)¶
Controls the source-defined InChI post-processing stages.
- class cosmolkit.InchiResult¶
InChI output with AuxInfo, native status, message, log and structured diagnostics.
Members (6)
- aux_info: str¶
AuxInfo text accompanying the InChI result.
- diagnostics: list[InchiDiagnostic]¶
Independent list of structured warning/error diagnostics.
- inchi: str¶
Generated InChI identifier.
- log: str¶
Native InChI diagnostic log.
- message: str¶
Message emitted by the native InChI calculation.
- return_code: int¶
Native InChI return status code.
- class cosmolkit.InchiWriteParams(*, options=Ellipsis)¶
Official InChI option string; an empty string selects the engine defaults.
Members (1)
- options: str¶
Official InChI option string; empty text uses engine defaults.
- exception cosmolkit.IoError(*args, **kwargs)¶
IoError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property kind: IoErrorKind¶
“error_payload”} Native IO error category.
- Type:
{“role”
- property raw_os_error: int | None¶
Original operating-system error number, or None for a non-OS error.
- property source: IoError | Utf8Error | FromUtf8Error | ExternalError | None¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- class cosmolkit.IoErrorKind¶
Native IO failure category; named constants compare by category rather than object identity.
Members (39)
- AddrInUse = IoErrorKind.AddrInUse¶
- AddrNotAvailable = IoErrorKind.AddrNotAvailable¶
- AlreadyExists = IoErrorKind.AlreadyExists¶
- ArgumentListTooLong = IoErrorKind.ArgumentListTooLong¶
- BrokenPipe = IoErrorKind.BrokenPipe¶
- ConnectionAborted = IoErrorKind.ConnectionAborted¶
- ConnectionRefused = IoErrorKind.ConnectionRefused¶
- ConnectionReset = IoErrorKind.ConnectionReset¶
- CrossesDevices = IoErrorKind.CrossesDevices¶
- Deadlock = IoErrorKind.Deadlock¶
- DirectoryNotEmpty = IoErrorKind.DirectoryNotEmpty¶
- ExecutableFileBusy = IoErrorKind.ExecutableFileBusy¶
- FileTooLarge = IoErrorKind.FileTooLarge¶
- HostUnreachable = IoErrorKind.HostUnreachable¶
- Interrupted = IoErrorKind.Interrupted¶
- InvalidData = IoErrorKind.InvalidData¶
- InvalidFilename = IoErrorKind.InvalidFilename¶
- InvalidInput = IoErrorKind.InvalidInput¶
- IsADirectory = IoErrorKind.IsADirectory¶
- NetworkDown = IoErrorKind.NetworkDown¶
- NetworkUnreachable = IoErrorKind.NetworkUnreachable¶
- NotADirectory = IoErrorKind.NotADirectory¶
- NotConnected = IoErrorKind.NotConnected¶
- NotFound = IoErrorKind.NotFound¶
- NotSeekable = IoErrorKind.NotSeekable¶
- Other = IoErrorKind.Other¶
- OutOfMemory = IoErrorKind.OutOfMemory¶
- PermissionDenied = IoErrorKind.PermissionDenied¶
- QuotaExceeded = IoErrorKind.QuotaExceeded¶
- ReadOnlyFilesystem = IoErrorKind.ReadOnlyFilesystem¶
- ResourceBusy = IoErrorKind.ResourceBusy¶
- StaleNetworkFileHandle = IoErrorKind.StaleNetworkFileHandle¶
- StorageFull = IoErrorKind.StorageFull¶
- TimedOut = IoErrorKind.TimedOut¶
- TooManyLinks = IoErrorKind.TooManyLinks¶
- UnexpectedEof = IoErrorKind.UnexpectedEof¶
- Unsupported = IoErrorKind.Unsupported¶
- WouldBlock = IoErrorKind.WouldBlock¶
- WriteZero = IoErrorKind.WriteZero¶
- exception cosmolkit.JsonError(*args, **kwargs)¶
JsonError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property argument: int | None¶
Optional numeric argument carried by this parser diagnostic.
- property byte_offset: int¶
Byte offset of the JSON parsing failure.
- property column: int¶
Column reported by the JSON parser.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property kind: JsonErrorKind¶
“error_payload”} Native JSON parser error category.
- Type:
{“role”
- property line: int¶
Line reported by the JSON parser.
- class cosmolkit.JsonErrorKind(value)¶
Typed JsonErrorKind values corresponding to the Rust enum.
Members:
NoError,OutOfMemory,UnexpectedEnd,MissingRootElement,BadRoot,ExpectedComma,MissingObjectKey,ExpectedColon,ExpectedEndOfInput,UnexpectedComma,ExpectedValue,ExpectedNull,ExpectedFalse,ExpectedTrue,InvalidNumber,MissingExponent,IllegalCodepoint,InvalidUnicodeEscape,UnexpectedEndOfUtf16,ExpectedU,InvalidUtf16TrailSurrogate,UnknownEscape,InvalidUtf8, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (26)
- BadRoot = JsonErrorKind.BadRoot¶
- ExpectedColon = JsonErrorKind.ExpectedColon¶
- ExpectedComma = JsonErrorKind.ExpectedComma¶
- ExpectedEndOfInput = JsonErrorKind.ExpectedEndOfInput¶
- ExpectedFalse = JsonErrorKind.ExpectedFalse¶
- ExpectedNull = JsonErrorKind.ExpectedNull¶
- ExpectedTrue = JsonErrorKind.ExpectedTrue¶
- ExpectedU = JsonErrorKind.ExpectedU¶
- ExpectedValue = JsonErrorKind.ExpectedValue¶
- IllegalCodepoint = JsonErrorKind.IllegalCodepoint¶
- InvalidNumber = JsonErrorKind.InvalidNumber¶
- InvalidUnicodeEscape = JsonErrorKind.InvalidUnicodeEscape¶
- InvalidUtf16TrailSurrogate = JsonErrorKind.InvalidUtf16TrailSurrogate¶
- InvalidUtf8 = JsonErrorKind.InvalidUtf8¶
- MissingExponent = JsonErrorKind.MissingExponent¶
- MissingObjectKey = JsonErrorKind.MissingObjectKey¶
- MissingRootElement = JsonErrorKind.MissingRootElement¶
- NoError = JsonErrorKind.NoError¶
- OutOfMemory = JsonErrorKind.OutOfMemory¶
- UnexpectedComma = JsonErrorKind.UnexpectedComma¶
- UnexpectedEnd = JsonErrorKind.UnexpectedEnd¶
- UnexpectedEndOfUtf16 = JsonErrorKind.UnexpectedEndOfUtf16¶
- UnknownEscape = JsonErrorKind.UnknownEscape¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'NoError': JsonErrorKind.NoError, 'OutOfMemory': JsonErrorKind.OutOfMemory, 'UnexpectedEnd': JsonErrorKind.UnexpectedEnd, 'MissingRootElement': JsonErrorKind.MissingRootElement, 'BadRoot': JsonErrorKind.BadRoot, 'ExpectedComma': JsonErrorKind.ExpectedComma, 'MissingObjectKey': JsonErrorKind.MissingObjectKey, 'ExpectedColon': JsonErrorKind.ExpectedColon, 'ExpectedEndOfInput': JsonErrorKind.ExpectedEndOfInput, 'UnexpectedComma': JsonErrorKind.UnexpectedComma, 'ExpectedValue': JsonErrorKind.ExpectedValue, 'ExpectedNull': JsonErrorKind.ExpectedNull, 'ExpectedFalse': JsonErrorKind.ExpectedFalse, 'ExpectedTrue': JsonErrorKind.ExpectedTrue, 'InvalidNumber': JsonErrorKind.InvalidNumber, 'MissingExponent': JsonErrorKind.MissingExponent, 'IllegalCodepoint': JsonErrorKind.IllegalCodepoint, 'InvalidUnicodeEscape': JsonErrorKind.InvalidUnicodeEscape, 'UnexpectedEndOfUtf16': JsonErrorKind.UnexpectedEndOfUtf16, 'ExpectedU': JsonErrorKind.ExpectedU, 'InvalidUtf16TrailSurrogate': JsonErrorKind.InvalidUtf16TrailSurrogate, 'UnknownEscape': JsonErrorKind.UnknownEscape, 'InvalidUtf8': JsonErrorKind.InvalidUtf8})¶
- values = mappingproxy({0: JsonErrorKind.NoError, 1: JsonErrorKind.OutOfMemory, 2: JsonErrorKind.UnexpectedEnd, 3: JsonErrorKind.MissingRootElement, 4: JsonErrorKind.BadRoot, 5: JsonErrorKind.ExpectedComma, 6: JsonErrorKind.MissingObjectKey, 7: JsonErrorKind.ExpectedColon, 8: JsonErrorKind.ExpectedEndOfInput, 9: JsonErrorKind.UnexpectedComma, 10: JsonErrorKind.ExpectedValue, 11: JsonErrorKind.ExpectedNull, 12: JsonErrorKind.ExpectedFalse, 13: JsonErrorKind.ExpectedTrue, 14: JsonErrorKind.InvalidNumber, 15: JsonErrorKind.MissingExponent, 16: JsonErrorKind.IllegalCodepoint, 17: JsonErrorKind.InvalidUnicodeEscape, 18: JsonErrorKind.UnexpectedEndOfUtf16, 19: JsonErrorKind.ExpectedU, 20: JsonErrorKind.InvalidUtf16TrailSurrogate, 21: JsonErrorKind.UnknownEscape, 22: JsonErrorKind.InvalidUtf8})¶
- exception cosmolkit.KekulizeError(*args, **kwargs)¶
Failure in the kekulize domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
KekulizeError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (23)
- property actual: int | None¶
Observed value reported by the native check. Applies to KekulizeError.AtomSelectionLength, KekulizeError.BondSelectionLength, KekulizeError.MatchingStateLength. None when this payload is absent.
- property after: int | None¶
Readonly after payload of the PostconditionValenceMismatch error variant; None for other variants.
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to KekulizeError.CandidateAtomOutOfRange, KekulizeError.DuplicateCandidateAtom, KekulizeError.DuplicateDoneAtom, KekulizeError.MissingBacktrackAnchor, KekulizeError.AromaticAtomOutsideRing, KekulizeError.PostconditionValenceMismatch, KekulizeError.IntegerOverflow. None when this payload is absent.
- property atom_count: int | None¶
Readonly atom_count payload of the CandidateAtomOutOfRange error variant; None for other variants.
- property before: int | None¶
Readonly before payload of the PostconditionValenceMismatch error variant; None for other variants.
- property begin: int | None¶
Readonly begin payload of the MissingCandidateBond error variant; None for other variants.
- property bit_width: int | None¶
Readonly bit_width payload of the QuestionSubsetOverflow error variant; None for other variants.
- property bond: int | None¶
Readonly bond payload of the UnsupportedQueryState error variant; None for other variants.
- property canonical_rank: CanonicalRankError | None¶
“error_payload”} Structured CanonicalRankError payload of KekulizeError.CanonicalRank; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property detail: str | None¶
Readonly detail payload of the UnsupportedQueryState error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property end: int | None¶
Readonly end payload of the MissingCandidateBond error variant; None for other variants.
- property expected: int | None¶
Required value reported by the native check. Applies to KekulizeError.AtomSelectionLength, KekulizeError.BondSelectionLength, KekulizeError.MatchingStateLength. None when this payload is absent.
- property field: str | None¶
Field whose content or type caused the failure. Applies to KekulizeError.MatchingStateLength, KekulizeError.IntegerOverflow. None when this payload is absent.
- property problem_atoms: list[int] | None¶
Readonly problem_atoms payload of the NotKekulizable error variant; None for other variants.
- property query_state: QueryStateError | None¶
“error_payload”} Structured QueryStateError payload of KekulizeError.InvalidQueryState; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property questions: int | None¶
Readonly questions payload of the QuestionSubsetOverflow error variant; None for other variants.
- property ring_finding: RingFindingError | None¶
“error_payload”} Structured RingFindingError payload of KekulizeError.RingFinding; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of KekulizeError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of KekulizeError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: KekulizeErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.KekulizeErrorKind(value)¶
Discriminants of KekulizeErrorKind.
Members:
InvalidTopology,AtomSelectionLength,BondSelectionLength,CandidateAtomOutOfRange,DuplicateCandidateAtom,MatchingStateLength,DuplicateDoneAtom,MissingCandidateBond,MissingBacktrackAnchor,QuestionSubsetOverflow,AromaticAtomOutsideRing,NotKekulizable,PostconditionValenceMismatch,UnsupportedQueryState,InvalidQueryState,IntegerOverflow,RingFinding,Valence,CanonicalRank, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (22)
- AromaticAtomOutsideRing = KekulizeErrorKind.AromaticAtomOutsideRing¶
- AtomSelectionLength = KekulizeErrorKind.AtomSelectionLength¶
- BondSelectionLength = KekulizeErrorKind.BondSelectionLength¶
- CandidateAtomOutOfRange = KekulizeErrorKind.CandidateAtomOutOfRange¶
- CanonicalRank = KekulizeErrorKind.CanonicalRank¶
- DuplicateCandidateAtom = KekulizeErrorKind.DuplicateCandidateAtom¶
- DuplicateDoneAtom = KekulizeErrorKind.DuplicateDoneAtom¶
- IntegerOverflow = KekulizeErrorKind.IntegerOverflow¶
- InvalidQueryState = KekulizeErrorKind.InvalidQueryState¶
- InvalidTopology = KekulizeErrorKind.InvalidTopology¶
- MatchingStateLength = KekulizeErrorKind.MatchingStateLength¶
- MissingBacktrackAnchor = KekulizeErrorKind.MissingBacktrackAnchor¶
- MissingCandidateBond = KekulizeErrorKind.MissingCandidateBond¶
- NotKekulizable = KekulizeErrorKind.NotKekulizable¶
- PostconditionValenceMismatch = KekulizeErrorKind.PostconditionValenceMismatch¶
- QuestionSubsetOverflow = KekulizeErrorKind.QuestionSubsetOverflow¶
- RingFinding = KekulizeErrorKind.RingFinding¶
- UnsupportedQueryState = KekulizeErrorKind.UnsupportedQueryState¶
- Valence = KekulizeErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': KekulizeErrorKind.InvalidTopology, 'AtomSelectionLength': KekulizeErrorKind.AtomSelectionLength, 'BondSelectionLength': KekulizeErrorKind.BondSelectionLength, 'CandidateAtomOutOfRange': KekulizeErrorKind.CandidateAtomOutOfRange, 'DuplicateCandidateAtom': KekulizeErrorKind.DuplicateCandidateAtom, 'MatchingStateLength': KekulizeErrorKind.MatchingStateLength, 'DuplicateDoneAtom': KekulizeErrorKind.DuplicateDoneAtom, 'MissingCandidateBond': KekulizeErrorKind.MissingCandidateBond, 'MissingBacktrackAnchor': KekulizeErrorKind.MissingBacktrackAnchor, 'QuestionSubsetOverflow': KekulizeErrorKind.QuestionSubsetOverflow, 'AromaticAtomOutsideRing': KekulizeErrorKind.AromaticAtomOutsideRing, 'NotKekulizable': KekulizeErrorKind.NotKekulizable, 'PostconditionValenceMismatch': KekulizeErrorKind.PostconditionValenceMismatch, 'UnsupportedQueryState': KekulizeErrorKind.UnsupportedQueryState, 'InvalidQueryState': KekulizeErrorKind.InvalidQueryState, 'IntegerOverflow': KekulizeErrorKind.IntegerOverflow, 'RingFinding': KekulizeErrorKind.RingFinding, 'Valence': KekulizeErrorKind.Valence, 'CanonicalRank': KekulizeErrorKind.CanonicalRank})¶
- values = mappingproxy({0: KekulizeErrorKind.InvalidTopology, 1: KekulizeErrorKind.AtomSelectionLength, 2: KekulizeErrorKind.BondSelectionLength, 3: KekulizeErrorKind.CandidateAtomOutOfRange, 4: KekulizeErrorKind.DuplicateCandidateAtom, 5: KekulizeErrorKind.MatchingStateLength, 6: KekulizeErrorKind.DuplicateDoneAtom, 7: KekulizeErrorKind.MissingCandidateBond, 8: KekulizeErrorKind.MissingBacktrackAnchor, 9: KekulizeErrorKind.QuestionSubsetOverflow, 10: KekulizeErrorKind.AromaticAtomOutsideRing, 11: KekulizeErrorKind.NotKekulizable, 12: KekulizeErrorKind.PostconditionValenceMismatch, 13: KekulizeErrorKind.UnsupportedQueryState, 14: KekulizeErrorKind.InvalidQueryState, 15: KekulizeErrorKind.IntegerOverflow, 16: KekulizeErrorKind.RingFinding, 17: KekulizeErrorKind.Valence, 18: KekulizeErrorKind.CanonicalRank})¶
- class cosmolkit.KekulizeParams(*, mark_atoms_bonds=Ellipsis, canonical=Ellipsis, max_backtracks=Ellipsis)¶
Kekule bond assignment and aromatic-flag handling options.
- class cosmolkit.LabuteAsaContributions(asa, atom_contributions, hydrogen_contribution)¶
Labute approximate surface area with per-atom and aggregate hydrogen contributions.
- exception cosmolkit.LayeredFingerprintError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
LayeredFingerprintError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property reason: str | None¶
Readonly reason payload of the InvalidArguments error variant; None for other variants.
- property source: TopologyValidationError | QueryGraphError | RingFindingError | PathError | FingerprintError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: LayeredFingerprintErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.LayeredFingerprintErrorKind(value)¶
Discriminants of LayeredFingerprintErrorKind.
Members:
InvalidArguments,Topology,Query,Rings,Paths,Value, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (9)
- InvalidArguments = LayeredFingerprintErrorKind.InvalidArguments¶
- Paths = LayeredFingerprintErrorKind.Paths¶
- Query = LayeredFingerprintErrorKind.Query¶
- Rings = LayeredFingerprintErrorKind.Rings¶
- Topology = LayeredFingerprintErrorKind.Topology¶
- Value = LayeredFingerprintErrorKind.Value¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidArguments': LayeredFingerprintErrorKind.InvalidArguments, 'Topology': LayeredFingerprintErrorKind.Topology, 'Query': LayeredFingerprintErrorKind.Query, 'Rings': LayeredFingerprintErrorKind.Rings, 'Paths': LayeredFingerprintErrorKind.Paths, 'Value': LayeredFingerprintErrorKind.Value})¶
- values = mappingproxy({0: LayeredFingerprintErrorKind.InvalidArguments, 1: LayeredFingerprintErrorKind.Topology, 2: LayeredFingerprintErrorKind.Query, 3: LayeredFingerprintErrorKind.Rings, 4: LayeredFingerprintErrorKind.Paths, 5: LayeredFingerprintErrorKind.Value})¶
- class cosmolkit.LayeredFingerprintLayers¶
LayeredFingerprintLayers native option bit mask. Combine named constants with the bitwise OR operator; bits exposes its integer representation.
Members (12)
- ACTIVE = LayeredFingerprintLayers(LayeredFingerprintLayers(63))¶
- ALL_SOURCE_BITS = LayeredFingerprintLayers(LayeredFingerprintLayers(4294967295))¶
- AROMATICITY = LayeredFingerprintLayers(LayeredFingerprintLayers(32))¶
- ATOM_TYPE = LayeredFingerprintLayers(LayeredFingerprintLayers(4))¶
- BOND_ORDER = LayeredFingerprintLayers(LayeredFingerprintLayers(2))¶
- RING_PRESENCE = LayeredFingerprintLayers(LayeredFingerprintLayers(8))¶
- RING_SIZE = LayeredFingerprintLayers(LayeredFingerprintLayers(16))¶
- SUBSTRUCTURE = LayeredFingerprintLayers(LayeredFingerprintLayers(7))¶
- TOPOLOGY = LayeredFingerprintLayers(LayeredFingerprintLayers(1))¶
- bits: int¶
Integer representation of this option mask.
- contains(other) bool¶
Whether every bit in the supplied mask is present.
- static from_bits_retain(bits) LayeredFingerprintLayers¶
Construct a mask retaining all supplied bits, including unknown bits.
- class cosmolkit.LayeredFingerprintParams(*, layers=Ellipsis, min_path=Ellipsis, max_path=Ellipsis, fp_size=Ellipsis, atom_counts=Ellipsis, set_only_bits=Ellipsis, branched_paths=Ellipsis, from_atoms=Ellipsis)¶
Parameters for the source-backed Layered fingerprint API.
The defaults reproduce the source wrapper: all source flag bits, bond-path lengths 1 through 7, 2,048 output bits, branched path enumeration, no atom counts, no output-bit mask, and no root selection. from_atoms: None selects the whole graph, while Some(Vec::new()) is a present but empty root selection and therefore enumerates no paths.
Members (8)
- atom_counts: tuple[int, ...] | None¶
Optional seeded source atomCounts vector. Values are incremented and returned without clearing the caller-provided seed.
- branched_paths: bool¶
Enumerate branched subgraphs when true and linear paths when false. Unrooted linear paths preserve the pinned source’s atom-index selection and subsequent bond-index interpretation; invalid accesses return an error.
- fp_size: int¶
Explicit output width. Zero is rejected.
- from_atoms: tuple[int, ...] | None¶
None is an absent source pointer; Some(Vec::new()) is a present empty selection and therefore enumerates no paths.
- layers: int¶
Layer flags. Unknown high bits are retained and emit no components.
- max_path: int¶
Maximum path length, in the same units as min_path. Values below min_path are rejected.
- min_path: int¶
Minimum path length. The unrooted linear source branch counts atoms; branched and rooted paths count bonds. Zero is rejected as minPath==0.
- set_only_bits: Fingerprint | None¶
Optional projection mask, which must have exactly fp_size bits.
- class cosmolkit.LayeredFingerprintResult(fingerprint, atom_counts)¶
Layered fingerprint and optional atom contribution counts.
Members (2)
- atom_counts: list[int] | None¶
Optional per-atom contribution counts requested during fingerprint generation.
- fingerprint: Fingerprint¶
Generated bit fingerprint.
- exception cosmolkit.LegacyStereoError(*args, **kwargs)¶
Failure in the stereo domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
LegacyStereoError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (14)
- property atom_property: AtomPropertyError | None¶
“error_payload”} Structured AtomPropertyError payload of LegacyStereoError.AtomProperty; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property atropisomer: AtropisomerError | None¶
“error_payload”} Structured AtropisomerError payload of LegacyStereoError.Atropisomer; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property bond_value: BondValueError | None¶
“error_payload”} Structured BondValueError payload of LegacyStereoError.BondValue; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property cip_rank: CipRankError | None¶
“error_payload”} Structured CipRankError payload of LegacyStereoError.CipRank; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property double_bond: DoubleBondStereoError | None¶
“error_payload”} Structured DoubleBondStereoError payload of LegacyStereoError.DoubleBond; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property potential_stereo: PotentialStereoError | None¶
“error_payload”} Structured PotentialStereoError payload of LegacyStereoError.PotentialStereo; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property ring_finding: RingFindingError | None¶
“error_payload”} Structured RingFindingError payload of LegacyStereoError.RingFinding; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: StereoGroupError | ValenceError | ConjugationError | HybridizationError | RingFindingError | TopologyValidationError | CoordinateValidationError | BondValueError | StereoOrderError | AtomPropertyError | PropertyIntReadError | TemplateAttachmentOrderError | MappingValidationError | PropertyUIntReadError | CanonicalRankError | DoubleBondStereoError | MoleculePropertyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stereo_order: StereoOrderError | None¶
“error_payload”} Structured StereoOrderError payload of LegacyStereoError.StereoOrder; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of LegacyStereoError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of LegacyStereoError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: LegacyStereoErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.LegacyStereoErrorKind(value)¶
Discriminants of LegacyStereoErrorKind.
Members:
StereoGroup,InvalidTopology,CipRank,DoubleBond,StereoOrder,Valence,AtomProperty,BondValue,PotentialStereo,RingFinding,Atropisomer, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (14)
- AtomProperty = LegacyStereoErrorKind.AtomProperty¶
- Atropisomer = LegacyStereoErrorKind.Atropisomer¶
- BondValue = LegacyStereoErrorKind.BondValue¶
- CipRank = LegacyStereoErrorKind.CipRank¶
- DoubleBond = LegacyStereoErrorKind.DoubleBond¶
- InvalidTopology = LegacyStereoErrorKind.InvalidTopology¶
- PotentialStereo = LegacyStereoErrorKind.PotentialStereo¶
- RingFinding = LegacyStereoErrorKind.RingFinding¶
- StereoGroup = LegacyStereoErrorKind.StereoGroup¶
- StereoOrder = LegacyStereoErrorKind.StereoOrder¶
- Valence = LegacyStereoErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'StereoGroup': LegacyStereoErrorKind.StereoGroup, 'InvalidTopology': LegacyStereoErrorKind.InvalidTopology, 'CipRank': LegacyStereoErrorKind.CipRank, 'DoubleBond': LegacyStereoErrorKind.DoubleBond, 'StereoOrder': LegacyStereoErrorKind.StereoOrder, 'Valence': LegacyStereoErrorKind.Valence, 'AtomProperty': LegacyStereoErrorKind.AtomProperty, 'BondValue': LegacyStereoErrorKind.BondValue, 'PotentialStereo': LegacyStereoErrorKind.PotentialStereo, 'RingFinding': LegacyStereoErrorKind.RingFinding, 'Atropisomer': LegacyStereoErrorKind.Atropisomer})¶
- values = mappingproxy({0: LegacyStereoErrorKind.StereoGroup, 1: LegacyStereoErrorKind.InvalidTopology, 2: LegacyStereoErrorKind.CipRank, 3: LegacyStereoErrorKind.DoubleBond, 4: LegacyStereoErrorKind.StereoOrder, 5: LegacyStereoErrorKind.Valence, 6: LegacyStereoErrorKind.AtomProperty, 7: LegacyStereoErrorKind.BondValue, 8: LegacyStereoErrorKind.PotentialStereo, 9: LegacyStereoErrorKind.RingFinding, 10: LegacyStereoErrorKind.Atropisomer})¶
- class cosmolkit.LegacyTopologicalTorsionParams(*, torsion_atom_count=Ellipsis, include_chirality=Ellipsis, fp_size=Ellipsis, bits_per_entry=Ellipsis, from_atoms=Ellipsis, ignore_atoms=Ellipsis, custom_atom_invariants=Ellipsis)¶
Immutable call configuration preserving source optional-vector semantics.
Members (8)
- bits_per_entry: int¶
Number of bits used for count simulation per torsion.
- custom_atom_invariants: tuple[int, ...] | None¶
Optional per-atom invariant values replacing generated invariants.
- fp_size: int¶
Number of bins in hashed fingerprints.
- from_atoms: tuple[int, ...] | None¶
Optional atom indices restricting torsion endpoints.
- ignore_atoms: tuple[int, ...] | None¶
Optional atom indices excluded from torsion paths.
- include_chirality: bool¶
Include atom chirality in torsion codes.
- static new(torsion_atom_count=Ellipsis, include_chirality=Ellipsis, fp_size=Ellipsis, bits_per_entry=Ellipsis, from_atoms=Ellipsis, ignore_atoms=Ellipsis, custom_atom_invariants=Ellipsis) LegacyTopologicalTorsionParams¶
Create an independent configuration through the native constructor using the supplied field values.
- torsion_atom_count: int¶
Number of atoms in each torsion path.
- class cosmolkit.LigandRef(atom=None)¶
Tetrahedral ligand represented by an atom, implicit hydrogen or lone pair.
- exception cosmolkit.MaccsFingerprintError(*args, **kwargs)¶
Failure in the fingerprint domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MaccsFingerprintError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property bit: int | None¶
Readonly bit payload of the MissingPattern error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property option: str | None¶
Readonly option payload of the UnsupportedOption error variant; None for other variants.
- property reason: str | None¶
Readonly reason payload of the UnsupportedOption error variant; None for other variants.
- property source: TopologyValidationError | RingFindingError | ValenceError | PathError | SmartsParseError | QueryCompileError | QueryMatchContextError | SubstructMatchError | FingerprintError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MaccsFingerprintErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MaccsFingerprintErrorKind(value)¶
Discriminants of MaccsFingerprintErrorKind.
Members:
UnsupportedOption,MissingPattern,Topology,Rings,Valence,Paths,Smarts,QueryCompile,QueryContext,Match,Value, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (14)
- Match = MaccsFingerprintErrorKind.Match¶
- MissingPattern = MaccsFingerprintErrorKind.MissingPattern¶
- Paths = MaccsFingerprintErrorKind.Paths¶
- QueryCompile = MaccsFingerprintErrorKind.QueryCompile¶
- QueryContext = MaccsFingerprintErrorKind.QueryContext¶
- Rings = MaccsFingerprintErrorKind.Rings¶
- Smarts = MaccsFingerprintErrorKind.Smarts¶
- Topology = MaccsFingerprintErrorKind.Topology¶
- UnsupportedOption = MaccsFingerprintErrorKind.UnsupportedOption¶
- Valence = MaccsFingerprintErrorKind.Valence¶
- Value = MaccsFingerprintErrorKind.Value¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'UnsupportedOption': MaccsFingerprintErrorKind.UnsupportedOption, 'MissingPattern': MaccsFingerprintErrorKind.MissingPattern, 'Topology': MaccsFingerprintErrorKind.Topology, 'Rings': MaccsFingerprintErrorKind.Rings, 'Valence': MaccsFingerprintErrorKind.Valence, 'Paths': MaccsFingerprintErrorKind.Paths, 'Smarts': MaccsFingerprintErrorKind.Smarts, 'QueryCompile': MaccsFingerprintErrorKind.QueryCompile, 'QueryContext': MaccsFingerprintErrorKind.QueryContext, 'Match': MaccsFingerprintErrorKind.Match, 'Value': MaccsFingerprintErrorKind.Value})¶
- values = mappingproxy({0: MaccsFingerprintErrorKind.UnsupportedOption, 1: MaccsFingerprintErrorKind.MissingPattern, 2: MaccsFingerprintErrorKind.Topology, 3: MaccsFingerprintErrorKind.Rings, 4: MaccsFingerprintErrorKind.Valence, 5: MaccsFingerprintErrorKind.Paths, 6: MaccsFingerprintErrorKind.Smarts, 7: MaccsFingerprintErrorKind.QueryCompile, 8: MaccsFingerprintErrorKind.QueryContext, 9: MaccsFingerprintErrorKind.Match, 10: MaccsFingerprintErrorKind.Value})¶
- class cosmolkit.MaccsFingerprintParams(*, n_bits=Ellipsis)¶
Exact source fixed-width public projection. Other widths remain source-defined rejected options.
Members (1)
- n_bits: int¶
MACCS public fingerprint width; the supported fixed width is 166 bits.
- exception cosmolkit.MappingValidationError(*args, **kwargs)¶
Failure in the model domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MappingValidationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (10)
- property actual: int | None¶
Readonly actual payload of the Length error variant; None for other variants.
- property direction: str¶
Direction of the atom or bond mapping that failed validation.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property entity: str¶
Structural entity involved in the failure. Applies to MappingValidationError.Length, MappingValidationError.OutOfRange, MappingValidationError.InverseMismatch.
- property expected: int | None¶
Readonly expected payload of the Length error variant; None for other variants.
- property mapped: int | None¶
Mapped identifier rejected during validation. Present for MappingValidationError.OutOfRange, MappingValidationError.InverseMismatch; None when unavailable.
- property row: int | None¶
Row reported by the native failure. Applies to MappingValidationError.OutOfRange, MappingValidationError.InverseMismatch. None when this payload is absent.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property target_count: int | None¶
Readonly target_count payload of the OutOfRange error variant; None for other variants.
- property variant: MappingValidationErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MappingValidationErrorKind(value)¶
Discriminants of MappingValidationErrorKind.
Members:
Length,OutOfRange,InverseMismatch, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- InverseMismatch = MappingValidationErrorKind.InverseMismatch¶
- Length = MappingValidationErrorKind.Length¶
- OutOfRange = MappingValidationErrorKind.OutOfRange¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Length': MappingValidationErrorKind.Length, 'OutOfRange': MappingValidationErrorKind.OutOfRange, 'InverseMismatch': MappingValidationErrorKind.InverseMismatch})¶
- values = mappingproxy({0: MappingValidationErrorKind.Length, 1: MappingValidationErrorKind.OutOfRange, 2: MappingValidationErrorKind.InverseMismatch})¶
- exception cosmolkit.MatchError(*args, **kwargs)¶
Failure in the search domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MatchError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (9)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property invalid_query: str | None¶
Explanation of an invalid query, or None for another failure.
- property invalid_target: str | None¶
Explanation of an invalid target, or None for another failure.
- property source: PropertyUIntReadError | AtomPropertyError | PropertyIntReadError | TopologyValidationError | RingFindingError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property substruct: SubstructMatchError | None¶
“error_payload”} Structured SubstructMatchError payload of MatchError.Substruct; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property unsupported_atom_predicate: str | None¶
Unsupported atom predicate name; None for other failures.
- property unsupported_bond_predicate: str | None¶
Unsupported bond predicate name; None for other failures.
- property variant: MatchErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MatchErrorKind(value)¶
Discriminants of MatchErrorKind.
Members:
InvalidQuery,InvalidTarget,UnsupportedAtomPredicate,UnsupportedBondPredicate,Substruct, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- InvalidQuery = MatchErrorKind.InvalidQuery¶
- InvalidTarget = MatchErrorKind.InvalidTarget¶
- Substruct = MatchErrorKind.Substruct¶
- UnsupportedAtomPredicate = MatchErrorKind.UnsupportedAtomPredicate¶
- UnsupportedBondPredicate = MatchErrorKind.UnsupportedBondPredicate¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidQuery': MatchErrorKind.InvalidQuery, 'InvalidTarget': MatchErrorKind.InvalidTarget, 'UnsupportedAtomPredicate': MatchErrorKind.UnsupportedAtomPredicate, 'UnsupportedBondPredicate': MatchErrorKind.UnsupportedBondPredicate, 'Substruct': MatchErrorKind.Substruct})¶
- values = mappingproxy({0: MatchErrorKind.InvalidQuery, 1: MatchErrorKind.InvalidTarget, 2: MatchErrorKind.UnsupportedAtomPredicate, 3: MatchErrorKind.UnsupportedBondPredicate, 4: MatchErrorKind.Substruct})¶
- class cosmolkit.MatchResult(atom_mapping, bond_mapping)¶
Atom and bond correspondences returned by native substructure matching.
- class cosmolkit.MatrixAxis(value)¶
Typed MatrixAxis values corresponding to the Rust enum.
Members:
Row,Column, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.
- exception cosmolkit.MatrixError(*args, **kwargs)¶
Failure in the matrix domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MatrixError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (17)
- property atom: int | None¶
Atom identifier implicated in the failure. Applies to MatrixError.ActiveAtomOutOfRange, MatrixError.DuplicateActiveAtom, MatrixError.ActiveBondEndpointMissing. None when this payload is absent.
- property atom_count: int | None¶
Atom count used when validating the reported atom reference. Applies to MatrixError.ActiveAtomOutOfRange. None when this payload is absent.
- property bond: int | None¶
Bond identifier implicated in the failure. Applies to MatrixError.ActiveBondOutOfRange, MatrixError.DuplicateActiveBond, MatrixError.ActiveBondEndpointMissing, MatrixError.UnsupportedBondOrder. None when this payload is absent.
- property bond_count: int | None¶
Bond count used when validating the reported bond reference. Applies to MatrixError.ActiveBondOutOfRange. None when this payload is absent.
- property conformer_id: int | None¶
Readonly conformer_id payload of the ConformerNotFound error variant; None for other variants.
- property coordinates: CoordinateValidationError | None¶
“error_payload”} Structured CoordinateValidationError payload of MatrixError.InvalidCoordinates; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property dimension: int | None¶
Readonly dimension payload of the MatrixDimensionOverflow error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property endpoint: str | None¶
Readonly endpoint payload of the ActiveBondEndpointMissing error variant; None for other variants.
- property first_position: int | None¶
First position involved in the reported conflict. Applies to MatrixError.DuplicateActiveAtom, MatrixError.DuplicateActiveBond. None when this payload is absent.
- property order: BondOrder | None¶
Readonly order payload of the UnsupportedBondOrder error variant; None for other variants.
- property position: int | None¶
Position reported by the native failure. Applies to MatrixError.ActiveAtomOutOfRange, MatrixError.ActiveBondOutOfRange. None when this payload is absent.
- property second_position: int | None¶
Second position involved in the reported conflict. Applies to MatrixError.DuplicateActiveAtom, MatrixError.DuplicateActiveBond. None when this payload is absent.
- property source: StereoGroupError | TemplateAttachmentOrderError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property topology: TopologyValidationError | None¶
“error_payload”} Structured TopologyValidationError payload of MatrixError.InvalidTopology; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: MatrixErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MatrixErrorKind(value)¶
Discriminants of MatrixErrorKind.
Members:
InvalidTopology,InvalidCoordinates,ActiveBondsWithoutAtoms,ActiveAtomOutOfRange,DuplicateActiveAtom,ActiveBondOutOfRange,DuplicateActiveBond,ActiveBondEndpointMissing,UnsupportedBondOrder,No3dConformer,ConformerNotFound,MatrixDimensionOverflow, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (15)
- ActiveAtomOutOfRange = MatrixErrorKind.ActiveAtomOutOfRange¶
- ActiveBondEndpointMissing = MatrixErrorKind.ActiveBondEndpointMissing¶
- ActiveBondOutOfRange = MatrixErrorKind.ActiveBondOutOfRange¶
- ActiveBondsWithoutAtoms = MatrixErrorKind.ActiveBondsWithoutAtoms¶
- ConformerNotFound = MatrixErrorKind.ConformerNotFound¶
- DuplicateActiveAtom = MatrixErrorKind.DuplicateActiveAtom¶
- DuplicateActiveBond = MatrixErrorKind.DuplicateActiveBond¶
- InvalidCoordinates = MatrixErrorKind.InvalidCoordinates¶
- InvalidTopology = MatrixErrorKind.InvalidTopology¶
- MatrixDimensionOverflow = MatrixErrorKind.MatrixDimensionOverflow¶
- No3dConformer = MatrixErrorKind.No3dConformer¶
- UnsupportedBondOrder = MatrixErrorKind.UnsupportedBondOrder¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidTopology': MatrixErrorKind.InvalidTopology, 'InvalidCoordinates': MatrixErrorKind.InvalidCoordinates, 'ActiveBondsWithoutAtoms': MatrixErrorKind.ActiveBondsWithoutAtoms, 'ActiveAtomOutOfRange': MatrixErrorKind.ActiveAtomOutOfRange, 'DuplicateActiveAtom': MatrixErrorKind.DuplicateActiveAtom, 'ActiveBondOutOfRange': MatrixErrorKind.ActiveBondOutOfRange, 'DuplicateActiveBond': MatrixErrorKind.DuplicateActiveBond, 'ActiveBondEndpointMissing': MatrixErrorKind.ActiveBondEndpointMissing, 'UnsupportedBondOrder': MatrixErrorKind.UnsupportedBondOrder, 'No3dConformer': MatrixErrorKind.No3dConformer, 'ConformerNotFound': MatrixErrorKind.ConformerNotFound, 'MatrixDimensionOverflow': MatrixErrorKind.MatrixDimensionOverflow})¶
- values = mappingproxy({0: MatrixErrorKind.InvalidTopology, 1: MatrixErrorKind.InvalidCoordinates, 2: MatrixErrorKind.ActiveBondsWithoutAtoms, 3: MatrixErrorKind.ActiveAtomOutOfRange, 4: MatrixErrorKind.DuplicateActiveAtom, 5: MatrixErrorKind.ActiveBondOutOfRange, 6: MatrixErrorKind.DuplicateActiveBond, 7: MatrixErrorKind.ActiveBondEndpointMissing, 8: MatrixErrorKind.UnsupportedBondOrder, 9: MatrixErrorKind.No3dConformer, 10: MatrixErrorKind.ConformerNotFound, 11: MatrixErrorKind.MatrixDimensionOverflow})¶
- class cosmolkit.McsAtomComparator(value)¶
Typed McsAtomComparator values corresponding to the Rust enum.
Members:
Any,Elements,Isotopes,AnyHeavyAtom, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (7)
- Any = McsAtomComparator.Any¶
- AnyHeavyAtom = McsAtomComparator.AnyHeavyAtom¶
- Elements = McsAtomComparator.Elements¶
- Isotopes = McsAtomComparator.Isotopes¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Any': McsAtomComparator.Any, 'Elements': McsAtomComparator.Elements, 'Isotopes': McsAtomComparator.Isotopes, 'AnyHeavyAtom': McsAtomComparator.AnyHeavyAtom})¶
- values = mappingproxy({0: McsAtomComparator.Any, 1: McsAtomComparator.Elements, 2: McsAtomComparator.Isotopes, 3: McsAtomComparator.AnyHeavyAtom})¶
- class cosmolkit.McsAtomCompareParameters(*, match_valences=Ellipsis, match_chiral_tag=Ellipsis, match_formal_charge=Ellipsis, ring_matches_ring_only=Ellipsis, complete_rings_only=Ellipsis, match_isotope=Ellipsis, max_distance=Ellipsis)¶
Atom-side FMCS comparison options.
Members (7)
- complete_rings_only: bool¶
Permit only complete rings in the common substructure.
- match_chiral_tag: bool¶
Require compatible atom chirality.
- match_formal_charge: bool¶
Require equal formal charges.
- match_isotope: bool¶
Require matching isotope labels.
- match_valences: bool¶
Require matching atom valences.
- max_distance: float¶
Maximum distance between matching atoms in angstroms; a negative value disables this check.
- ring_matches_ring_only: bool¶
Match ring atoms only to ring atoms.
- class cosmolkit.McsBondComparator(value)¶
Typed McsBondComparator values corresponding to the Rust enum.
Members:
Any,Order,OrderExact, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (6)
- Any = McsBondComparator.Any¶
- Order = McsBondComparator.Order¶
- OrderExact = McsBondComparator.OrderExact¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Any': McsBondComparator.Any, 'Order': McsBondComparator.Order, 'OrderExact': McsBondComparator.OrderExact})¶
- values = mappingproxy({0: McsBondComparator.Any, 1: McsBondComparator.Order, 2: McsBondComparator.OrderExact})¶
- class cosmolkit.McsBondCompareParameters(*, ring_matches_ring_only=Ellipsis, complete_rings_only=Ellipsis, match_fused_rings=Ellipsis, match_fused_rings_strict=Ellipsis, match_stereo=Ellipsis)¶
Bond-side FMCS comparison options.
Members (5)
- complete_rings_only: bool¶
Permit only complete rings in the common substructure.
- match_fused_rings: bool¶
Require compatible fused-ring membership.
- match_fused_rings_strict: bool¶
Require strict matching of fused-ring topology.
- match_stereo: bool¶
Require compatible bond stereochemistry.
- ring_matches_ring_only: bool¶
Match ring bonds only to ring bonds.
- exception cosmolkit.McsError(*args, **kwargs)¶
Failure in the search domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
McsError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (21)
- property begin: int | None¶
Beginning endpoint reported by the native check. Applies to McsError.MappedBondMissing, McsError.SeedReconstructionBondMissing. None when this payload is absent.
- property bond: int | None¶
Bond identifier implicated in the failure. Applies to McsError.RingMembershipMissing, McsError.InitialSeedBondMissing. None when this payload is absent.
- property column: int | None¶
Readonly column payload of the MatchTableOutOfRange error variant; None for other variants.
- property count: int | None¶
Readonly count payload of the TooManyNewBonds error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property end: int | None¶
Ending endpoint reported by the native check. Applies to McsError.MappedBondMissing, McsError.SeedReconstructionBondMissing. None when this payload is absent.
- property kind: str | None¶
Native failure-specific category or value kind. Applies to McsError.MatchTableOutOfRange, McsError.ResultValueOutOfRange. None when this payload is absent.
- property message: str | None¶
Detailed native diagnostic message. Applies to McsError.InitialSeedParse, McsError.InitialSeedMatch, McsError.ResultQueryGraph, McsError.ResultSmarts. None when this payload is absent.
- property progress: McsProgressError | None¶
“error_payload”} Structured McsProgressError payload of McsError.Progress; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property ring: int | None¶
Readonly ring payload of the RingOutOfRange error variant; None for other variants.
- property row: int | None¶
Readonly row payload of the MatchTableOutOfRange error variant; None for other variants.
- property side: str | None¶
Readonly side payload of the MappedBondMissing error variant; None for other variants.
- property source: PropertyUIntReadError | AtomPropertyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property state: SearchMcsError | None¶
“error_payload”} Structured SearchMcsError payload of McsError.State; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property stereo_order: StereoOrderError | None¶
“error_payload”} Structured StereoOrderError payload of McsError.StereoOrder; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property tables: int | None¶
Readonly tables payload of the TargetTableCount error variant; None for other variants.
- property targets: int | None¶
Number of targets associated with the failed count check, or None when not applicable.
- property threshold: int | None¶
Readonly threshold payload of the ThresholdCountOutOfRange error variant; None for other variants.
- property value: int | None¶
Readonly value payload of the ResultValueOutOfRange error variant; None for other variants.
- property variant: McsErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.McsErrorKind(value)¶
Discriminants of McsErrorKind.
Members:
TargetTableCount,ThresholdCountOutOfRange,MatchTableOutOfRange,RingMembershipMissing,RingOutOfRange,MappedBondMissing,StereoOrder,TooManyNewBonds,InitialSeedParse,InitialSeedMatch,InitialSeedBondMissing,ResultValueOutOfRange,ResultQueryGraph,ResultSmarts,SeedReconstructionBondMissing,ResultContextMissing,Progress,State, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (21)
- InitialSeedBondMissing = McsErrorKind.InitialSeedBondMissing¶
- InitialSeedMatch = McsErrorKind.InitialSeedMatch¶
- InitialSeedParse = McsErrorKind.InitialSeedParse¶
- MappedBondMissing = McsErrorKind.MappedBondMissing¶
- MatchTableOutOfRange = McsErrorKind.MatchTableOutOfRange¶
- Progress = McsErrorKind.Progress¶
- ResultContextMissing = McsErrorKind.ResultContextMissing¶
- ResultQueryGraph = McsErrorKind.ResultQueryGraph¶
- ResultSmarts = McsErrorKind.ResultSmarts¶
- ResultValueOutOfRange = McsErrorKind.ResultValueOutOfRange¶
- RingMembershipMissing = McsErrorKind.RingMembershipMissing¶
- RingOutOfRange = McsErrorKind.RingOutOfRange¶
- SeedReconstructionBondMissing = McsErrorKind.SeedReconstructionBondMissing¶
- State = McsErrorKind.State¶
- StereoOrder = McsErrorKind.StereoOrder¶
- TargetTableCount = McsErrorKind.TargetTableCount¶
- ThresholdCountOutOfRange = McsErrorKind.ThresholdCountOutOfRange¶
- TooManyNewBonds = McsErrorKind.TooManyNewBonds¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'TargetTableCount': McsErrorKind.TargetTableCount, 'ThresholdCountOutOfRange': McsErrorKind.ThresholdCountOutOfRange, 'MatchTableOutOfRange': McsErrorKind.MatchTableOutOfRange, 'RingMembershipMissing': McsErrorKind.RingMembershipMissing, 'RingOutOfRange': McsErrorKind.RingOutOfRange, 'MappedBondMissing': McsErrorKind.MappedBondMissing, 'StereoOrder': McsErrorKind.StereoOrder, 'TooManyNewBonds': McsErrorKind.TooManyNewBonds, 'InitialSeedParse': McsErrorKind.InitialSeedParse, 'InitialSeedMatch': McsErrorKind.InitialSeedMatch, 'InitialSeedBondMissing': McsErrorKind.InitialSeedBondMissing, 'ResultValueOutOfRange': McsErrorKind.ResultValueOutOfRange, 'ResultQueryGraph': McsErrorKind.ResultQueryGraph, 'ResultSmarts': McsErrorKind.ResultSmarts, 'SeedReconstructionBondMissing': McsErrorKind.SeedReconstructionBondMissing, 'ResultContextMissing': McsErrorKind.ResultContextMissing, 'Progress': McsErrorKind.Progress, 'State': McsErrorKind.State})¶
- values = mappingproxy({0: McsErrorKind.TargetTableCount, 1: McsErrorKind.ThresholdCountOutOfRange, 2: McsErrorKind.MatchTableOutOfRange, 3: McsErrorKind.RingMembershipMissing, 4: McsErrorKind.RingOutOfRange, 5: McsErrorKind.MappedBondMissing, 6: McsErrorKind.StereoOrder, 7: McsErrorKind.TooManyNewBonds, 8: McsErrorKind.InitialSeedParse, 9: McsErrorKind.InitialSeedMatch, 10: McsErrorKind.InitialSeedBondMissing, 11: McsErrorKind.ResultValueOutOfRange, 12: McsErrorKind.ResultQueryGraph, 13: McsErrorKind.ResultSmarts, 14: McsErrorKind.SeedReconstructionBondMissing, 15: McsErrorKind.ResultContextMissing, 16: McsErrorKind.Progress, 17: McsErrorKind.State})¶
- class cosmolkit.McsParameters(*, store_all=Ellipsis, maximize_bonds=Ellipsis, threshold=Ellipsis, timeout=Ellipsis, verbose=Ellipsis, atom_compare_parameters=Ellipsis, bond_compare_parameters=Ellipsis, atom_comparator=Ellipsis, bond_comparator=Ellipsis, initial_seed=Ellipsis)¶
Detached FMCS parameter value.
Members (10)
- atom_comparator: McsAtomComparator¶
Policy used to compare candidate atoms.
- atom_compare_parameters: McsAtomCompareParameters¶
Atom matching constraints applied in addition to the selected atom comparator.
- bond_comparator: McsBondComparator¶
Policy used to compare candidate bonds.
- bond_compare_parameters: McsBondCompareParameters¶
Bond matching constraints applied in addition to the selected bond comparator.
- initial_seed: str¶
Initial query seed as SMARTS; an empty string supplies no explicit seed.
- maximize_bonds: bool¶
Maximize the number of matched bonds rather than matched atoms.
- store_all: bool¶
Retain all degenerate maximum-common-substructure solutions.
- threshold: float¶
Minimum fraction of input molecules that must contain the common substructure.
- timeout: int¶
Search timeout in seconds.
- verbose: bool¶
Enable native search diagnostics.
- exception cosmolkit.McsProgressError(*args, **kwargs)¶
Failure in the search domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
McsProgressError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property message: str | None¶
Readonly message payload of the Callback error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: McsProgressErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.McsProgressErrorKind(value)¶
Discriminants of McsProgressErrorKind.
Members:
Callback, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.
- class cosmolkit.McsResult¶
Native maximum-common-substructure result, completion state and retained query graphs.
Members (6)
- atom_count: int¶
Number of atoms in the reported common substructure.
- bond_count: int¶
Number of bonds in the reported common substructure.
- completed: bool¶
Whether the native search completed rather than stopping early.
- degenerate: dict[str, QueryGraph]¶
Alternative maximum-common-substructure query graphs keyed by their SMARTS.
- query: QueryGraph | None¶
Maximum-common-substructure query graph, or None if no query was produced.
- smarts: str¶
SMARTS representation of the reported common substructure.
- exception cosmolkit.MissingAtomSiteIdentityField(*args, **kwargs)¶
MissingAtomSiteIdentityField is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property field: AtomSiteIdentityField¶
“error_payload”} Required atom-site identity field absent from the mmCIF table.
- Type:
{“role”
- exception cosmolkit.MissingExplicitHydrogensError(*args, **kwargs)¶
MissingExplicitHydrogensError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: UffBuilderError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- exception cosmolkit.MissingPropertyError(*args, **kwargs)¶
MissingPropertyError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
- exception cosmolkit.MmcifAssemblyError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifAssemblyError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: CifReadError | MmcifCrystalInfoError | MmcifOperationExprError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmcifAssemblyErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifAssemblyErrorKind(value)¶
Discriminants of MmcifAssemblyErrorKind.
Members:
Cif,Transform,OperationExpr, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Cif = MmcifAssemblyErrorKind.Cif¶
- OperationExpr = MmcifAssemblyErrorKind.OperationExpr¶
- Transform = MmcifAssemblyErrorKind.Transform¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifAssemblyErrorKind.Cif, 'Transform': MmcifAssemblyErrorKind.Transform, 'OperationExpr': MmcifAssemblyErrorKind.OperationExpr})¶
- values = mappingproxy({0: MmcifAssemblyErrorKind.Cif, 1: MmcifAssemblyErrorKind.Transform, 2: MmcifAssemblyErrorKind.OperationExpr})¶
- exception cosmolkit.MmcifAtomSiteGroupingError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifAtomSiteGroupingError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (8)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property index: int | None¶
Readonly index payload of the UndefinedGroupPdbIndex error variant; None for other variants.
- property length: int | None¶
Readonly length payload of the UndefinedGroupPdbIndex error variant; None for other variants.
- property row_index: int | None¶
Readonly row_index payload of the MissingActiveModel error variant; None for other variants.
- property source: MissingAtomSiteIdentityField | MmcifSequenceIdError | MmcifAtomSiteScalarError | CifReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to MmcifAtomSiteGroupingError.AtomNameNotRepresentable, MmcifAtomSiteGroupingError.AuthorChainIdNotRepresentable, MmcifAtomSiteGroupingError.ResidueNameNotRepresentable, MmcifAtomSiteGroupingError.ResidueAddressNotRepresentable, MmcifAtomSiteGroupingError.UndefinedGroupPdbIndex. None when this payload is absent.
- property variant: MmcifAtomSiteGroupingErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifAtomSiteGroupingErrorKind(value)¶
Discriminants of MmcifAtomSiteGroupingErrorKind.
Members:
IdentityField,SequenceId,AtomNameNotRepresentable,AtomScalar,ModelNumber,LabelSequenceNumber,AuthorChainIdNotRepresentable,ResidueNameNotRepresentable,ResidueAddressNotRepresentable,ResidueSourceIdsNotRepresentable,UndefinedGroupPdbIndex,MissingActiveModel, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (15)
- AtomNameNotRepresentable = MmcifAtomSiteGroupingErrorKind.AtomNameNotRepresentable¶
- AtomScalar = MmcifAtomSiteGroupingErrorKind.AtomScalar¶
- AuthorChainIdNotRepresentable = MmcifAtomSiteGroupingErrorKind.AuthorChainIdNotRepresentable¶
- IdentityField = MmcifAtomSiteGroupingErrorKind.IdentityField¶
- LabelSequenceNumber = MmcifAtomSiteGroupingErrorKind.LabelSequenceNumber¶
- MissingActiveModel = MmcifAtomSiteGroupingErrorKind.MissingActiveModel¶
- ModelNumber = MmcifAtomSiteGroupingErrorKind.ModelNumber¶
- ResidueAddressNotRepresentable = MmcifAtomSiteGroupingErrorKind.ResidueAddressNotRepresentable¶
- ResidueNameNotRepresentable = MmcifAtomSiteGroupingErrorKind.ResidueNameNotRepresentable¶
- ResidueSourceIdsNotRepresentable = MmcifAtomSiteGroupingErrorKind.ResidueSourceIdsNotRepresentable¶
- SequenceId = MmcifAtomSiteGroupingErrorKind.SequenceId¶
- UndefinedGroupPdbIndex = MmcifAtomSiteGroupingErrorKind.UndefinedGroupPdbIndex¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'IdentityField': MmcifAtomSiteGroupingErrorKind.IdentityField, 'SequenceId': MmcifAtomSiteGroupingErrorKind.SequenceId, 'AtomNameNotRepresentable': MmcifAtomSiteGroupingErrorKind.AtomNameNotRepresentable, 'AtomScalar': MmcifAtomSiteGroupingErrorKind.AtomScalar, 'ModelNumber': MmcifAtomSiteGroupingErrorKind.ModelNumber, 'LabelSequenceNumber': MmcifAtomSiteGroupingErrorKind.LabelSequenceNumber, 'AuthorChainIdNotRepresentable': MmcifAtomSiteGroupingErrorKind.AuthorChainIdNotRepresentable, 'ResidueNameNotRepresentable': MmcifAtomSiteGroupingErrorKind.ResidueNameNotRepresentable, 'ResidueAddressNotRepresentable': MmcifAtomSiteGroupingErrorKind.ResidueAddressNotRepresentable, 'ResidueSourceIdsNotRepresentable': MmcifAtomSiteGroupingErrorKind.ResidueSourceIdsNotRepresentable, 'UndefinedGroupPdbIndex': MmcifAtomSiteGroupingErrorKind.UndefinedGroupPdbIndex, 'MissingActiveModel': MmcifAtomSiteGroupingErrorKind.MissingActiveModel})¶
- values = mappingproxy({0: MmcifAtomSiteGroupingErrorKind.IdentityField, 1: MmcifAtomSiteGroupingErrorKind.SequenceId, 2: MmcifAtomSiteGroupingErrorKind.AtomNameNotRepresentable, 3: MmcifAtomSiteGroupingErrorKind.AtomScalar, 4: MmcifAtomSiteGroupingErrorKind.ModelNumber, 5: MmcifAtomSiteGroupingErrorKind.LabelSequenceNumber, 6: MmcifAtomSiteGroupingErrorKind.AuthorChainIdNotRepresentable, 7: MmcifAtomSiteGroupingErrorKind.ResidueNameNotRepresentable, 8: MmcifAtomSiteGroupingErrorKind.ResidueAddressNotRepresentable, 9: MmcifAtomSiteGroupingErrorKind.ResidueSourceIdsNotRepresentable, 10: MmcifAtomSiteGroupingErrorKind.UndefinedGroupPdbIndex, 11: MmcifAtomSiteGroupingErrorKind.MissingActiveModel})¶
- exception cosmolkit.MmcifAtomSiteRowOutOfBounds(*args, **kwargs)¶
MmcifAtomSiteRowOutOfBounds is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
- exception cosmolkit.MmcifAtomSiteScalarError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifAtomSiteScalarError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: CifReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to MmcifAtomSiteScalarError.SerialOutsideSourceDefinedRange, MmcifAtomSiteScalarError.TlsOutsideSourceDefinedRange. None when this payload is absent.
- property variant: MmcifAtomSiteScalarErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifAtomSiteScalarErrorKind(value)¶
Discriminants of MmcifAtomSiteScalarErrorKind.
Members:
SerialOutsideSourceDefinedRange,TlsOutsideSourceDefinedRange,CifCharacter,CifInteger,CifNumber, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- CifCharacter = MmcifAtomSiteScalarErrorKind.CifCharacter¶
- CifInteger = MmcifAtomSiteScalarErrorKind.CifInteger¶
- CifNumber = MmcifAtomSiteScalarErrorKind.CifNumber¶
- SerialOutsideSourceDefinedRange = MmcifAtomSiteScalarErrorKind.SerialOutsideSourceDefinedRange¶
- TlsOutsideSourceDefinedRange = MmcifAtomSiteScalarErrorKind.TlsOutsideSourceDefinedRange¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'SerialOutsideSourceDefinedRange': MmcifAtomSiteScalarErrorKind.SerialOutsideSourceDefinedRange, 'TlsOutsideSourceDefinedRange': MmcifAtomSiteScalarErrorKind.TlsOutsideSourceDefinedRange, 'CifCharacter': MmcifAtomSiteScalarErrorKind.CifCharacter, 'CifInteger': MmcifAtomSiteScalarErrorKind.CifInteger, 'CifNumber': MmcifAtomSiteScalarErrorKind.CifNumber})¶
- values = mappingproxy({0: MmcifAtomSiteScalarErrorKind.SerialOutsideSourceDefinedRange, 1: MmcifAtomSiteScalarErrorKind.TlsOutsideSourceDefinedRange, 2: MmcifAtomSiteScalarErrorKind.CifCharacter, 3: MmcifAtomSiteScalarErrorKind.CifInteger, 4: MmcifAtomSiteScalarErrorKind.CifNumber})¶
- exception cosmolkit.MmcifCcdRestoreError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifCcdRestoreError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: PdbResidueKeyError | FromUtf8Error | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmcifCcdRestoreErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifCcdRestoreErrorKind(value)¶
Discriminants of MmcifCcdRestoreErrorKind.
Members:
Residue,SequenceUtf8, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Residue = MmcifCcdRestoreErrorKind.Residue¶
- SequenceUtf8 = MmcifCcdRestoreErrorKind.SequenceUtf8¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Residue': MmcifCcdRestoreErrorKind.Residue, 'SequenceUtf8': MmcifCcdRestoreErrorKind.SequenceUtf8})¶
- values = mappingproxy({0: MmcifCcdRestoreErrorKind.Residue, 1: MmcifCcdRestoreErrorKind.SequenceUtf8})¶
- exception cosmolkit.MmcifCisPepError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifCisPepError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property error: MmcifSequenceIdError | None¶
“error_payload”} Structured native error payload. Present for MmcifCisPepError.SequenceId; None when unavailable.
- Type:
{“role”
- property partner: str | None¶
Partner atom or endpoint involved in the native check. Applies to MmcifCisPepError.ChainNameNotRepresentable, MmcifCisPepError.ResidueNameNotRepresentable, MmcifCisPepError.ResidueAddressNotRepresentable, MmcifCisPepError.SequenceId. None when this payload is absent.
- property source: CifReadError | MmcifSequenceIdError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to MmcifCisPepError.ChainNameNotRepresentable, MmcifCisPepError.ResidueNameNotRepresentable. None when this payload is absent.
- property variant: MmcifCisPepErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifCisPepErrorKind(value)¶
Discriminants of MmcifCisPepErrorKind.
Members:
Cif,ChainNameNotRepresentable,ResidueNameNotRepresentable,ResidueAddressNotRepresentable,SequenceId, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- ChainNameNotRepresentable = MmcifCisPepErrorKind.ChainNameNotRepresentable¶
- Cif = MmcifCisPepErrorKind.Cif¶
- ResidueAddressNotRepresentable = MmcifCisPepErrorKind.ResidueAddressNotRepresentable¶
- ResidueNameNotRepresentable = MmcifCisPepErrorKind.ResidueNameNotRepresentable¶
- SequenceId = MmcifCisPepErrorKind.SequenceId¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifCisPepErrorKind.Cif, 'ChainNameNotRepresentable': MmcifCisPepErrorKind.ChainNameNotRepresentable, 'ResidueNameNotRepresentable': MmcifCisPepErrorKind.ResidueNameNotRepresentable, 'ResidueAddressNotRepresentable': MmcifCisPepErrorKind.ResidueAddressNotRepresentable, 'SequenceId': MmcifCisPepErrorKind.SequenceId})¶
- values = mappingproxy({0: MmcifCisPepErrorKind.Cif, 1: MmcifCisPepErrorKind.ChainNameNotRepresentable, 2: MmcifCisPepErrorKind.ResidueNameNotRepresentable, 3: MmcifCisPepErrorKind.ResidueAddressNotRepresentable, 4: MmcifCisPepErrorKind.SequenceId})¶
- exception cosmolkit.MmcifConnectionError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifConnectionError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property partner: int | None¶
Partner atom or endpoint involved in the native check. Applies to MmcifConnectionError.MissingAddressIdentifiers, MmcifConnectionError.ChainNameNotRepresentable, MmcifConnectionError.ResidueNameNotRepresentable, MmcifConnectionError.ResidueAddressNotRepresentable. None when this payload is absent.
- property source: CifReadError | MmcifSequenceIdError | MmcifLabelAddressError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | int | None¶
Value rejected or reported by the native operation. Applies to MmcifConnectionError.ChainNameNotRepresentable, MmcifConnectionError.ResidueNameNotRepresentable, MmcifConnectionError.ResidueAddressNotRepresentable, MmcifConnectionError.SymmetryOperatorOutsideSourceDefinedRange, MmcifConnectionError.SymmetryOperatorNotRepresentable. None when this payload is absent.
- property variant: MmcifConnectionErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifConnectionErrorKind(value)¶
Discriminants of MmcifConnectionErrorKind.
Members:
Cif,SequenceId,LabelAddress,MissingAddressIdentifiers,NoStructuralModels,ChainNameNotRepresentable,ResidueNameNotRepresentable,ResidueAddressNotRepresentable,SymmetryOperatorOutsideSourceDefinedRange,SymmetryOperatorNotRepresentable, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (13)
- ChainNameNotRepresentable = MmcifConnectionErrorKind.ChainNameNotRepresentable¶
- Cif = MmcifConnectionErrorKind.Cif¶
- LabelAddress = MmcifConnectionErrorKind.LabelAddress¶
- MissingAddressIdentifiers = MmcifConnectionErrorKind.MissingAddressIdentifiers¶
- NoStructuralModels = MmcifConnectionErrorKind.NoStructuralModels¶
- ResidueAddressNotRepresentable = MmcifConnectionErrorKind.ResidueAddressNotRepresentable¶
- ResidueNameNotRepresentable = MmcifConnectionErrorKind.ResidueNameNotRepresentable¶
- SequenceId = MmcifConnectionErrorKind.SequenceId¶
- SymmetryOperatorNotRepresentable = MmcifConnectionErrorKind.SymmetryOperatorNotRepresentable¶
- SymmetryOperatorOutsideSourceDefinedRange = MmcifConnectionErrorKind.SymmetryOperatorOutsideSourceDefinedRange¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifConnectionErrorKind.Cif, 'SequenceId': MmcifConnectionErrorKind.SequenceId, 'LabelAddress': MmcifConnectionErrorKind.LabelAddress, 'MissingAddressIdentifiers': MmcifConnectionErrorKind.MissingAddressIdentifiers, 'NoStructuralModels': MmcifConnectionErrorKind.NoStructuralModels, 'ChainNameNotRepresentable': MmcifConnectionErrorKind.ChainNameNotRepresentable, 'ResidueNameNotRepresentable': MmcifConnectionErrorKind.ResidueNameNotRepresentable, 'ResidueAddressNotRepresentable': MmcifConnectionErrorKind.ResidueAddressNotRepresentable, 'SymmetryOperatorOutsideSourceDefinedRange': MmcifConnectionErrorKind.SymmetryOperatorOutsideSourceDefinedRange, 'SymmetryOperatorNotRepresentable': MmcifConnectionErrorKind.SymmetryOperatorNotRepresentable})¶
- values = mappingproxy({0: MmcifConnectionErrorKind.Cif, 1: MmcifConnectionErrorKind.SequenceId, 2: MmcifConnectionErrorKind.LabelAddress, 3: MmcifConnectionErrorKind.MissingAddressIdentifiers, 4: MmcifConnectionErrorKind.NoStructuralModels, 5: MmcifConnectionErrorKind.ChainNameNotRepresentable, 6: MmcifConnectionErrorKind.ResidueNameNotRepresentable, 7: MmcifConnectionErrorKind.ResidueAddressNotRepresentable, 8: MmcifConnectionErrorKind.SymmetryOperatorOutsideSourceDefinedRange, 9: MmcifConnectionErrorKind.SymmetryOperatorNotRepresentable})¶
- exception cosmolkit.MmcifCrystalInfoError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifCrystalInfoError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: CifReadError | BioStructureError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stage: str | None¶
Readonly stage payload of the StagingInvariant error variant; None for other variants.
- property variant: MmcifCrystalInfoErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifCrystalInfoErrorKind(value)¶
Discriminants of MmcifCrystalInfoErrorKind.
Members:
Cif,Bio,StagingInvariant, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Bio = MmcifCrystalInfoErrorKind.Bio¶
- Cif = MmcifCrystalInfoErrorKind.Cif¶
- StagingInvariant = MmcifCrystalInfoErrorKind.StagingInvariant¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifCrystalInfoErrorKind.Cif, 'Bio': MmcifCrystalInfoErrorKind.Bio, 'StagingInvariant': MmcifCrystalInfoErrorKind.StagingInvariant})¶
- values = mappingproxy({0: MmcifCrystalInfoErrorKind.Cif, 1: MmcifCrystalInfoErrorKind.Bio, 2: MmcifCrystalInfoErrorKind.StagingInvariant})¶
- exception cosmolkit.MmcifEntityInfoError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifEntityInfoError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: CifReadError | MmcifSequenceIdError | MmcifSiftsUnpError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmcifEntityInfoErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifEntityInfoErrorKind(value)¶
Discriminants of MmcifEntityInfoErrorKind.
Members:
Cif,SequenceId,Sifts, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- Cif = MmcifEntityInfoErrorKind.Cif¶
- SequenceId = MmcifEntityInfoErrorKind.SequenceId¶
- Sifts = MmcifEntityInfoErrorKind.Sifts¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifEntityInfoErrorKind.Cif, 'SequenceId': MmcifEntityInfoErrorKind.SequenceId, 'Sifts': MmcifEntityInfoErrorKind.Sifts})¶
- values = mappingproxy({0: MmcifEntityInfoErrorKind.Cif, 1: MmcifEntityInfoErrorKind.SequenceId, 2: MmcifEntityInfoErrorKind.Sifts})¶
- exception cosmolkit.MmcifHelixError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifHelixError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property endpoint: str | None¶
Bond endpoint associated with the stereo failure. Present for MmcifHelixError.ChainNameNotRepresentable, MmcifHelixError.ResidueNameNotRepresentable, MmcifHelixError.ResidueAddressNotRepresentable, MmcifHelixError.SequenceId; None when unavailable.
- property error: MmcifSequenceIdError | None¶
“error_payload”} Structured native error payload. Present for MmcifHelixError.SequenceId; None when unavailable.
- Type:
{“role”
- property source: CifReadError | MmcifSequenceIdError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to MmcifHelixError.ChainNameNotRepresentable, MmcifHelixError.ResidueNameNotRepresentable. None when this payload is absent.
- property variant: MmcifHelixErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifHelixErrorKind(value)¶
Discriminants of MmcifHelixErrorKind.
Members:
Cif,ChainNameNotRepresentable,ResidueNameNotRepresentable,ResidueAddressNotRepresentable,SequenceId,HelixClass,HelixLength, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (10)
- ChainNameNotRepresentable = MmcifHelixErrorKind.ChainNameNotRepresentable¶
- Cif = MmcifHelixErrorKind.Cif¶
- HelixClass = MmcifHelixErrorKind.HelixClass¶
- HelixLength = MmcifHelixErrorKind.HelixLength¶
- ResidueAddressNotRepresentable = MmcifHelixErrorKind.ResidueAddressNotRepresentable¶
- ResidueNameNotRepresentable = MmcifHelixErrorKind.ResidueNameNotRepresentable¶
- SequenceId = MmcifHelixErrorKind.SequenceId¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifHelixErrorKind.Cif, 'ChainNameNotRepresentable': MmcifHelixErrorKind.ChainNameNotRepresentable, 'ResidueNameNotRepresentable': MmcifHelixErrorKind.ResidueNameNotRepresentable, 'ResidueAddressNotRepresentable': MmcifHelixErrorKind.ResidueAddressNotRepresentable, 'SequenceId': MmcifHelixErrorKind.SequenceId, 'HelixClass': MmcifHelixErrorKind.HelixClass, 'HelixLength': MmcifHelixErrorKind.HelixLength})¶
- values = mappingproxy({0: MmcifHelixErrorKind.Cif, 1: MmcifHelixErrorKind.ChainNameNotRepresentable, 2: MmcifHelixErrorKind.ResidueNameNotRepresentable, 3: MmcifHelixErrorKind.ResidueAddressNotRepresentable, 4: MmcifHelixErrorKind.SequenceId, 5: MmcifHelixErrorKind.HelixClass, 6: MmcifHelixErrorKind.HelixLength})¶
- exception cosmolkit.MmcifLabelAddressError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifLabelAddressError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: CifReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Readonly value payload of the ChainNameNotRepresentable error variant; None for other variants.
- property variant: MmcifLabelAddressErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifLabelAddressErrorKind(value)¶
Discriminants of MmcifLabelAddressErrorKind.
Members:
LabelSequenceId,ChainNameNotRepresentable, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- ChainNameNotRepresentable = MmcifLabelAddressErrorKind.ChainNameNotRepresentable¶
- LabelSequenceId = MmcifLabelAddressErrorKind.LabelSequenceId¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'LabelSequenceId': MmcifLabelAddressErrorKind.LabelSequenceId, 'ChainNameNotRepresentable': MmcifLabelAddressErrorKind.ChainNameNotRepresentable})¶
- values = mappingproxy({0: MmcifLabelAddressErrorKind.LabelSequenceId, 1: MmcifLabelAddressErrorKind.ChainNameNotRepresentable})¶
- exception cosmolkit.MmcifModResError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifModResError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: CifReadError | MmcifSequenceIdError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to MmcifModResError.ChainNameNotRepresentable, MmcifModResError.ResidueNameNotRepresentable. None when this payload is absent.
- property variant: MmcifModResErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifModResErrorKind(value)¶
Discriminants of MmcifModResErrorKind.
Members:
Cif,ChainNameNotRepresentable,ResidueNameNotRepresentable,ResidueAddressNotRepresentable,SequenceId, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- ChainNameNotRepresentable = MmcifModResErrorKind.ChainNameNotRepresentable¶
- Cif = MmcifModResErrorKind.Cif¶
- ResidueAddressNotRepresentable = MmcifModResErrorKind.ResidueAddressNotRepresentable¶
- ResidueNameNotRepresentable = MmcifModResErrorKind.ResidueNameNotRepresentable¶
- SequenceId = MmcifModResErrorKind.SequenceId¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifModResErrorKind.Cif, 'ChainNameNotRepresentable': MmcifModResErrorKind.ChainNameNotRepresentable, 'ResidueNameNotRepresentable': MmcifModResErrorKind.ResidueNameNotRepresentable, 'ResidueAddressNotRepresentable': MmcifModResErrorKind.ResidueAddressNotRepresentable, 'SequenceId': MmcifModResErrorKind.SequenceId})¶
- values = mappingproxy({0: MmcifModResErrorKind.Cif, 1: MmcifModResErrorKind.ChainNameNotRepresentable, 2: MmcifModResErrorKind.ResidueNameNotRepresentable, 3: MmcifModResErrorKind.ResidueAddressNotRepresentable, 4: MmcifModResErrorKind.SequenceId})¶
- exception cosmolkit.MmcifOperationExprError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifOperationExprError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmcifOperationExprErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifOperationExprErrorKind(value)¶
Discriminants of MmcifOperationExprErrorKind.
Members:
SourceUndefinedIntegerOverflow,SourceUndefinedRangeIncrement, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- SourceUndefinedIntegerOverflow = MmcifOperationExprErrorKind.SourceUndefinedIntegerOverflow¶
- SourceUndefinedRangeIncrement = MmcifOperationExprErrorKind.SourceUndefinedRangeIncrement¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'SourceUndefinedIntegerOverflow': MmcifOperationExprErrorKind.SourceUndefinedIntegerOverflow, 'SourceUndefinedRangeIncrement': MmcifOperationExprErrorKind.SourceUndefinedRangeIncrement})¶
- values = mappingproxy({0: MmcifOperationExprErrorKind.SourceUndefinedIntegerOverflow, 1: MmcifOperationExprErrorKind.SourceUndefinedRangeIncrement})¶
- exception cosmolkit.MmcifSequenceIdError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifSequenceIdError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property sequence_id: str | None¶
Readonly sequence_id payload of the InconsistentInsertionCode error variant; None for other variants.
- property source: CifReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmcifSequenceIdErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifSequenceIdErrorKind(value)¶
Discriminants of MmcifSequenceIdErrorKind.
Members:
InconsistentInsertionCode,InvalidInsertionCode,InvalidSequenceNumber, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (6)
- InconsistentInsertionCode = MmcifSequenceIdErrorKind.InconsistentInsertionCode¶
- InvalidInsertionCode = MmcifSequenceIdErrorKind.InvalidInsertionCode¶
- InvalidSequenceNumber = MmcifSequenceIdErrorKind.InvalidSequenceNumber¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InconsistentInsertionCode': MmcifSequenceIdErrorKind.InconsistentInsertionCode, 'InvalidInsertionCode': MmcifSequenceIdErrorKind.InvalidInsertionCode, 'InvalidSequenceNumber': MmcifSequenceIdErrorKind.InvalidSequenceNumber})¶
- values = mappingproxy({0: MmcifSequenceIdErrorKind.InconsistentInsertionCode, 1: MmcifSequenceIdErrorKind.InvalidInsertionCode, 2: MmcifSequenceIdErrorKind.InvalidSequenceNumber})¶
- exception cosmolkit.MmcifSheetError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifSheetError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property address: str | None¶
Structural address implicated in the failed lookup. Applies to MmcifSheetError.ChainNameNotRepresentable, MmcifSheetError.ResidueNameNotRepresentable, MmcifSheetError.ResidueAddressNotRepresentable, MmcifSheetError.SequenceId. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property error: MmcifSequenceIdError | None¶
“error_payload”} Structured native error payload. Present for MmcifSheetError.SequenceId; None when unavailable.
- Type:
{“role”
- property source: CifReadError | MmcifSequenceIdError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property value: str | None¶
Value rejected or reported by the native operation. Applies to MmcifSheetError.ChainNameNotRepresentable, MmcifSheetError.ResidueNameNotRepresentable. None when this payload is absent.
- property variant: MmcifSheetErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifSheetErrorKind(value)¶
Discriminants of MmcifSheetErrorKind.
Members:
Cif,ChainNameNotRepresentable,ResidueNameNotRepresentable,ResidueAddressNotRepresentable,SequenceId, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- ChainNameNotRepresentable = MmcifSheetErrorKind.ChainNameNotRepresentable¶
- Cif = MmcifSheetErrorKind.Cif¶
- ResidueAddressNotRepresentable = MmcifSheetErrorKind.ResidueAddressNotRepresentable¶
- ResidueNameNotRepresentable = MmcifSheetErrorKind.ResidueNameNotRepresentable¶
- SequenceId = MmcifSheetErrorKind.SequenceId¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifSheetErrorKind.Cif, 'ChainNameNotRepresentable': MmcifSheetErrorKind.ChainNameNotRepresentable, 'ResidueNameNotRepresentable': MmcifSheetErrorKind.ResidueNameNotRepresentable, 'ResidueAddressNotRepresentable': MmcifSheetErrorKind.ResidueAddressNotRepresentable, 'SequenceId': MmcifSheetErrorKind.SequenceId})¶
- values = mappingproxy({0: MmcifSheetErrorKind.Cif, 1: MmcifSheetErrorKind.ChainNameNotRepresentable, 2: MmcifSheetErrorKind.ResidueNameNotRepresentable, 3: MmcifSheetErrorKind.ResidueAddressNotRepresentable, 4: MmcifSheetErrorKind.SequenceId})¶
- exception cosmolkit.MmcifSiftsUnpError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifSiftsUnpError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (9)
- property asym_id: str | None¶
Readonly asym_id payload of the SubchainNotFound error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property entity_id: str | None¶
Readonly entity_id payload of the EntityNotFound error variant; None for other variants.
- property seq_id: str | None¶
Readonly seq_id payload of the SequenceNotFound error variant; None for other variants.
- property source: CifReadError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stage: str | None¶
Readonly stage payload of the StagingInvariant error variant; None for other variants.
- property value: str | None¶
Readonly value payload of the NumberOutsideU16 error variant; None for other variants.
- property variant: MmcifSiftsUnpErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifSiftsUnpErrorKind(value)¶
Discriminants of MmcifSiftsUnpErrorKind.
Members:
Cif,EntityNotFound,SubchainNotFound,SequenceNotFound,NumberOutsideU16,StagingInvariant, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (9)
- Cif = MmcifSiftsUnpErrorKind.Cif¶
- EntityNotFound = MmcifSiftsUnpErrorKind.EntityNotFound¶
- NumberOutsideU16 = MmcifSiftsUnpErrorKind.NumberOutsideU16¶
- SequenceNotFound = MmcifSiftsUnpErrorKind.SequenceNotFound¶
- StagingInvariant = MmcifSiftsUnpErrorKind.StagingInvariant¶
- SubchainNotFound = MmcifSiftsUnpErrorKind.SubchainNotFound¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifSiftsUnpErrorKind.Cif, 'EntityNotFound': MmcifSiftsUnpErrorKind.EntityNotFound, 'SubchainNotFound': MmcifSiftsUnpErrorKind.SubchainNotFound, 'SequenceNotFound': MmcifSiftsUnpErrorKind.SequenceNotFound, 'NumberOutsideU16': MmcifSiftsUnpErrorKind.NumberOutsideU16, 'StagingInvariant': MmcifSiftsUnpErrorKind.StagingInvariant})¶
- values = mappingproxy({0: MmcifSiftsUnpErrorKind.Cif, 1: MmcifSiftsUnpErrorKind.EntityNotFound, 2: MmcifSiftsUnpErrorKind.SubchainNotFound, 3: MmcifSiftsUnpErrorKind.SequenceNotFound, 4: MmcifSiftsUnpErrorKind.NumberOutsideU16, 5: MmcifSiftsUnpErrorKind.StagingInvariant})¶
- exception cosmolkit.MmcifTlsInfoError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmcifTlsInfoError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property chain: str | None¶
Readonly chain payload of the SelectionChainNotRepresentable error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property id: str | None¶
Readonly id payload of the NumericIdOutsideSourceDefinedRange error variant; None for other variants.
- property source: CifReadError | MmcifSequenceIdError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmcifTlsInfoErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmcifTlsInfoErrorKind(value)¶
Discriminants of MmcifTlsInfoErrorKind.
Members:
Cif,SequenceId,NumericIdOutsideSourceDefinedRange,SelectionChainNotRepresentable, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (7)
- Cif = MmcifTlsInfoErrorKind.Cif¶
- NumericIdOutsideSourceDefinedRange = MmcifTlsInfoErrorKind.NumericIdOutsideSourceDefinedRange¶
- SelectionChainNotRepresentable = MmcifTlsInfoErrorKind.SelectionChainNotRepresentable¶
- SequenceId = MmcifTlsInfoErrorKind.SequenceId¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Cif': MmcifTlsInfoErrorKind.Cif, 'SequenceId': MmcifTlsInfoErrorKind.SequenceId, 'NumericIdOutsideSourceDefinedRange': MmcifTlsInfoErrorKind.NumericIdOutsideSourceDefinedRange, 'SelectionChainNotRepresentable': MmcifTlsInfoErrorKind.SelectionChainNotRepresentable})¶
- values = mappingproxy({0: MmcifTlsInfoErrorKind.Cif, 1: MmcifTlsInfoErrorKind.SequenceId, 2: MmcifTlsInfoErrorKind.NumericIdOutsideSourceDefinedRange, 3: MmcifTlsInfoErrorKind.SelectionChainNotRepresentable})¶
- exception cosmolkit.MmffAngleLookupError(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffAngleLookupError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property atom_type: int | None¶
Readonly atom_type payload of the MissingDefinition error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmffAngleLookupErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmffAngleLookupErrorKind(value)¶
Discriminants of MmffAngleLookupErrorKind.
Members:
MissingDefinition, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (4)
- MissingDefinition = MmffAngleLookupErrorKind.MissingDefinition¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingDefinition': MmffAngleLookupErrorKind.MissingDefinition})¶
- values = mappingproxy({0: MmffAngleLookupErrorKind.MissingDefinition})¶
- class cosmolkit.MmffAtomProperties(atom_type, formal_charge, partial_charge)¶
MMFF atom type and force-field formal/partial charge values.
- exception cosmolkit.MmffBuilderError(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffBuilderError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (12)
- property components: PathError | None¶
“error_payload”} Structured PathError payload of MmffBuilderError.Components; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property conf_id: int | None¶
Conformer identifier implicated in the failure. Applies to MmffBuilderError.Missing3dConformer, MmffBuilderError.InvalidConformerId. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property force_field_kernel: ForceFieldKernelError | None¶
“error_payload”} Structured ForceFieldKernelError payload of MmffBuilderError.ForceFieldKernel; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property fragment: NonbondedFragmentMappingError | None¶
“error_payload”} Structured NonbondedFragmentMappingError payload of MmffBuilderError.Fragment; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property mol_properties: MmffMolPropertiesError | None¶
“error_payload”} Structured MmffMolPropertiesError payload of MmffBuilderError.MolProperties; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property rings: RingFindingError | None¶
“error_payload”} Structured RingFindingError payload of MmffBuilderError.Rings; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | MmffParamParseError | UffDefaultTorsionQueryError | SmartsParseError | QueryCompileError | MatchError | MoleculeFragmentsError | FragmentCoordinateViewError | BondValueError | AtomPropertyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property torsion_bond_query: UffTorsionBondQueryError | None¶
“error_payload”} Structured UffTorsionBondQueryError payload of MmffBuilderError.TorsionBondQuery; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of MmffBuilderError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: MmffBuilderErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmffBuilderErrorKind(value)¶
Discriminants of MmffBuilderErrorKind.
Members:
MolProperties,ForceFieldKernel,TorsionBondQuery,Fragment,Components,Valence,Rings,Missing3dConformer,InvalidConformerId, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (12)
- Components = MmffBuilderErrorKind.Components¶
- ForceFieldKernel = MmffBuilderErrorKind.ForceFieldKernel¶
- Fragment = MmffBuilderErrorKind.Fragment¶
- InvalidConformerId = MmffBuilderErrorKind.InvalidConformerId¶
- Missing3dConformer = MmffBuilderErrorKind.Missing3dConformer¶
- MolProperties = MmffBuilderErrorKind.MolProperties¶
- Rings = MmffBuilderErrorKind.Rings¶
- TorsionBondQuery = MmffBuilderErrorKind.TorsionBondQuery¶
- Valence = MmffBuilderErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MolProperties': MmffBuilderErrorKind.MolProperties, 'ForceFieldKernel': MmffBuilderErrorKind.ForceFieldKernel, 'TorsionBondQuery': MmffBuilderErrorKind.TorsionBondQuery, 'Fragment': MmffBuilderErrorKind.Fragment, 'Components': MmffBuilderErrorKind.Components, 'Valence': MmffBuilderErrorKind.Valence, 'Rings': MmffBuilderErrorKind.Rings, 'Missing3dConformer': MmffBuilderErrorKind.Missing3dConformer, 'InvalidConformerId': MmffBuilderErrorKind.InvalidConformerId})¶
- values = mappingproxy({0: MmffBuilderErrorKind.MolProperties, 1: MmffBuilderErrorKind.ForceFieldKernel, 2: MmffBuilderErrorKind.TorsionBondQuery, 3: MmffBuilderErrorKind.Fragment, 4: MmffBuilderErrorKind.Components, 5: MmffBuilderErrorKind.Valence, 6: MmffBuilderErrorKind.Rings, 7: MmffBuilderErrorKind.Missing3dConformer, 8: MmffBuilderErrorKind.InvalidConformerId})¶
- class cosmolkit.MmffConformerOptimizationParams(*, num_threads=Ellipsis, max_iterations=Ellipsis, mmff_variant=Ellipsis, non_bonded_threshold=Ellipsis, ignore_interfragment_interactions=Ellipsis)¶
MMFF parameterization, minimizer limits and threading for all stored conformers.
Members (5)
- ignore_interfragment_interactions: bool¶
Omit non-bonded interactions between disconnected molecular fragments.
- max_iterations: int¶
Maximum number of minimizer iterations.
- mmff_variant: MmffVariant¶
MMFF94 or MMFF94s parameterization.
- non_bonded_threshold: float¶
Distance cutoff for inclusion of MMFF non-bonded interactions, in angstroms.
- num_threads: int¶
Native worker count for conformer optimization; zero requests the available hardware thread count.
- class cosmolkit.MmffEnergyGradient(energy, gradient)¶
Force-field energy and Cartesian gradient at the evaluated coordinates.
- class cosmolkit.MmffEvaluationParams(*, mmff_variant=Ellipsis, non_bonded_threshold=Ellipsis, conformer_id=Ellipsis, ignore_interfragment_interactions=Ellipsis)¶
Non-mutating MMFF field evaluation over one stored 3D conformer.
Members (4)
- conformer_id: int | None¶
Stored 3D conformer identifier, or None for the native default selection.
- ignore_interfragment_interactions: bool¶
Omit non-bonded interactions between disconnected molecular fragments.
- mmff_variant: MmffVariant¶
MMFF94 or MMFF94s parameterization.
- non_bonded_threshold: float¶
Distance cutoff for inclusion of MMFF non-bonded interactions, in angstroms.
- exception cosmolkit.MmffForceFieldError(*args, **kwargs)¶
MmffForceFieldError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (8)
- property actual: int | None¶
Observed size or index reported by the native failure, or None when inapplicable.
- property atom_index: int | None¶
Atom index implicated in the failure, or None for failures without an atom.
- property component: int | None¶
Coordinate component implicated in the failure, or None when inapplicable.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property expected: int | None¶
Required size reported by the native failure, or None when inapplicable.
- property kind: MolecularForceFieldErrorKind¶
Typed native persistent-force-field failure category.
- property requested: int | None¶
Requested conformer identifier when relevant, otherwise None.
- property source: ForceFieldError¶
“error_source”} Actual underlying exception, identical to __cause__.
- Type:
{“role”
- class cosmolkit.MmffForceFieldParams(*, conformer_id=Ellipsis, mmff_variant=Ellipsis, non_bonded_threshold=Ellipsis, ignore_interfragment_interactions=Ellipsis)¶
Configuration for constructing a persistent MMFF force field over a selected conformer.
Members (4)
- conformer_id: int | None¶
Stored 3D conformer identifier, or None for the native default selection.
- ignore_interfragment_interactions: bool¶
Omit non-bonded interactions between disconnected molecular fragments.
- mmff_variant: MmffVariant¶
MMFF94 or MMFF94s parameterization.
- non_bonded_threshold: float¶
Distance cutoff for inclusion of MMFF non-bonded interactions, in angstroms.
- exception cosmolkit.MmffMolPropertiesError(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffMolPropertiesError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (12)
- property aromaticity: AromaticityError | None¶
“error_payload”} Structured AromaticityError payload of MmffMolPropertiesError.Aromaticity; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property atom_index: int | None¶
Readonly atom_index payload of the AtomIndexOutOfRange error variant; None for other variants.
- property atom_type: int | None¶
Force-field atom type involved in the failure. Applies to MmffMolPropertiesError.AtomTypePropertiesMissing, MmffMolPropertiesError.AtomTypePbciMissing. None when this payload is absent.
- property atoms: int | None¶
Readonly atoms payload of the AtomIndexOutOfRange error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property kekulize: KekulizeError | None¶
“error_payload”} Structured KekulizeError payload of MmffMolPropertiesError.Kekulize; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property params: MmffParamError | None¶
“error_payload”} Structured MmffParamError payload of MmffMolPropertiesError.Params; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property ring_finding: RingFindingError | None¶
“error_payload”} Structured RingFindingError payload of MmffMolPropertiesError.RingFinding; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | MmffParamParseError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property valence: ValenceError | None¶
“error_payload”} Structured ValenceError payload of MmffMolPropertiesError.Valence; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: MmffMolPropertiesErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmffMolPropertiesErrorKind(value)¶
Discriminants of MmffMolPropertiesErrorKind.
Members:
Params,Kekulize,Aromaticity,RingFinding,Valence,AtomIndexOutOfRange,AtomTypePropertiesMissing,AtomTypePbciMissing, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (11)
- Aromaticity = MmffMolPropertiesErrorKind.Aromaticity¶
- AtomIndexOutOfRange = MmffMolPropertiesErrorKind.AtomIndexOutOfRange¶
- AtomTypePbciMissing = MmffMolPropertiesErrorKind.AtomTypePbciMissing¶
- AtomTypePropertiesMissing = MmffMolPropertiesErrorKind.AtomTypePropertiesMissing¶
- Kekulize = MmffMolPropertiesErrorKind.Kekulize¶
- Params = MmffMolPropertiesErrorKind.Params¶
- RingFinding = MmffMolPropertiesErrorKind.RingFinding¶
- Valence = MmffMolPropertiesErrorKind.Valence¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Params': MmffMolPropertiesErrorKind.Params, 'Kekulize': MmffMolPropertiesErrorKind.Kekulize, 'Aromaticity': MmffMolPropertiesErrorKind.Aromaticity, 'RingFinding': MmffMolPropertiesErrorKind.RingFinding, 'Valence': MmffMolPropertiesErrorKind.Valence, 'AtomIndexOutOfRange': MmffMolPropertiesErrorKind.AtomIndexOutOfRange, 'AtomTypePropertiesMissing': MmffMolPropertiesErrorKind.AtomTypePropertiesMissing, 'AtomTypePbciMissing': MmffMolPropertiesErrorKind.AtomTypePbciMissing})¶
- values = mappingproxy({0: MmffMolPropertiesErrorKind.Params, 1: MmffMolPropertiesErrorKind.Kekulize, 2: MmffMolPropertiesErrorKind.Aromaticity, 3: MmffMolPropertiesErrorKind.RingFinding, 4: MmffMolPropertiesErrorKind.Valence, 5: MmffMolPropertiesErrorKind.AtomIndexOutOfRange, 6: MmffMolPropertiesErrorKind.AtomTypePropertiesMissing, 7: MmffMolPropertiesErrorKind.AtomTypePbciMissing})¶
- exception cosmolkit.MmffOopLookupError(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffOopLookupError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property atom_type: int | None¶
Readonly atom_type payload of the MissingDefinition error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmffOopLookupErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmffOopLookupErrorKind(value)¶
Discriminants of MmffOopLookupErrorKind.
Members:
MissingDefinition, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (4)
- exception cosmolkit.MmffOptimizationError(*args, **kwargs)¶
MmffOptimizationError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: MmffOptimizationSourceError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- exception cosmolkit.MmffOptimizationFailure(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffOptimizationFailure is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (10)
- property builder: MmffBuilderError | None¶
“error_payload”} Structured MmffBuilderError payload of MmffOptimizationFailure.Builder; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property kernel: ForceFieldKernelError | None¶
“error_payload”} Structured ForceFieldKernelError payload of MmffOptimizationFailure.Kernel; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property properties: MmffMolPropertiesError | None¶
“error_payload”} Structured MmffMolPropertiesError payload of MmffOptimizationFailure.Properties; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property serial: SerialConformerOptimizationError | None¶
“error_payload”} Structured SerialConformerOptimizationError payload of MmffOptimizationFailure.Serial; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: TopologyValidationError | MappingValidationError | MoleculePropertyError | StereoGroupError | TemplateAttachmentOrderError | MmffParamParseError | UffDefaultTorsionQueryError | SmartsParseError | QueryCompileError | MatchError | MoleculeFragmentsError | FragmentCoordinateViewError | BondValueError | AtomPropertyError | ForceFieldKernelError | SerialResultCapacityError | SerialCoordinateCountError | OptimizationStageError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property stage: OptimizationStageError | None¶
“error_payload”} Structured OptimizationStageError payload of MmffOptimizationFailure.Stage; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property threads: UffThreadCountError | None¶
“error_payload”} Structured UffThreadCountError payload of MmffOptimizationFailure.Threads; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: MmffOptimizationFailureKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmffOptimizationFailureKind(value)¶
Discriminants of MmffOptimizationFailureKind.
Members:
Properties,Builder,Kernel,Stage,Serial,Threads, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (9)
- Builder = MmffOptimizationFailureKind.Builder¶
- Kernel = MmffOptimizationFailureKind.Kernel¶
- Properties = MmffOptimizationFailureKind.Properties¶
- Serial = MmffOptimizationFailureKind.Serial¶
- Stage = MmffOptimizationFailureKind.Stage¶
- Threads = MmffOptimizationFailureKind.Threads¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Properties': MmffOptimizationFailureKind.Properties, 'Builder': MmffOptimizationFailureKind.Builder, 'Kernel': MmffOptimizationFailureKind.Kernel, 'Stage': MmffOptimizationFailureKind.Stage, 'Serial': MmffOptimizationFailureKind.Serial, 'Threads': MmffOptimizationFailureKind.Threads})¶
- values = mappingproxy({0: MmffOptimizationFailureKind.Properties, 1: MmffOptimizationFailureKind.Builder, 2: MmffOptimizationFailureKind.Kernel, 3: MmffOptimizationFailureKind.Stage, 4: MmffOptimizationFailureKind.Serial, 5: MmffOptimizationFailureKind.Threads})¶
- class cosmolkit.MmffOptimizationParams(*, mmff_variant=Ellipsis, max_iterations=Ellipsis, non_bonded_threshold=Ellipsis, conformer_id=Ellipsis, ignore_interfragment_interactions=Ellipsis)¶
MMFF parameterization and minimization settings for one stored conformer.
Members (5)
- conformer_id: int | None¶
Stored 3D conformer identifier, or None for the native default selection.
- ignore_interfragment_interactions: bool¶
Omit non-bonded interactions between disconnected molecular fragments.
- max_iterations: int¶
Maximum number of minimizer iterations.
- mmff_variant: MmffVariant¶
MMFF94 or MMFF94s parameterization.
- non_bonded_threshold: float¶
Distance cutoff for inclusion of MMFF non-bonded interactions, in angstroms.
- exception cosmolkit.MmffOptimizationSourceError(*args, **kwargs)¶
MmffOptimizationSourceError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (2)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: MmffOptimizationFailure¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- class cosmolkit.MmffOptimizeMoleculeConfResult(outcome)¶
MMFF outcome for one conformer optimization.
Members (4)
- energy: float | None¶
Evaluated force-field energy; optimization outcomes without parameters return None.
- needs_more: bool¶
Whether the native outcome reports nonconvergence requiring further optimization.
- outcome: OptimizationOutcome¶
Typed optimization outcome retaining both convergence status and optional energy.
- status_code: int¶
Native optimization status code corresponding to the typed outcome.
- class cosmolkit.MmffOptimizeMoleculeConfsResult(molecule, conformer_results)¶
MMFF multi-conformer optimization result with the output molecule and ordered per-conformer outcomes.
Members (2)
- conformer_results: list[MmffOptimizeMoleculeConfResult]¶
Independent list of per-conformer outcomes in native result order.
- class cosmolkit.MmffOptimizeMoleculeResult(molecule, outcome)¶
MMFF optimization result containing the output molecule and optimization outcome.
Members (5)
- energy: float | None¶
Evaluated force-field energy; optimization outcomes without parameters return None.
- molecule: Molecule¶
Output molecule as a copy-on-write value; editing this value does not alter the result.
- needs_more: bool¶
Whether the native outcome reports nonconvergence requiring further optimization.
- outcome: OptimizationOutcome¶
Typed optimization outcome retaining both convergence status and optional energy.
- status_code: int¶
Native optimization status code corresponding to the typed outcome.
- exception cosmolkit.MmffParamError(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffParamError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (10)
- property angle: MmffAngleLookupError | None¶
“error_payload”} Structured MmffAngleLookupError payload of MmffParamError.Angle; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property oop: MmffOopLookupError | None¶
“error_payload”} Structured MmffOopLookupError payload of MmffParamError.Oop; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: MmffParamParseError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property symbol: str | None¶
Readonly symbol payload of the MissingDefaultData error variant; None for other variants.
- property table: MmffParamParseError | None¶
“error_payload”} Structured MmffParamParseError payload of MmffParamError.Table; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property torsion: MmffTorLookupError | None¶
“error_payload”} Structured MmffTorLookupError payload of MmffParamError.Torsion; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property variant: MmffParamErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- property vdw: MmffVdwParseError | None¶
“error_payload”} Structured MmffVdwParseError payload of MmffParamError.Vdw; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- class cosmolkit.MmffParamErrorKind(value)¶
Discriminants of MmffParamErrorKind.
Members:
Table,Vdw,Angle,Torsion,Oop,MissingDefaultData, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (9)
- Angle = MmffParamErrorKind.Angle¶
- MissingDefaultData = MmffParamErrorKind.MissingDefaultData¶
- Oop = MmffParamErrorKind.Oop¶
- Table = MmffParamErrorKind.Table¶
- Torsion = MmffParamErrorKind.Torsion¶
- Vdw = MmffParamErrorKind.Vdw¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Table': MmffParamErrorKind.Table, 'Vdw': MmffParamErrorKind.Vdw, 'Angle': MmffParamErrorKind.Angle, 'Torsion': MmffParamErrorKind.Torsion, 'Oop': MmffParamErrorKind.Oop, 'MissingDefaultData': MmffParamErrorKind.MissingDefaultData})¶
- values = mappingproxy({0: MmffParamErrorKind.Table, 1: MmffParamErrorKind.Vdw, 2: MmffParamErrorKind.Angle, 3: MmffParamErrorKind.Torsion, 4: MmffParamErrorKind.Oop, 5: MmffParamErrorKind.MissingDefaultData})¶
- class cosmolkit.MmffParamParseCause¶
Reason an MMFF parameter-table cell or line could not be parsed.
Members (2)
- cell: str | None¶
Original numeric table cell for invalid numbers; None for missing tokens or empty lines.
- variant: MmffParamParseCauseKind¶
Exact native error category. Variant-specific payload fields are None when that variant is not active.
- class cosmolkit.MmffParamParseCauseKind(value)¶
Discriminants of MmffParamParseCauseKind.
Members:
InvalidUnsigned,InvalidFloat,MissingToken,EmptyProcessedLine, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (7)
- EmptyProcessedLine = MmffParamParseCauseKind.EmptyProcessedLine¶
- InvalidFloat = MmffParamParseCauseKind.InvalidFloat¶
- InvalidUnsigned = MmffParamParseCauseKind.InvalidUnsigned¶
- MissingToken = MmffParamParseCauseKind.MissingToken¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'InvalidUnsigned': MmffParamParseCauseKind.InvalidUnsigned, 'InvalidFloat': MmffParamParseCauseKind.InvalidFloat, 'MissingToken': MmffParamParseCauseKind.MissingToken, 'EmptyProcessedLine': MmffParamParseCauseKind.EmptyProcessedLine})¶
- values = mappingproxy({0: MmffParamParseCauseKind.InvalidUnsigned, 1: MmffParamParseCauseKind.InvalidFloat, 2: MmffParamParseCauseKind.MissingToken, 3: MmffParamParseCauseKind.EmptyProcessedLine})¶
- exception cosmolkit.MmffParamParseError(*args, **kwargs)¶
MmffParamParseError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property cause: MmffParamParseCause¶
“error_payload”} Structured reason the parameter entry could not be read.
- Type:
{“role”
- property column: int¶
Column of the malformed parameter entry.
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property line: int¶
Line of the malformed parameter entry.
- property table: MmffParamTable¶
“error_payload”} MMFF parameter table that could not be parsed.
- Type:
{“role”
- class cosmolkit.MmffParamTable(value)¶
Typed MmffParamTable values corresponding to the Rust enum.
Members:
Def,Prop,Pbci,Chg,Bond,Bndk,Stbn,Dfsb,Angle,Oop,Tor,Vdw,HerschbachLaurie,CovRadPauEle, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (17)
- Angle = MmffParamTable.Angle¶
- Bndk = MmffParamTable.Bndk¶
- Bond = MmffParamTable.Bond¶
- Chg = MmffParamTable.Chg¶
- CovRadPauEle = MmffParamTable.CovRadPauEle¶
- Def = MmffParamTable.Def¶
- Dfsb = MmffParamTable.Dfsb¶
- HerschbachLaurie = MmffParamTable.HerschbachLaurie¶
- Oop = MmffParamTable.Oop¶
- Pbci = MmffParamTable.Pbci¶
- Prop = MmffParamTable.Prop¶
- Stbn = MmffParamTable.Stbn¶
- Tor = MmffParamTable.Tor¶
- Vdw = MmffParamTable.Vdw¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Def': MmffParamTable.Def, 'Prop': MmffParamTable.Prop, 'Pbci': MmffParamTable.Pbci, 'Chg': MmffParamTable.Chg, 'Bond': MmffParamTable.Bond, 'Bndk': MmffParamTable.Bndk, 'Stbn': MmffParamTable.Stbn, 'Dfsb': MmffParamTable.Dfsb, 'Angle': MmffParamTable.Angle, 'Oop': MmffParamTable.Oop, 'Tor': MmffParamTable.Tor, 'Vdw': MmffParamTable.Vdw, 'HerschbachLaurie': MmffParamTable.HerschbachLaurie, 'CovRadPauEle': MmffParamTable.CovRadPauEle})¶
- values = mappingproxy({0: MmffParamTable.Def, 1: MmffParamTable.Prop, 2: MmffParamTable.Pbci, 3: MmffParamTable.Chg, 4: MmffParamTable.Bond, 5: MmffParamTable.Bndk, 6: MmffParamTable.Stbn, 7: MmffParamTable.Dfsb, 8: MmffParamTable.Angle, 9: MmffParamTable.Oop, 10: MmffParamTable.Tor, 11: MmffParamTable.Vdw, 12: MmffParamTable.HerschbachLaurie, 13: MmffParamTable.CovRadPauEle})¶
- class cosmolkit.MmffProperties¶
MMFF atom typing and charges in molecule atom order, with parameter availability.
Members (6)
- atom_type(atom_index) int¶
Return the MMFF atom type at a zero-based atom index.
- atoms: list[MmffAtomProperties]¶
Per-atom MMFF types and charges in molecule atom order.
- formal_charge(atom_index) float¶
Return the MMFF formal charge at a zero-based atom index.
- is_valid: bool¶
Whether MMFF parameters are available for the entire molecule.
- partial_charge(atom_index) float¶
Return the MMFF partial charge at a zero-based atom index.
- variant: MmffVariant¶
MMFF parameterization used to compute these properties.
- class cosmolkit.MmffPropertiesParams(*, mmff_variant=Ellipsis)¶
Options for MMFF atom typing and charge assignment.
Members (1)
- mmff_variant: MmffVariant¶
MMFF parameterization to use for atom typing and charges.
- exception cosmolkit.MmffTorLookupError(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffTorLookupError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (5)
- property atom_type: int | None¶
Readonly atom_type payload of the MissingDefinition error variant; None for other variants.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property level: int | None¶
Readonly level payload of the InvalidEquivalentLevel error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmffTorLookupErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmffTorLookupErrorKind(value)¶
Discriminants of MmffTorLookupErrorKind.
Members:
MissingDefinition,InvalidEquivalentLevel, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- InvalidEquivalentLevel = MmffTorLookupErrorKind.InvalidEquivalentLevel¶
- MissingDefinition = MmffTorLookupErrorKind.MissingDefinition¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'MissingDefinition': MmffTorLookupErrorKind.MissingDefinition, 'InvalidEquivalentLevel': MmffTorLookupErrorKind.InvalidEquivalentLevel})¶
- values = mappingproxy({0: MmffTorLookupErrorKind.MissingDefinition, 1: MmffTorLookupErrorKind.InvalidEquivalentLevel})¶
- class cosmolkit.MmffVariant(value)¶
Typed MmffVariant values corresponding to the Rust enum.
Members:
Mmff94,Mmff94s, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (5)
- exception cosmolkit.MmffVdwParseError(*args, **kwargs)¶
Failure in the mmff domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmffVdwParseError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (4)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property source: MmffParamParseError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmffVdwParseErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmffVdwParseErrorKind(value)¶
Discriminants of MmffVdwParseErrorKind.
Members:
Table,MissingHeader, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- MissingHeader = MmffVdwParseErrorKind.MissingHeader¶
- Table = MmffVdwParseErrorKind.Table¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Table': MmffVdwParseErrorKind.Table, 'MissingHeader': MmffVdwParseErrorKind.MissingHeader})¶
- values = mappingproxy({0: MmffVdwParseErrorKind.Table, 1: MmffVdwParseErrorKind.MissingHeader})¶
- exception cosmolkit.MmjsonReadError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmjsonReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (6)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property error: JsonError | MmjsonStructureError¶
“error_payload”} Concrete JSON or structure error, identical to this exception’s __cause__.
- Type:
{“role”
- property source: JsonError | MmjsonStructureError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property source_name: str¶
Source label attached to the parsing failure. Applies to MmjsonReadError.Parse, MmjsonReadError.Structure.
- property variant: MmjsonReadErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmjsonReadErrorKind(value)¶
Discriminants of MmjsonReadErrorKind.
Members:
Parse,Structure, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (5)
- Parse = MmjsonReadErrorKind.Parse¶
- Structure = MmjsonReadErrorKind.Structure¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Parse': MmjsonReadErrorKind.Parse, 'Structure': MmjsonReadErrorKind.Structure})¶
- values = mappingproxy({0: MmjsonReadErrorKind.Parse, 1: MmjsonReadErrorKind.Structure})¶
- exception cosmolkit.MmjsonStructureError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmjsonStructureError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (10)
- property actual: int | None¶
Readonly actual payload of the ArrayLength error variant; None for other variants.
- property block: int | None¶
Input or structural block involved in the failure. Applies to MmjsonStructureError.BlockKeyPrefix, MmjsonStructureError.BlockNotObject, MmjsonStructureError.InvalidCategory. None when this payload is absent.
- property category: int | None¶
Readonly category payload of the InvalidCategory error variant; None for other variants.
- property column: int | None¶
Input column involved in the failure. Applies to MmjsonStructureError.ExpectedArray, MmjsonStructureError.ArrayLength. None when this payload is absent.
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property expected: int | None¶
Readonly expected payload of the ArrayLength error variant; None for other variants.
- property kind: str | None¶
Readonly kind payload of the ExpectedArray error variant; None for other variants.
- property source: MmjsonValueError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: MmjsonStructureErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmjsonStructureErrorKind(value)¶
Discriminants of MmjsonStructureErrorKind.
Members:
RootNotObject,BlockKeyPrefix,BlockNotObject,InvalidCategory,ExpectedArray,ArrayLength,RowCountOverflow,MissingArenaValue,Text, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (12)
- ArrayLength = MmjsonStructureErrorKind.ArrayLength¶
- BlockKeyPrefix = MmjsonStructureErrorKind.BlockKeyPrefix¶
- BlockNotObject = MmjsonStructureErrorKind.BlockNotObject¶
- ExpectedArray = MmjsonStructureErrorKind.ExpectedArray¶
- InvalidCategory = MmjsonStructureErrorKind.InvalidCategory¶
- MissingArenaValue = MmjsonStructureErrorKind.MissingArenaValue¶
- RootNotObject = MmjsonStructureErrorKind.RootNotObject¶
- RowCountOverflow = MmjsonStructureErrorKind.RowCountOverflow¶
- Text = MmjsonStructureErrorKind.Text¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'RootNotObject': MmjsonStructureErrorKind.RootNotObject, 'BlockKeyPrefix': MmjsonStructureErrorKind.BlockKeyPrefix, 'BlockNotObject': MmjsonStructureErrorKind.BlockNotObject, 'InvalidCategory': MmjsonStructureErrorKind.InvalidCategory, 'ExpectedArray': MmjsonStructureErrorKind.ExpectedArray, 'ArrayLength': MmjsonStructureErrorKind.ArrayLength, 'RowCountOverflow': MmjsonStructureErrorKind.RowCountOverflow, 'MissingArenaValue': MmjsonStructureErrorKind.MissingArenaValue, 'Text': MmjsonStructureErrorKind.Text})¶
- values = mappingproxy({0: MmjsonStructureErrorKind.RootNotObject, 1: MmjsonStructureErrorKind.BlockKeyPrefix, 2: MmjsonStructureErrorKind.BlockNotObject, 3: MmjsonStructureErrorKind.InvalidCategory, 4: MmjsonStructureErrorKind.ExpectedArray, 5: MmjsonStructureErrorKind.ArrayLength, 6: MmjsonStructureErrorKind.RowCountOverflow, 7: MmjsonStructureErrorKind.MissingArenaValue, 8: MmjsonStructureErrorKind.Text})¶
- class cosmolkit.MmjsonUnexpectedType(value)¶
Typed MmjsonUnexpectedType values corresponding to the Rust enum.
Members:
Null,False_,True_,Array,Object, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.Members (8)
- Array = MmjsonUnexpectedType.Array¶
- False_ = MmjsonUnexpectedType.False_¶
- Null = MmjsonUnexpectedType.Null¶
- Object = MmjsonUnexpectedType.Object¶
- True_ = MmjsonUnexpectedType.True_¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Null': MmjsonUnexpectedType.Null, 'False_': MmjsonUnexpectedType.False_, 'True_': MmjsonUnexpectedType.True_, 'Array': MmjsonUnexpectedType.Array, 'Object': MmjsonUnexpectedType.Object})¶
- values = mappingproxy({0: MmjsonUnexpectedType.Null, 1: MmjsonUnexpectedType.False_, 2: MmjsonUnexpectedType.True_, 3: MmjsonUnexpectedType.Array, 4: MmjsonUnexpectedType.Object})¶
- exception cosmolkit.MmjsonValueError(*args, **kwargs)¶
Failure in the bio domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
MmjsonValueError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property end: int | None¶
Readonly end payload of the InvalidSpan error variant; None for other variants.
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property start: int | None¶
Readonly start payload of the InvalidSpan error variant; None for other variants.
- property valid_up_to: int | None¶
Readonly valid_up_to payload of the InvalidUtf8 error variant; None for other variants.
- property value: MmjsonUnexpectedType | None¶
“error_payload”} Value rejected or reported by the native operation. Applies to MmjsonValueError.UnexpectedType, MmjsonValueError.InvalidArrayElement. None when this payload is absent.
- Type:
{“role”
- property variant: MmjsonValueErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.MmjsonValueErrorKind(value)¶
Discriminants of MmjsonValueErrorKind.
Members:
UnexpectedType,InvalidArrayElement,MissingArrayFirstElement,InvalidSpan,InvalidUtf8, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (8)
- InvalidArrayElement = MmjsonValueErrorKind.InvalidArrayElement¶
- InvalidSpan = MmjsonValueErrorKind.InvalidSpan¶
- InvalidUtf8 = MmjsonValueErrorKind.InvalidUtf8¶
- MissingArrayFirstElement = MmjsonValueErrorKind.MissingArrayFirstElement¶
- UnexpectedType = MmjsonValueErrorKind.UnexpectedType¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'UnexpectedType': MmjsonValueErrorKind.UnexpectedType, 'InvalidArrayElement': MmjsonValueErrorKind.InvalidArrayElement, 'MissingArrayFirstElement': MmjsonValueErrorKind.MissingArrayFirstElement, 'InvalidSpan': MmjsonValueErrorKind.InvalidSpan, 'InvalidUtf8': MmjsonValueErrorKind.InvalidUtf8})¶
- values = mappingproxy({0: MmjsonValueErrorKind.UnexpectedType, 1: MmjsonValueErrorKind.InvalidArrayElement, 2: MmjsonValueErrorKind.MissingArrayFirstElement, 3: MmjsonValueErrorKind.InvalidSpan, 4: MmjsonValueErrorKind.InvalidUtf8})¶
- exception cosmolkit.Mol2PostError(*args, **kwargs)¶
Mol2PostError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (3)
- property domain: str¶
Native subsystem reporting this failure, preserved independently of the human-readable message.
- property source: ValenceError | StereoError | SanitizeError | MolPostError | HydrogenError | RingFindingError | CoordinateValidationError | LegacyStereoError | MoleculePropertyError¶
“error_source”} Immediate native cause, also available as __cause__; None when the native error has no cause.
- Type:
{“role”
- property stage: str¶
MOL2 post-processing stage that failed.
- exception cosmolkit.Mol2ReadError(*args, **kwargs)¶
Failure in the io domain.
The readonly variant identifies the Rust error case. Payload fields are present only for their documented variant and otherwise return None. str(error) preserves the native message; __cause__ retains the underlying exception when one exists.
Mol2ReadError is a structured native exception. Its readonly fields retain the Rust failure data. Use str(error) for the message and __cause__ for the underlying failure, when present. Instances are raised by operations, not constructed directly.
Members (7)
- property domain: str¶
Domain that reported this failure; this does not replace the typed variant.
- property feature: str | None¶
Readonly feature payload of the Unsupported error variant; None for other variants.
- property message: str | None¶
Detailed native diagnostic message. Applies to Mol2ReadError.Parse. None when this payload is absent.
- property property_error: PropertyStringError | None¶
“error_payload”} Structured PropertyStringError payload of Mol2ReadError.PropertyString; None for other variants. Inspect __cause__ separately for the actual exception chain.
- Type:
{“role”
- property source: TopologyValidationError | CoordinateValidationError | AtomPropertyError | MoleculePropertyError | None¶
“error_source”} The actual underlying exception, identical to __cause__, or None.
- Type:
{“role”
- property source_message: str | None¶
Message of the immediate underlying cause, or None when there is no cause.
- property variant: Mol2ReadErrorKind¶
Exact Rust error variant, independent of the human-readable message.
- class cosmolkit.Mol2ReadErrorKind(value)¶
Discriminants of Mol2ReadErrorKind.
Members:
Parse,Unsupported,Topology,Coordinates,PropertyString,AtomProperty,MoleculeProperty, Compare members by value. names and values are readonly lookup mappings; pickle preserves the enum type and value.Members (10)
- AtomProperty = Mol2ReadErrorKind.AtomProperty¶
- Coordinates = Mol2ReadErrorKind.Coordinates¶
- MoleculeProperty = Mol2ReadErrorKind.MoleculeProperty¶
- Parse = Mol2ReadErrorKind.Parse¶
- PropertyString = Mol2ReadErrorKind.PropertyString¶
- Topology = Mol2ReadErrorKind.Topology¶
- Unsupported = Mol2ReadErrorKind.Unsupported¶
- name: str¶
Canonical member name; aliases of the same value share this name.
- names = mappingproxy({'Parse': Mol2ReadErrorKind.Parse, 'Unsupported': Mol2ReadErrorKind.Unsupported, 'Topology': Mol2ReadErrorKind.Topology, 'Coordinates': Mol2ReadErrorKind.Coordinates, 'PropertyString': Mol2ReadErrorKind.PropertyString, 'AtomProperty': Mol2ReadErrorKind.AtomProperty, 'MoleculeProperty': Mol2ReadErrorKind.MoleculeProperty})¶
- values = mappingproxy({0: Mol2ReadErrorKind.Parse, 1: Mol2ReadErrorKind.Unsupported, 2: Mol2ReadErrorKind.Topology, 3: Mol2ReadErrorKind.Coordinates, 4: Mol2ReadErrorKind.PropertyString, 5: Mol2ReadErrorKind.AtomProperty, 6: Mol2ReadErrorKind.MoleculeProperty})¶
- class cosmolkit.Mol2ReadParams(*, sanitize=Ellipsis, remove_hs=Ellipsis, variant=Ellipsis, cleanup_substructures=Ellipsis)¶
MOL2 parser variant and native post-processing options.
- class cosmolkit.Mol2Type(value)¶
Typed Mol2Type values corresponding to the Rust enum.
Members:
Corina, Compare members by value. names and values provide readonly lookups; pickle preserves the type and value. Use the declared constructor signature rather than relying on implicit string conversion.
- class cosmolkit.MolBlockWriteParams(*, format=Ellipsis, force_2d=Ellipsis, include_stereo=Ellipsis, kekulize=Ellipsis, precision=Ellipsis, coordinate_selection=Ellipsis, include_coordinates=Ellipsis)¶
MolBlock format, stereochemistry and coordinate-output options.
Members (7)
- coordinate_selection: MolCoordinateSelection¶
Select automatic, explicit 2D or explicit 3D coordinates.
- force_2d: bool¶
Request two-dimensional coordinate output.
- include_coordinates: bool¶
Include coordinates; when false no stored conformer is selected.
- include_stereo: bool¶
Include stereochemical information in the output.
- kekulize: bool¶
Kekulize aromatic bonds for MolBlock output.
- precision: int¶
Decimal precision used by coordinate output formats that support it.
- class cosmolkit.MolCoordinateSelection¶
Select a stored coordinate set: Auto uses the unique available set; TwoD and ThreeD select by ID.
Members (4)
-