Skip to main content

Chemical Dice Integrator (CDI)

CDI (Chemical Dice Integrator) is a high-performance deep learning framework designed to unify heterogeneous chemical representations into a single, high information rich latent space. By fusing six complementary molecular embeddings, CDI produces a consolidated vector optimized for large-scale cheminformatics, bioinformatics, and AI-driven molecular discovery tasks.

Overview

CDI extends the Chemical Dice Integrator featurization ecosystem by performing unsupervised integration of six distinct molecular embeddings:

  • Quantum Descriptors
  • Bioactivity Signatures
  • Language Model Embeddings
  • Graph-Derived Representations
  • Physicochemical Profiles
  • 2D Molecular Image Features

Each compound’s six feature types are combined to create a single latent embedding that captures chemical, structural, and biological semantics. These embeddings can be directly used for tasks such as QSAR modeling, virtual screening, drug-target interaction prediction, and bioactivity clustering.

Installation

1. Prerequisites & System Requirements

2. Install Python Dependencies

Open terminal or jupyter notebook run the following command to install all required python packages.

pip install numpy pandas rdkit tqdm requests

3. Install the ChemicalDice Python Package

pip install ChemicalDice

Usage

Feature Extraction from a CSV File

The primary function, smiles_to_embeddings, processes a CSV file containing SMILES strings, validates and canonicalizes them, and streams the data to the ChemicalDice API to generate molecular embeddings.

Step 1: Prepare Your Input CSV

Your input file must meet the following requirements:

  • Column Name: The file must contain a column named exactly SMILES.
  • File Size: The input file size must not exceed 20 MB.

Example smiles.csv:

SMILES,Compound_ID
CCO,Ethanol
Cc1ccccc1,Toluene
C1CCCCC1,Cyclohexane

Step 2: Run the Feature Extraction

from ChemicalDice import smiles_to_embeddings

# Generate embeddings from CSV 
CDI_embeddings = smiles_to_embeddings.collect_features_from_csv(
    filepath="smiles.csv",
    convert_to_canonical=True
)

# CDI_embeddings is a pandas.DataFrame;
# Save to CSV
CDI_embeddings.to_csv("CDI_embeddings.csv", index=False)

Function Details: smiles_to_embeddings.collect_features_from_csv

  • Purpose: Processes a CSV file to generate molecular feature embeddings.
  • Input: Path to a CSV file with a SMILES column.
  • Process:
    1. Validation: Uses RDKit to validate each SMILES string. Invalid entries are flagged and skipped.
    2. Canonicalization(Optional): The original SMILES column in your input CSV is converted to canonical SMILES. In case you do not want canonicalization you can set convert_to_canonical argument to False.
    3. Feature Extraction: The CSV is streamed to the ChemicalDice API, which returns a data frame of molecular features.
  • Output: A dataframe where the first column contains the input SMILES, other columns correspond to the extracted features, and rows correspond to successfully processed molecules.
    This standardized output can be used directly for downstream tasks such as QSAR modeling, clustering, virtual screening, or integration into machine learning pipelines.

Troubleshooting & Notes

  • Backup Your Data: The input CSV file is modified in-place. Always work on a copy of your original data to prevent data loss.
  • Invalid SMILES: Molecules with invalid SMILES will be skipped during processing and will not appear in the output feature dataframe. Check the function's messages or your overwritten CSV for details on which entries were invalid in column is_valid.
  • Network Connection: A stable internet connection is required to communicate with the ChemicalDice API.

For technical issues, please ensure all prerequisites are met and your configuration is correct. For API-related problems, contact the ChemicalDice service administrators.


CDI Bot

Chemical Dice Integrator — Conversational Molecular Embedding Platform

CDI Bot is a fully containerised, LLM-powered web application that gives researchers and chemists a natural-language interface to the Chemical Dice Integrator (CDI).


For all other detailed information, please visit our complete documentation.

Metadata

Release files for ChemicalDice 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ChemicalDice 1.0.6
File Size Uploaded Provenance Actions
chemicaldice-1.0.6.tar.gz 225.9 kB Without provenance Details for chemicaldice-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ChemicalDice 1.0.6
File Interpreter ABI Platform Actions
chemicaldice-1.0.6-py3-none-any.whl Python 3 none any Details for chemicaldice-1.0.6-py3-none-any.whl

Total release size: 493.0 kB

Release files / chemicaldice-1.0.6.tar.gz

Download URL chemicaldice-1.0.6.tar.gz
Size 225.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4b6af7ade40a1db54b75e66cc6fdb35c49b3efee749ac479f325bef037d9fd1a
BLAKE2b-256 checksum
How to use checksums
2b37cc10daa42e197694b671249e67c8fb2f0a5e757532fe6e4d260ddda60594
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Release files / chemicaldice-1.0.6-py3-none-any.whl

Download URL chemicaldice-1.0.6-py3-none-any.whl
Size 267.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
517fcfcf53208d9a50eab658c77dcf19221561f2f2388b8899be1792363dac24
BLAKE2b-256 checksum
How to use checksums
4464c771592426c34d0dde686bc7010b47c390a8046f06930d93c45c840df32e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.20

Security for ChemicalDice 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page