pytdc
Skill by davila7
Teaches the assistant to use PyTDC, the Therapeutics Data Commons package, to load drug discovery datasets, data splits, benchmark groups and molecular oracles. Aimed at researchers doing therapeutic machine learning and pharmacological prediction.
Install pytdc
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/pytdc ~/.claude/skills/pytdcRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/pytdc ~/.gemini/antigravity-cli/skills/pytdcAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
PyTDC is a Python package for the Therapeutics Data Commons platform, which provides AI-ready datasets and benchmarks for drug discovery and development. The source groups its datasets into single-instance prediction (molecular and protein properties), multi-instance prediction (drug-target and drug-drug interactions), and generation (molecule generation and retrosynthesis). Each task comes with standardized evaluation metrics and data splits.
The skill shows the assistant how to load a dataset with a task class such as ADME, Tox, DTI or MolGen, then call get_split with methods such as scaffold, random or cold splits. It also covers the ADMET benchmark group, which includes 22 datasets and a five-seed evaluation protocol, and molecular oracles for scoring generated molecules. It is intended for researchers and engineers working on therapeutic machine learning and pharmacological prediction.
Written from the project's SKILL.md and checked against it.
What it can do
- Single-instance datasetsLoads ADME and toxicity datasets such as Caco2_Wang and hERG, plus HTS and QM data.
- Multi-instance datasetsLoads drug-target (DTI) and drug-drug interaction (DDI) datasets.
- Generation datasetsLoads MolGen, RetroSyn and PairMolGen datasets for generation tasks.
- Data splitsCreates random, scaffold, cold drug, cold target and temporal splits.
- Benchmark groupsRuns the ADMET benchmark group with the five-seed evaluation protocol.
- Evaluation metricsScores predictions with metrics such as ROC-AUC, RMSE, MAE and Spearman.
- Molecular oraclesScores SMILES strings with oracle functions such as GSK3B and DRD2.
- Molecule conversionConverts molecules between formats such as SMILES, SELFIES and PyG.
- Dataset lookupLists available dataset names for a task with retrieve_dataset_names.
- Database queriesConverts PubChem CIDs to SMILES and UniProt IDs to amino acid sequences.
What you need
- Python with pip or uv to install PyTDC
- Core packages numpy, pandas, tqdm, seaborn, scikit_learn and fuzzywuzzy, installed automatically
Try asking
- Load the Caco2_Wang ADME dataset with a scaffold split.
- Set up the ADMET benchmark group and evaluate my predictions with five seeds.
- Score these SMILES strings with the GSK3B oracle.
Good to know
- Model training is left to the user. PyTDC provides data, splits and evaluation.
- The ADMET benchmark group expects evaluation across five seeds.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/scientific/pytdc/SKILL.md, cli-tool/components/skills/scientific/pytdc/scripts/benchmark_evaluation.py, cli-tool/components/skills/scientific/pytdc/scripts/load_and_split_data.py, cli-tool/components/skills/scientific/pytdc/scripts/molecular_generation.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/datasets.md9 KB -
references/oracles.md10 KB -
references/utilities.md16 KB -
scripts/benchmark_evaluation.py9 KB
Show all 7 files
-
scripts/load_and_split_data.py6 KB -
scripts/molecular_generation.py11 KB
Alternatives to pytdc
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
pytdc: common questions
What kinds of datasets does PyTDC cover?
The source lists ADME, toxicity, HTS, QM, drug-target and drug-drug interaction, and generation datasets. They are grouped into single-instance, multi-instance and generation tasks.
Does PyTDC train models for me?
No. The source says the user implements model training, while PyTDC supplies the datasets, splits and evaluation metrics.
Which split methods are available?
The source lists random, scaffold, cold_drug, cold_target, cold_drug_target and temporal splits.
How do I install pytdc?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pytdc free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is pytdc safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pytdc?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
