Expand description
Rust-native cheminformatics and structural biology toolkit.
COSMolKit provides molecular graph operations, SMILES/SMARTS processing, molecular file IO, fingerprints and descriptors, 2D depiction, native 3D conformer generation, UFF/MMFF optimization, InChI, substructure search, batch workflows, and protein structure APIs.
For supported cheminformatics operations, RDKit-compatible behavior is treated as the correctness floor and validated through explicit parity tests.
This crate is the public Rust facade that re-exports COSMolKit core modules.
§Examples
use cosmolkit::Molecule;
let mol = Molecule::from_smiles("CCO").unwrap();
let with_hydrogens = mol.with_hydrogens().unwrap();
assert_eq!(mol.num_atoms(), 3);
assert!(with_hydrogens.num_atoms() > mol.num_atoms());use cosmolkit::Molecule;
let mut mol = Molecule::from_smiles("CCO").unwrap();
mol.add_hydrogens_().unwrap();
mol.compute_2d_coordinates_().unwrap();
assert!(mol.num_atoms() > 3);
assert_eq!(mol.coordinates_2d().unwrap().len(), mol.num_atoms());Residue codes use stable source names for parsing, display, and serde; their numeric table indexes are not a persistence format:
use cosmolkit::{ResidueCode, ResidueIdentity};
let mse: ResidueCode = "MSE".parse().unwrap();
assert_eq!(mse.to_string(), "MSE");
assert_eq!(mse.info().parent_standard_code(), Some(ResidueCode::MET));
let unknown = ResidueIdentity::new("MY_COMPONENT");
assert_eq!(unknown.name(), "MY_COMPONENT");
assert_eq!(unknown.code(), ResidueCode::UNKNOWN);Elements are checked values over the dummy atom and the 118 real elements. Symbols are the stable display and serde representation:
use cosmolkit::{ELEMENTS, Element};
let chlorine: Element = "Cl".parse().unwrap();
assert_eq!(chlorine, Element::CL);
assert_eq!(chlorine.atomic_number(), 17);
assert_eq!(chlorine.info().symbol, "Cl");
assert_eq!(ELEMENTS.len(), 118);
assert!(Element::from_atomic_number(119).is_none());Re-exports§
pub use cosmolkit_core as core;
Modules§
- bio
- Biomolecular structure primitives.
- chemistry
- Chemistry algorithms over the core molecule model.
- confseq
- inchi
- COSMolKit
Moleculebridge for the toolkit-neutral InChI source port. - io
- IO pipelines.
- model
- Core molecule state model.
- notation
- Text notations and fragment/sequence construction.
- operations
- Registered mutation and finalization operations.
- properties
- Derived descriptors, rendering, hashing, serialization, and batch helpers.
- search
- Query, SMARTS, and substructure search.
- support
Structs§
- AddHs
Params - Additional
Output - RDKit-style scratch container for optional fingerprint provenance outputs.
- Adjacency
List - Alignment
Atom Map - Alignment
Parameters - Alignment
Result - Alignment
Transform - AllConformer
Rmsd Parameters - AltLoc
Label - Single-char altloc label (e.g. b’A’, b’B’).
- Angle
Constraint Contrib - Angle
Constraint Contribs - Angle
Constraint Contribs Params - Aromaticity
Assignment - Atom
- Immutable atom record owned by
Molecule. - Atom
Coords Match Functor - AtomId
- Stable atom table index.
- Atom
Mapping - Atom
Name - Up to 4-char atom name (e.g. “ CA “, “ N “).
- Atom
Pair Fingerprint Generator - Atom
Pair Fingerprint Output - Explicit-bit AtomPair fingerprint together with optional provenance.
- Atom
Pair Fingerprint Params - Parameters for the project-native AtomPair fingerprint API.
- Atom
PdbResidue Info - Typed atom-level PDB residue metadata.
- AtomRow
- Atom
Source Ids - Atom
Spec - Atom construction payload.
- Avalon
Fingerprint Flags - Avalon feature flags from the source
ssmatch.hdefinitions. - Avalon
Fingerprint Params - Parameters for the source-backed Avalon bit-vector API.
- Batch
Export Report - Batch
Progress Bar - Batch
Record Error - Batch
Validation Error - Best
Alignment Parameters - BioAssembly
- BioAtom
Id - BioBlock
Set - BioChain
Id - BioCis
Pep - BioConnection
- BioDerived
State - BioEntity
Id - BioMetadata
- BioMod
Res - BioModel
Id - BioNcs
Operator - BioPdb
Read Params - BioResidue
Id - BioRow
Mapping - BioState
Set - BioStructure
- Flat-row biomolecular structure.
- BioStructure
Mapping - BioStructure
OpSpec - BioTransform
- Block
Access - Block
Set - Bond
- Immutable bond record owned by
Molecule. - BondId
- Stable bond table index.
- Bond
Mapping - Bond
Spec - Bond construction payload. Builders assign
BondId. - Chain
Row - Chain
Source Ids - CipLabel
Options - Options for modern molecular-context CIP assignment.
- Conf
SeqBatch Decode Result - Conf
SeqDecode Options - Conformer2D
- Conformer3D
- Conformer
Alignment Parameters - Conformer
Alignment Report - Conformer
Rmsd - Conformer
Store - Coordinate
Block - 3D coordinates for all atoms, indexed by AtomId.
Invariant:
len() == atoms.len()in the owning BioStructure. - Coordinate
Rmsd Parameters - Crippen
Descriptor Values - Crystal
Cell - Crystal
Info - CxSmiles
Fields - Derived
State - Derived state invalidated by molecule operations.
- Dihedral
Output - Distance
Constraint Contrib - Distance
Constraint Contribs - Distance
Constraint Contribs Params - Element
- Stable chemical-element identity.
- Element
Info - Source-aligned periodic-table metadata for an
Element. - Element
Parse Error - Error returned when a string is not a source-recognized element symbol.
- Embed
Molecule Result - Embed
Multiple Confs Result - Embed
Parameters - Entity
Row - Entity
Source Ids - Feature
Spec - Fingerprint
- Fingerprint
Arguments - RDKit-style common fingerprint arguments shared by Morgan/MACCS wrappers.
- Fingerprint
Func Arguments - Force
Field - Force
Field Snapshot - Force
Field Vec3 - Hall
Kier Alpha Values - Hall-Kier alpha and its atom-index-aligned contributions.
- Inchi
ApiParity Spec - Exact-parity contract for one public scalar InChI API.
- Inchi
Diagnostic - Inchi
Error - Structured failure from one of the four scalar InChI operations.
- Inchi
Return Values - Return fields written by the official InChI generation or parsing API.
- Inchi
ToInchi KeyOutput - Output of
inchi_to_inchi_key. - Invariant
Check Set - Labute
AsaContributions - Labute ASA and its atom-index-aligned source contributions.
- Layered
Fingerprint Layers - Source layer flags for RDKit’s experimental Layered fingerprint algorithm.
- Layered
Fingerprint Params - Parameters for the source-backed Layered fingerprint API.
- Layered
Fingerprint Result - Maccs
Fingerprint Params - Parameters for MACCS key generation.
- Mmcif
Output Groups - Mmcif
Write Options - Options for canonical Gemmi-aligned mmCIF output.
- Mmff
Angle - MMFF angle-bending parameter.
- Mmff
Angle Collection - MMFF angle-bending parameter collection.
- Mmff
Atom Properties - Mmff
Bond - MMFF bond-stretching parameter.
- Mmff
Bond Collection - MMFF bond-stretching parameter collection.
- MmffChg
- MMFF bond-charge-increment parameter.
- Mmff
ChgCollection - MMFF bond-charge-increment collection.
- MmffDef
- MMFF atom type equivalence levels.
- Mmff
DefCollection - MMFF atom type equivalence definition collection.
- Mmff
Dfsb Collection - MMFF default stretch-bend parameter collection.
- Mmff
MolProperties - MmffOop
- MMFF out-of-plane bending parameter.
- Mmff
OopCollection - MMFF out-of-plane bending parameter collection.
- Mmff
Optimize Molecule Conf Result - Mmff
Optimize Molecule Confs Result - Mmff
Optimize Molecule Result - Mmff
Pbci - MMFF partial bond charge increments.
- Mmff
Pbci Collection - MMFF partial bond charge increment collection.
- Mmff
Prop - MMFF atom-type properties.
- Mmff
Prop Collection - MMFF atom-type property collection.
- Mmff
Stbn - MMFF stretch-bend parameter.
- Mmff
Stbn Collection - MMFF stretch-bend parameter collection.
- MmffTor
- MMFF torsion parameter.
- Mmff
TorCollection - MMFF torsion parameter collection.
- MmffVdw
- MMFF non-bonded Van der Waals parameter.
- Mmff
VdwCollection - MMFF non-bonded Van der Waals parameter collection.
- Mmff
VdwRijstar Eps - MMFF combined Van der Waals pair constants.
- Model
Row - Mol2
Read Params - Mol2
Record - MolFrom
Inchi Output - Result of parsing an InChI into a COSMolKit molecule.
- MolTo
Inchi KeyOutput - Output of
mol_to_inchi_key. - MolTo
Inchi Output - Output of
mol_to_inchi. - Molecule
- Immutable molecule value.
- Molecule
Batch - Molecule
Builder - One-shot molecule construction API.
- Molecule
Capabilities - Molecule
OpSpec - Molecule
Properties - Morgan
Additional Output - Morgan
BitFingerprint Output - Morgan
Bond Invariants Generator - Morgan
Fingerprint Output - Morgan
Fingerprint Params - Morgan
Sparse Fingerprint Output - Neighbor
Ref - Operation
Invariant Entry - Operation
Trace - Parity
Matrix Entry - Pattern
Fingerprint Params - Parameters for the source-compatible Pattern fingerprint.
- Position
Constraint Contrib - Potential
Stereo Analysis - Value-style result of potential-stereo analysis.
- Potential
Stereo Options - Options for the single potential-stereo analysis engine.
- Property
Store - Protein
- Protein
Atom Ref - Protein
Chain Ref - Protein
Residue Ref - Protein
Selection Summary - Remove
HsParams - Residue
Code Parse Error - Error returned when a name is not present in the source residue table.
- Residue
Identity - A residue name together with its table classification.
- Residue
Info - Residue
Name - Up to 3-char residue name (e.g. “ALA”, “GLY”).
- Residue
Row - Ring
Info - RowSpan
- SGroup
Attach Point - SGroup
Bracket - SGroupC
State - SGroup
Data - SGroup
Display - Sanitize
Error - Sanitize
Ops - SdfDataset
- SdfProperty
List - SdfRead
Params - SdfRecord
Metadata - Semantic
Precondition Set - Smarts
Parse Params - RDKit source: SmilesParse.h lines 56-67 RDKit✔️✔️: struct RDKIT_SMILESPARSE_EXPORT SmartsParserParams { RDKit✔️✔️: bool allowCXSMILES = true; RDKit✔️✔️: bool strictCXSMILES = true; RDKit✔️✔️: bool parseName = true; RDKit✔️✔️: bool mergeHs = false; RDKit✔️✔️: bool skipCleanup = false; RDKit✔️✔️: bool debugParse = false; RDKit✔️✔️: std::map<std::string, std::string> replacements; RDKit✔️✔️: };
- Smiles
Parse Params - Source-backed SMILES parser options.
- Smiles
Write Params - Sparse
BitFingerprint - Sparse
Count Fingerprint - Stereo
Group - Stereo
Info - Stereoisomer
Iterator - Lazy iterator over source-ordered stereoisomers.
- Stereoisomer
Options - Options for lazy stereoisomer enumeration.
- Structure
Molecule Options - Substance
Group - Substance
Group Id - Substance-group identity inside a molecule.
- Substruct
Match Params - Substruct
Match Result - Result of a single substructure match.
- Support
Matrix Entry - Tautomer
Catalog - An ordered collection of compiled tautomer transforms.
- Tautomer
Enumeration - Ordered molecules and metadata produced by one tautomer-enumeration run.
- Tautomer
Enumerator - Configured tautomer enumerator backed by one shared immutable catalog.
- Tautomer
Options - Source-compatible limits and stereochemistry policies for enumeration.
- Tautomer
Score - Source-defined components of a tautomer canonicalization score.
- Tautomer
Score Term - One named SMARTS contribution to tautomer canonicalization.
- Tautomer
Transform - One compiled, source-ordered tautomer transformation.
- Tetrahedral
Stereo - Topological
Fingerprint Output - Typed provenance returned by the source
atomBitsandbitInfooutputs. - Topological
Fingerprint Output Request - Typed request for the two legacy
RDKFingerprintMolprovenance outputs. - Topological
Fingerprint Params - Parameters for the source-backed
RDKFingerprintMolboundary. - Topological
Fingerprint Result - Topological
Torsion Fingerprint Generator - RDKit’s Topological Torsion generator is instantiated only with a 64-bit
output type; Rust fixes the bit-id and sparse-vector domain to
u64. - Topological
Torsion Fingerprint Output Request - Typed request for a Topological Torsion vector and shared provenance.
- Topological
Torsion Fingerprint Params - Rust-native parameters for the RDKit Topological Torsion generator.
- Topological
Torsion Fingerprint Result - Rust-native Topological Torsion result with optional shared provenance.
- Topological
Torsion Legacy Params - Rust-native parameters for the three deprecated RDKit compatibility paths.
- Topology
Mapping - Torsion
Angle Contrib M6 - Torsion
Angle Contribs - Torsion
Angle Contribs Params - Torsion
Constraint Contrib - UffAngle
- UFF parameters for angle bending.
- UffBond
- UFF parameters for bond stretching.
- UffInv
- UFF parameters for inversions.
- UffOptimize
Molecule Conf Result - UffOptimize
Molecule Confs Result - UffOptimize
Molecule Result - UffTor
- UFF parameters for torsions.
- UffVdw
- UFF parameters for van der Waals interactions.
- Unsupported
Feature Error - Valence
Assignment - With2D
Coordinates Params
Enums§
- AddHydrogens
Error - Adjacency
Error - Alignment
Error - Aromaticity
Error - Aromaticity
Model - Atom
Query Predicate - Atom-level SMARTS / MolFile query predicates.
- Batch
Error Mode - Batch
Record - BioConnection
Type - BioCoor
Format - BioEdit
Kind - BioOp
Domain - BioOp
Kind - BioOperation
Error - BioParity
Policy - BioRead
Error - BioWrite
Error - Bond
Direction - Bond
Order - COSMolKit core bond order.
- Bond
Query Predicate - Bond-level query predicates.
- Bond
Stereo - Chain
Kind - Chiral
Tag - CipDescriptor
- A descriptor emitted by the supported modern CIP assignment dispatcher.
- CipDescriptor
Error - Error returned when persisted
_CIPCodestate is not a descriptor emitted by the supported modern assignment dispatcher. - CipLabeler
Error - Structured failures from the modern source-backed CIP labeler.
- CipState
Policy - Source-defined lifecycle of modern CIP observable state for an operation.
- Conf
SeqDecode Error - Conf
SeqFast Geometry Error - Conf
SeqTemplate Backend - Controlling
Atom - One ordered controlling-atom slot in a potential-stereo record.
- Coordinate
Dimension - Descriptor
Error - DgBounds
Error - Double
Bond Stereo - RDKit❗✔️: E/Z bond stereo information
- Embed
Failure Cause - Entity
Kind - Enumeration
Error - Feature
Category - Fingerprint
Error - Hybridization
- Inchi
Diagnostic Level - Inchi
Error Kind - Stable category for failures at the toolkit-neutral InChI boundary.
- Invariant
Error - Kekulize
Error - Ligand
Ref - Mapping
Requirement - Mmff
MolProperties Error - Mmff
Param Error - Mmff
Public ApiError - Mmff
Variant - Mol2
Read Error - Mol2
Type - Molecule
Build Error - Molecule
OpKind - Molecule
OpOutput - Number of molecule values produced by a registered operation wrapper.
- Morgan
Atom Invariants Generator - NumRotatable
Bonds Options - Operation
Domain - Operation
Error - Parity
Policy - Pickle
Error - Polymer
Kind - Potential
Stereo Error - Query
Node - A recursive Boolean query tree over a predicate type
T. - Remove
Hydrogens Error - Residue
Code - Residue
Info Kind - Residue
Info Sequence Error - Residue
Kind - Restore
Bond DirOption - Ring
Find Type - Ring
Finding Error - SGroup
Bond Role - SGroup
Bracket Style - SGroup
Connection - Sanitize
Step - SdfCoordinate
Mode - SdfProperty
List Target - Semantic
Precondition - Smarts
Parse Error - Errors produced by SMARTS parsing.
- Smarts
Write Error - Smiles
Parse Error - Smiles
Write Error - Stereo
Center - Typed location of a potential stereochemical element.
- Stereo
Descriptor - Stereo
Error - Stereo
Group Kind - Stereo
Specified - Stereo
Type - Structure
Molecule Conversion Error - Substance
Group Kind - Substruct
Match Error - Substruct
Match Overload - Substruct
Match Params Json Error - Support
Status - SvgDraw
Error - Errors returned by SVG / PNG drawing routines.
- Tautomer
Canonicalization Error - Tautomer
Catalog Error - Tautomer
Enumeration Error - Tautomer
Enumeration Status - Completion state of a tautomer-enumeration run.
- Tautomer
RunError - Structured failures produced while executing a tautomer-enumeration run.
- Tautomer
Score Error - Tautomer
Transform Error - A structurally invalid tautomer transform.
- Topological
Torsion Fingerprint Value - One of the four source-supported Topological Torsion vector forms.
- Topological
Torsion Fingerprint Vector - Vector form requested from
topological_torsion_fingerprint_with_output. - Topological
Torsion Legacy Kind - Legacy compatibility form selected by
TopologicalTorsionLegacyParams. - Topological
Torsion Legacy Result - Topology
Edit Kind - Topology
Trust - UffPublic
ApiError - Valence
Error - Valence
Model - XyzRead
Error
Constants§
- AROMATICITY_
FEATURE - ASSIGNED_
AROMATICITY_ SPEC - ASSIGNED_
RINGS_ SPEC - ASSIGNED_
RING_ FAMILIES_ SPEC - ASSIGNED_
VALENCE_ SPEC - ATOM_
PAIRS_ VERSION - ATOM_
PAIR_ ATOM_ NUMBER_ TYPES - ATOM_
PAIR_ CODE_ SIZE - ATOM_
PAIR_ FINGERPRINT_ FEATURE - ATOM_
PAIR_ MAX_ NUM_ BRANCHES - ATOM_
PAIR_ MAX_ NUM_ PI - ATOM_
PAIR_ MAX_ PATH_ LENGTH - ATOM_
PAIR_ NUM_ BRANCH_ BITS - ATOM_
PAIR_ NUM_ CHIRAL_ BITS - ATOM_
PAIR_ NUM_ FINGERPRINT_ BITS - ATOM_
PAIR_ NUM_ PATH_ BITS - ATOM_
PAIR_ NUM_ PI_ BITS - ATOM_
PAIR_ NUM_ TYPE_ BITS - AVALON_
FINGERPRINT_ FEATURE - BATCH_
FEATURE - BIO_
MMCIF_ ATOM_ SITE_ SUBSET_ READ_ FEATURE Deprecated - BIO_
MMCIF_ READ_ FEATURE - BIO_
MMCIF_ WRITE_ FEATURE - BIO_
PDB_ COORDINATE_ SUBSET_ READ_ FEATURE Deprecated - BIO_
PDB_ READ_ FEATURE - BIO_
SELECTION_ FEATURE - BIO_
STRUCTURE_ FEATURE - CIP_
LABELER_ FEATURE - CONFORMER_
GENERATION_ FEATURE - COORDINATE_
2D_ FEATURE - COORDINATE_
EDIT_ FEATURE - DESCRIPTORS_
FEATURE - DG_
BOUNDS_ FEATURE - DRAWING_
FEATURE - ENUMERATE_
TAUTOMERS_ WITH_ OPTIONS_ SPEC - FINGERPRINT_
FEATURE - HYDROGENS_
FEATURE - INCHI_
API_ PARITY_ MATRIX - Structured parity matrix for the complete public InChI surface.
- INCHI_
FEATURE - KEKULIZE_
FEATURE - LAYERED_
FINGERPRINT_ FEATURE - LAYERED_
FINGERPRINT_ MAX_ LAYERS - LAYERED_
FINGERPRINT_ SUBSTRUCTURE_ LAYERS - LAYERED_
FINGERPRINT_ VERSION - MMFF_
MOL_ PROPERTIES_ FEATURE - MOLALIGN_
FEATURE - MOLBLOCK_
IO_ FEATURE - MOLECULE_
OPS - OPERATION_
INVARIANT_ MATRIX - PARITY_
MATRIX - PATTERN_
FINGERPRINT_ FEATURE - PATTERN_
FINGERPRINT_ VERSION - PUBLIC_
FEATURES - RESIDUE_
INFO_ TABLE - RINGS_
FEATURE - SANITIZE_
FEATURE - SANITIZE_
SPEC - SMILES_
PARSE_ FEATURE - SMILES_
WRITE_ FEATURE - STEREOISOMER_
ENUMERATION_ FEATURE - STEREO_
FEATURE - SUBSTRUCTURE_
FEATURE - SUPPORT_
MATRIX - TAUTOMER_
ENUMERATION_ FEATURE - TOPOLOGICAL_
TORSION_ FINGERPRINT_ FEATURE - UNKNOWN_
TABULATED_ RESIDUE_ IDX - VALENCE_
FEATURE - WITHOUT_
HYDROGENS_ SPEC - WITHOUT_
HYDROGENS_ WITH_ PARAMS_ SPEC - WITH_
2D_ COORDINATES_ SPEC - WITH_
3D_ CONFORMERS_ SPEC - WITH_
3D_ CONFORMER_ SPEC - WITH_
ADDED_ 3D_ CONFORMER_ SPEC - WITH_
CLEARED_ 3D_ CONFORMERS_ SPEC - WITH_
HYDROGENS_ SPEC - WITH_
KEKULIZED_ BONDS_ SPEC - WITH_
ONLY_ 3D_ CONFORMER_ SPEC
Statics§
- ELEMENTS
- All 118 real elements in ascending atomic-number order (H through Og).
- ELEMENTS_
WITH_ DUMMY - The dummy atom followed by all real elements in atomic-number order.
Traits§
- Force
Field Contrib - Tautomer
Enumeration Callback - Borrowed cancellation hook evaluated at the source callback point.
Functions§
- analyze_
potential_ stereo - Analyze potential stereochemistry on an isolated molecule value.
- assign_
radicals - assign_
stereochemistry Deprecated - assign_
valence - assign_
valence_ with_ options - atom_
has_ valence_ violation - atom_
pair_ fingerprint - Generate the explicit-bit AtomPair result without mutating the molecule.
- atom_
pair_ fingerprint_ with_ output - Generate an explicit-bit AtomPair fingerprint and, when requested, all source-supported provenance containers.
- batch_
progress_ bar - bio_
structure_ to_ rdkit_ pdb_ molecule Deprecated - cached_
valence_ assignment - Returns the molecule’s current atom property-cache valence, when present.
- calc_
chi_ 0 - calc_
chi_ 0n - calc_
chi_ 0v - calc_
chi_ 1 - calc_
chi_ 1n - calc_
chi_ 1v - calc_
chi_ 2n - calc_
chi_ 2v - calc_
chi_ 3n - calc_
chi_ 3v - calc_
chi_ 4n - calc_
chi_ 4v - calc_
chi_ nn - calc_
chi_ nv - calc_
crippen_ descriptors - calc_
exact_ mol_ wt - calc_
fraction_ csp3 - calc_
hall_ kier_ alpha - calc_
hall_ kier_ alpha_ with_ contributions - calc_
kappa_ 1 - calc_
kappa_ 2 - calc_
kappa_ 3 - calc_
labute_ asa - calc_
labute_ asa_ contributions - calc_
lipinski_ hba - calc_
lipinski_ hbd - calc_
mol_ formula - calc_
mol_ wt - calc_
mqns - calc_
num_ aliphatic_ carbocycles - calc_
num_ aliphatic_ heterocycles - calc_
num_ aliphatic_ rings - calc_
num_ amide_ bonds - calc_
num_ aromatic_ carbocycles - calc_
num_ aromatic_ heterocycles - calc_
num_ aromatic_ rings - calc_
num_ atom_ stereo_ centers - calc_
num_ atoms - calc_
num_ bridgehead_ atoms - calc_
num_ hba - calc_
num_ hbd - calc_
num_ heavy_ atoms - calc_
num_ heteroatoms - calc_
num_ heterocycles - calc_
num_ rings - calc_
num_ rotatable_ bonds - calc_
num_ saturated_ carbocycles - calc_
num_ saturated_ heterocycles - calc_
num_ saturated_ rings - calc_
num_ spiro_ atoms - calc_
num_ unspecified_ atom_ stereo_ centers - calc_
phi - calc_
qed - calc_
slogp_ vsa - calc_
slogp_ vsa_ 1 - calc_
slogp_ vsa_ 2 - calc_
slogp_ vsa_ 3 - calc_
slogp_ vsa_ 4 - calc_
slogp_ vsa_ 5 - calc_
slogp_ vsa_ 6 - calc_
slogp_ vsa_ 7 - calc_
slogp_ vsa_ 8 - calc_
slogp_ vsa_ 9 - calc_
slogp_ vsa_ 10 - calc_
slogp_ vsa_ 11 - calc_
slogp_ vsa_ 12 - calc_
slogp_ vsa_ with_ bins - calc_
smr_ vsa - calc_
smr_ vsa_ 1 - calc_
smr_ vsa_ 2 - calc_
smr_ vsa_ 3 - calc_
smr_ vsa_ 4 - calc_
smr_ vsa_ 5 - calc_
smr_ vsa_ 6 - calc_
smr_ vsa_ 7 - calc_
smr_ vsa_ 8 - calc_
smr_ vsa_ 9 - calc_
smr_ vsa_ 10 - calc_
smr_ vsa_ with_ bins - calc_
torsion_ energy - calc_
torsion_ energy_ m6 - calc_
tpsa - check_
substruct_ match_ overload_ support - classify_
residue_ name - compute_
dihedral_ from_ flat - compute_
dihedral_ from_ points - compute_
dihedral_ from_ position_ vec - decode_
confseq - decode_
confseq_ batch - decode_
confseq_ batch_ with_ options - decode_
confseq_ record - decode_
confseq_ record_ batch - decode_
confseq_ record_ batch_ with_ options - decode_
confseq_ record_ with_ options - decode_
confseq_ with_ options - default_
tautomer_ score_ terms - detect_
chemistry_ problems - embed_
molecule - embed_
molecule_ result - embed_
multiple_ confs - embed_
multiple_ confs_ result - embed_
multiple_ confs_ return_ vector - enumerate_
stereoisomers - Create a lazy source-ordered stereoisomer iterator.
- enumerate_
stereoisomers_ with_ random_ bits - Create a lazy stereoisomer iterator using a source-compatible random-bit callback when the option boundary selects bounded random enumeration.
- expand_
one_ letter - expand_
one_ letter_ sequence - expand_
protein_ one_ letter - expand_
protein_ one_ letter_ string - fast_
find_ rings - find_
ring_ families - find_
sssr - find_
tabulated_ residue - find_
tabulated_ residue_ idx - get_
atom_ code - get_
atom_ smarts - get_
bond_ smarts - get_
residue_ info - get_
residue_ info_ checked - get_
substruct_ match - Get the first substructure match, if any.
- get_
substruct_ matches - Get all substructure matches with default parameters.
- get_
substruct_ matches_ with_ params - Get all substructure matches with custom parameters.
- get_
topological_ torsion_ code - get_
topological_ torsion_ hash - get_
uff_ angle_ bend_ params - get_
uff_ bond_ stretch_ params - get_
uff_ inversion_ params - get_
uff_ torsion_ params - get_
uff_ vdw_ params - has_
substruct_ match - Check if a molecule contains a substructure match for the given query.
- inchi_
to_ inchi_ key - Generates an InChIKey directly from an InChI byte string.
- layered_
fingerprint - layered_
fingerprint_ with_ output - Compute a source-backed Layered fingerprint and optional atom counts.
- maccs_
fingerprint - maccs_
get_ fingerprint_ as_ bit_ vect - mmff_
has_ all_ molecule_ params - mmff_
optimize_ molecule - mmff_
optimize_ molecule_ confs - mmff_
sanitize_ ops - mol_
fragment_ to_ cx_ smarts - mol_
fragment_ to_ smarts - mol_
from_ binary - Deserialize a
Moleculefrom binary data produced bymol_to_binary. - mol_
from_ inchi - Parses an InChI into a COSMolKit molecule through the source-backed bridge.
- mol_
from_ mol2_ block_ like_ rdkit - mol_
from_ mol2_ data_ stream_ like_ rdkit - mol_
from_ mol2_ file_ like_ rdkit - mol_
from_ smarts - mol_
to_ binary - Serialize a
Moleculeto a compact binary format. - mol_
to_ cx_ smarts - mol_
to_ inchi - Generates an InChI from a COSMolKit molecule without mutating it.
- mol_
to_ inchi_ key - Generates an InChIKey from a COSMolKit molecule without mutating it.
- mol_
to_ random_ smiles_ vect - mol_
to_ smarts - molecule_
from_ mmcif_ block_ with_ options Deprecated - molecule_
from_ pdb_ block_ with_ options Deprecated - morgan_
get_ fingerprint - morgan_
get_ fingerprint_ as_ bit_ vect - morgan_
get_ hashed_ fingerprint - normalize_
angle_ deg - pattern_
fingerprint - Computes an explicit Pattern fingerprint without mutating
molecule. - perceive_
stereochemistry - RDKit❗✔️: assignStereochemistry — main stereochemistry perception entry point
- rdkit_
atomic_ number_ from_ symbol - rdkit_
element_ symbol - rdkit_
valence_ list - read_
mmcif_ atom_ site_ subset_ from_ str Deprecated - Reads the Gemmi-aligned mmCIF structural reader surface into a
BioStructure. - read_
mol2_ file - read_
mol2_ file_ with_ params - read_
mol2_ from_ str - read_
mol2_ from_ str_ with_ params - read_
xyz_ from_ str - residue_
code_ from_ name - sanitize_
mmff_ mol - score_
tautomer - Compute the source tautomer score using the pinned default SMARTS terms.
- score_
tautomer_ hetero_ hydrogens - Penalize hydrogens attached to phosphorus, sulfur, selenium, and tellurium.
- score_
tautomer_ rings - Score aromatic rings using RDKit’s tautomer-canonicalization weights.
- score_
tautomer_ substructures - Score every match of the supplied source-ordered tautomer SMARTS terms.
- score_
tautomer_ with_ terms - Compute all source tautomer score components and their signed aggregate.
- set_
aromaticity - stereoisomer_
count - Return RDKit Python’s upper-bound stereoisomer count for
molecule. - substruct_
match_ params_ to_ json - symmetrize_
sssr - topological_
fingerprint_ with_ output - topological_
torsion_ count_ fingerprint - topological_
torsion_ fingerprint - topological_
torsion_ fingerprint_ with_ output - Generate any source-supported Topological Torsion vector form and the
requested shared provenance without mutating
molecule. - topological_
torsion_ generator - Construct the public Rust Topological Torsion generator over the sole shared fingerprint-generator core.
- topological_
torsion_ legacy_ fingerprint - Call one of the three source-compatible legacy adapters. This function is a naming/typing layer only and does not contain a second chemistry path.
- topological_
torsion_ sparse_ count_ fingerprint - topological_
torsion_ sparse_ fingerprint - try_
get_ substruct_ matches_ with_ params - Get all substructure matches with custom parameters and structured unsupported-feature errors for source-porting callers.
- uff_
has_ all_ molecule_ params - uff_
optimize_ molecule - uff_
optimize_ molecule_ confs - update_
substruct_ match_ params_ from_ json - version
- Returns the crate version at compile time.
Type Aliases§
- Batch
Progress - Descriptor
Result - Extra
Atom Check - Parameters controlling substructure matching behaviour.
- Extra
Bond Check - Extra
Final Check - PdbMolecule
Conversion Error Deprecated - Rdkit
PdbMol Profile Deprecated