torchdrug
Skill by davila7
TorchDrug is a PyTorch toolbox for drug discovery skills covering molecular property prediction, protein modeling, knowledge graph reasoning, molecular generation and retrosynthesis. It is aimed at machine learning users working on molecules, proteins and biomedical graphs.
Install torchdrug
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/torchdrug ~/.claude/skills/torchdrugRun 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/torchdrug ~/.gemini/antigravity-cli/skills/torchdrugAntigravity 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
TorchDrug is a PyTorch-based machine learning toolbox for drug discovery and molecular science. This skill guides an assistant through graph neural networks, pre-trained models and task definitions applied to molecules, proteins and biological knowledge graphs. It covers molecular property prediction including ADMET, protein modeling, knowledge graph reasoning, molecular generation and retrosynthesis planning.
The skill points to reference files for datasets, model selection, training workflows and core concepts. It lists 40+ curated datasets and 20+ model architectures, including GIN, GAT, SchNet, GearNet and RotatE. It also shows integration with RDKit, AlphaFold, ESM and PyTorch Lightning. It is aimed at machine learning practitioners working on drug discovery and biomedical graph data.
Written from the project's SKILL.md and checked against it.
What it can do
- Molecular property predictionPredicts chemical, physical and biological properties of molecules, including ADMET, from structure.
- Protein modelingWorks with protein sequences and 3D structures for function, stability and interaction tasks.
- Knowledge graph reasoningPredicts missing links in biomedical knowledge graphs such as Hetionet.
- Molecular generationGenerates novel molecular structures, including GCPN and autoregressive approaches.
- RetrosynthesisPredicts synthetic routes from target molecules, using the USPTO-50k reaction dataset.
- GNN model catalogLists graph neural network architectures such as GIN, GAT, SchNet and GearNet.
- Dataset accessLoads 40+ curated datasets across chemistry, biology and knowledge graphs.
What you need
- Python
- PyTorch
- uv package installer (used in the install command)
Try asking
- Train a GIN model to predict blood-brain barrier penetration with BBBP
- Plan a retrosynthesis route for this molecule using USPTO-50k
- Find Compound-treats-Disease candidates in Hetionet with RotatE
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: cli-tool/components/skills/scientific/torchdrug/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB -
references/core_concepts.md14 KB -
references/datasets.md11 KB -
references/knowledge_graphs.md8 KB -
references/models_architectures.md13 KB
Show all 9 files
-
references/molecular_generation.md10 KB -
references/molecular_property_prediction.md6 KB -
references/protein_modeling.md8 KB -
references/retrosynthesis.md11 KB
Alternatives to torchdrug
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
torchdrug: common questions
Which datasets does TorchDrug support?
The skill describes 40+ curated datasets spanning molecular properties, proteins, knowledge graphs and retrosynthesis. Examples named in the source include BBBP, HIV, Tox21, QM9, Hetionet and USPTO-50k.
Does TorchDrug work with RDKit?
The source says TorchDrug is often used with RDKit for cheminformatics. It shows how to convert molecules between TorchDrug and RDKit formats.
Can TorchDrug models be trained with PyTorch Lightning?
The source says TorchDrug is compatible with PyTorch Lightning and includes an example that wraps a TorchDrug task in a LightningModule.
How do I install torchdrug?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is torchdrug free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is torchdrug 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 torchdrug?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
