Reference
This page includes the reference documentation for all user-facing code from the Smartclass Python package.
Functions
|
Perform substructure search for chemical classes using Breadth-First Search (BFS) and yield results. |
|
Calculate MCS. |
|
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. |
|
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 a structure MOL to 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 structure SMILES to MOL. |
|
Downloads a file from the specified URL if it does not exist. |
|
Enumerate structures. |
|
Export dict to json. |
|
Export a list of dictionaries to a CSV file. |
|
Fix InChI tautomerization. |
|
Build a dictionary of class_id to class_structure from the provided classes list. |
|
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 package chemical classes hierarchy. |
Load chemical classes data from the package file into a Polars DataFrame. |
|
Load the package data. |
|
|
Load data from a package 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 SMILES. |
|
Load tsv from path. |
|
|
|
Sample from a list of things. |
|
Search for a single class and return the results as a list of dictionaries. |
|
Substructure search for chemical classes. |
|
Split a CSV file into multiple smaller CSV files. |
|
Standardize. |