COSMolKit PythonΒΆ
COSMolKit is a Python package for molecule graph workflows, SMILES/SDF/MOL2/XYZ IO, coordinate access, native 3D conformer generation, UFF/MMFF optimization, stable atom chiral-tag assignment from selected 3D conformers, Morgan fingerprints, molecular descriptors, molecule depiction, Python pickle round-tripping, SMARTS parse metadata, protein structure access, and high-throughput batch processing.
Important API model: COSMolKit presents value-style Molecule objects.
Transform methods return new Molecule objects and do not mutate the
original object in place. Internally the library uses copy-on-write (COW)
storage to share unchanged data efficiently. This differs from common RDKit
Python workflows where code often updates an existing molecule or RWMol
directly.
User Guide
- Installation
- Quick Start
- ConfSeq
- Molecule Values
- Batch Workflows
- Fingerprints
- Molecular Descriptors
- Protein Structures
- File IO and Arrays
- API Reference
AtomBatchErrorBatchErrorModeBatchExportReportBatchValidationErrorBondBondDirectionBondOrderBondStereoChiralTagInchiAllocationErrorInchiDiagnosticWarningInchiErrorInchiToInchiKey()InchiUnsupportedStateErrorMoleculeMoleculeBatchMoleculeEditResidueCodeResidueInfoResidueInfoKindSdfDatasetSdfReaderSdfRecordSdfRecordMetadatacalc_crippen_descriptors()calc_exact_mol_wt()calc_fraction_csp3()calc_mol_formula()calc_mol_wt()calc_num_aromatic_rings()calc_num_hba()calc_num_hbd()calc_num_rotatable_bonds()calc_qed()calc_tpsa()expand_one_letter()expand_one_letter_sequence()expand_protein_one_letter()expand_protein_one_letter_string()find_tabulated_residue()find_tabulated_residue_idx()get_residue_info()get_substruct_match()get_substruct_matches()get_substruct_matches_with_params()has_substruct_match()mmff_has_all_molecule_params()mmff_optimize_molecule()mmff_optimize_molecule_confs()mol_from_binary()mol_to_binary()parse_smarts()residue_code_from_name()uff_has_all_molecule_params()uff_optimize_molecule()uff_optimize_molecule_confs()- InChI API
- Protein API