Skip to main content

Welcome file Welcome file

aircheck_model

aircheck_model is a Python package for training and screening machine learning models on chemical compound datasets.
It provides a Python API (simple train and screen functions) and a Command-Line Interface (CLI) for easy integration in pipelines or local workflows.

The package is designed to work with molecular fingerprints (e.g., ECFP) and chemical structure data in formats such as CSV or Parquet.


✨ Features

  • Train ML models with training and optional test datasets
  • Save trained models to a specified directory
  • Evaluate models on test datasets
  • Screen new compounds using trained models
  • Simple CLI powered by Typer

📦 Installation

Install from PyPI (once published):

pip install aircheck-test-model

Or install locally for development:

git clone <your-repo-url> cd aircheck_model pip install -e '.[dev]'

🐍 Python API Usage

After installation, you can import the top-level functions train and screen:

--- Train models ---

from aircheck_model import train, screen

train_result, test_result = train(
    train_file="location of parquet file",
    train_column="ECFP6",
    label="LABEL",
    model_dir="aircheck_model/new_model",
    # test_file is optional (default=None)
)

Accepts training and test datasets in Parquet format. Please provide the file path. Datasets can be downloaded from our website AIRCHECK

print(result_df.head())

The train function returns two outputs: train_result and test_result.

  • train_result: a DataFrame object containing model metrics and fold information.
  • test_result: a DataFrame object if a test_file is provided; otherwise, an empty dataframe .

--- Screen compounds ---

result_df = screen(
    screen_file="data/ScreenData1.csv",
    smile_column="SMILES",
    fingerprint_type="ECFP6",
    model_directory="aircheck_model/new_model"
)

💻 CLI Usage

The package also provides a command-line tool:

aircheck_model --help

🔹 Check Version

aircheck_model version


🔹 Train Models

aircheck_model train \ --train-data data/WDR91.parquet \ --column ECFP6 \ --label LABEL \ --model-dir aircheck_model/new_model \ --test-data data/sampled_data_test_1.parquet

Arguments:

  • --train-data, -t (required): Path to training data (CSV/Parquet)

  • --test-data, -e: Optional path to test data

  • --column, -c (required): Feature column (e.g., fingerprint type such as ECFP4, ECFP6)

  • --label, -l (required): Label column name

  • --model-dir, -m: Directory to save trained models (default: ~/model)


🔹 Screen Compounds

aircheck_model screen \ --screen-data data/ScreenData1.csv \ --column SMILES \ --fingerprints-column ECFP6 \ --model-dir aircheck_model/new_model

Arguments:

  • --screen-data, -s (required): Path to compound data file

  • --column, -c (required): Column containing SMILES strings

  • --fingerprints-column, -l (required): Fingerprint column name

  • --model-dir, -m: Directory where trained models are stored


🛠 Development

Run tests and linting locally:

pytest ruff check . aircheck_model aircheck_model is a Python package for training and screening machine learning models on chemical compound datasets. It provides a Python API (simple train and screen functions) and a Command-Line Interface (CLI) for easy integration in pipelines or local workflows.

The package is designed to work with molecular fingerprints (e.g., ECFP) and chemical structure data in formats such as CSV or Parquet.

✨ Features Train ML models with training and optional test datasets Save trained models to a specified directory Evaluate models on test datasets Screen new compounds using trained models Simple CLI powered by Typer 📦 Installation Install from PyPI (once published):

pip install aircheck-model Or install locally for development:

git clone cd aircheck_model pip install -e '.[dev]'

🐍 Python API Usage After installation, you can import the top-level functions train and screen:

from pathlib import Path from aircheck_model import train, screen

— Train models — train_file="location of parquet file", train_column="ECFP6", label="LABEL", model_dir="aircheck_model/new_model", # test_file is optional (default=None) ) Accepts training and test datasets in Parquet format. Please provide the file path. Datasets can be downloaded from our website AIRCHECK

— Screen compounds — result_df = screen( screen_file=“data/ScreenData1.csv”, smile_column=“SMILES”, fingerprint_type=“ECFP6”, model_directory=“aircheck_model/new_model” )

print(result_df.head())

💻 CLI Usage The package also provides a command-line tool:

aircheck_model --help

🔹 Check Version aircheck_model version

🔹 Train Models aircheck_model train \ --train-data data/WDR91.parquet \ --column ECFP6 \ --label LABEL \ --model-dir aircheck_model/new_model \ --test-data data/sampled_data_test_1.parquet

Arguments:

--train-data, -t (required): Path to training data (CSV/Parquet)

--test-data, -e: Optional path to test data

--column, -c (required): Feature column (e.g., fingerprint type such as ECFP4, ECFP6)

--label, -l (required): Label column name

--model-dir, -m: Directory to save trained models (default: ~/model)

🔹 Screen Compounds aircheck_model screen \ --screen-data data/ScreenData1.csv \ --column SMILES \ --fingerprints-column ECFP6 \ --model-dir aircheck_model/new_model

Arguments:

--screen-data, -s (required): Path to compound data file

--column, -c (required): Column containing SMILES strings

--fingerprints-column, -l (required): Fingerprint column name

--model-dir, -m: Directory where trained models are stored

🛠 Development Run tests and linting locally:

pytest ruff check .

Markdown 3105 bytes 370 words 122 lines Ln 47, Col 3HTML 2259 characters 333 words 58 paragraphs

Metadata

Release files for aircheck-test-model 1.1.3

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

Source distribution (sdist)

Source distribution for aircheck-test-model 1.1.3
File Size Uploaded Provenance Actions
aircheck_test_model-1.1.3.tar.gz 331.4 kB With provenance Details for aircheck_test_model-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aircheck-test-model 1.1.3
File Interpreter ABI Platform Actions
aircheck_test_model-1.1.3-py3-none-any.whl Python 3 none any Details for aircheck_test_model-1.1.3-py3-none-any.whl

Total release size: 665.1 kB

Release files / aircheck_test_model-1.1.3.tar.gz

Download URL aircheck_test_model-1.1.3.tar.gz
Size 331.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e824996232e493f62805aa1044293e61b6adf1c000b26a4315aa659b8101e4f7
BLAKE2b-256 checksum
How to use checksums
a2431e9ce3bda3578f27c0f3b0db381373385e7bbb6fe699873b4af2bcf9a540
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2025.

Transparency log

Release files / aircheck_test_model-1.1.3-py3-none-any.whl

Download URL aircheck_test_model-1.1.3-py3-none-any.whl
Size 333.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f43d65fb703eb7bfaa58b363197df2d24658dfe4eda93fdab688a6ae37abd7b
BLAKE2b-256 checksum
How to use checksums
54833671ea2d387ff10233a3b8b3af6929ec100e38d11cb015b654bccaff3cf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2025.

Transparency log

Security for aircheck-test-model 1.1.3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aircheck_test_model-1.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2025.

Transparency log

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