Reference
This page includes the reference documentation for all user-facing code from the Smartclass Python package.
Functions
|
Perform substructure search using Breadth-First Search traversal. |
|
Calculate Maximum Common Substructure (MCS) for a list of molecules. |
|
Check stereochemistry. |
|
Checks if SMILES contains no dot. |
|
Checks if SMILES contains no isotope. |
|
Check isomeric smiles. |
|
Combine multiple CSV files into a single CSV file. |
|
Configure logging for the smartclass package. |
|
Convert chemical formula. |
|
Converts the classyfire json into a CHEMONTID dictionary. |
|
Convert a structure InChI to InChIKey. |
|
Convert a structure InChI to mass. |
|
Convert a structure InChI to MOL. |
|
Convert a structure InChI to SMILES. |
|
Convert a list of dictionaries to a dictionary with possible inversion. |
Convert a structure MOL to CXSMILES. |
|
|
Convert a structure MOL to InChI. |
Convert an RDKit Mol object to an InChIKey. |
|
Convert a structure MOL to SMARTS. |
|
Convert a structure MOL to SMILES. |
|
|
Convert a structure MOLBlock to MOL. |
|
Convert a structure SMARTS to MOL. |
Convert a structure SMILES to canonical SMILES. |
|
|
Convert a structure SMILES to a molecular formula. |
|
Convert a structure SMILES to InChI. |
|
Convert a structure SMILES to an exact mass. |
|
Convert a SMILES string to an RDKit Mol object. |
|
Downloads a file from the specified URL if it does not exist. |
|
Enumerate structural variants of a molecule. |
|
Export dict to json. |
|
Export a list of dictionaries to a CSV or TSV file. |
|
Fix InChI tautomerization. |
|
Build a mapping from class IDs to their SMARTS structures. |
Get the global configuration instance. |
|
|
Get a logger for the given module name. |
|
Get number of atoms and bonds. |
|
Get number of matched atoms and bonds. |
|
Send a GET request to a SPARQL endpoint and retrieve JSON data. |
|
Load csv from path. |
|
Load a Polars DataFrame from an external tsv file with chemical classes. |
|
Load json from path. |
|
Load JSON from URL. |
|
Load json from URL or path. |
Load bitter SMILES data from the package file into a Polars DataFrame. |
|
|
Load chemical class hierarchy from a TSV file. |
Load chemical classes data from the package file into a Polars DataFrame. |
|
Load the package data. |
|
|
Load data from a package-bundled file into a Polars DataFrame. |
Load chemont__wd mappings data from the package file into a Polars DataFrame. |
|
Load Mono Indole Alkaloids (MIA) data from the package file into a Polars DataFrame. |
|
|
Load unique SMILES strings from a CSV or TSV file. |
|
Load tsv from path. |
|
Read a SPARQL query from a file path or URL. |
|
Randomly sample items from a list. |
|
Search for a single class and return results as dictionaries. |
|
Perform substructure search to classify chemical structures. |
|
Split a CSV file into multiple smaller CSV files. |
|
Standardize. |
Classes
|
Base exception for all smartclass errors. |