This repository is organized as follows:
pubchem-etl– download, annotate, and preprocess PubChem BioAssay tables.pubchem-etl clean-and-score– canonicalize SMILES, deduplicate, compute r-scores, and split assays into biochemical / cellular sets.- For datasets other than PubChem BioAssay:
python standalone_cleaner.py clean(replacement for thepubchem-etlpath; produces the samedata/interim/*.parquetinputs expected by downstream tools).
- For datasets other than PubChem BioAssay:
dataset-pipeline– scaffold-aware dataset builder that turns cleaned hits into train/val/test artifacts.model-jobs/model-jobs-prep– dataset prep and job-script generation helpers.chemprop– model training CLI, installed from the local clone under./chemprop/(with a small patch for new PyTorch defaults).
docs/cli.md– end-to-end CLI tutorial + repo-wide CLI reference (excluding Chemprop).pubchem-etl/README.md– detailed PubChem ETL pipeline docs (subcommand-level).methods_scaffold_split.md– scaffold split method details used bydataset-pipeline.
To create a shared conda environment named frequent-hitters that can run all of the core components in this repo, run:
conda env create -f environment.frequent-hitters.yml
conda activate frequent-hittersInstall PyTorch via pip (CUDA/CPU/OSX). Use the official PyTorch selector and run the generated command:
https://pytorch.org/get-started/locally/
Install Chemprop from the local clone in this repo:
python -m pip install ./chempropInstall local packages without pulling in extra deps:
python -m pip install --no-deps ./dataset-pipeline
python -m pip install --no-deps ./model-jobs
python -m pip install --no-deps ./pubchem-etlThis repo installs Chemprop from the local clone under ./chemprop/ (instead of pip install chemprop) because we need a couple of small behavior changes:
- Checkpoint loading with newer PyTorch/Lightning: newer defaults around
weights_onlycan break Chemprop’s use ofload_from_checkpoint/Trainer.predict. The local patch forcesweights_only=Falsein the relevant call sites so Chemprop keeps working without pinning PyTorch to an older version. - Multi-label test evaluation edge case: for multi-label problems it’s possible for a target to have no labels in the test split, which makes Chemprop’s test metric evaluation error. The patch adds
chemprop train --skip-test-evaluationto still writetest_predictions.csv(without filtering targets) while skipping metric computation.