torchdrug
Skill6 starsChanged 9 months agoMITView on GitHub
Use when working with TorchDrug for graph-based drug discovery and molecular ML. Covers molecular property prediction, protein modeling, knowledge graph reasoning, molecular generation, retrosynthesis, and GNN architectures on chemical data.
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- BrightGold70/skillstheir own version, first seen Sep 29, 2026
- jaechang-hits/SciAgent-Skillstheir own version, first seen Jul 24, 2026
- LeonChaoX/qinyan-academic-skillstheir own version, first seen Mar 13, 2026
- qinyan-ai/qinyan-academic-skillstheir own version, first seen Mar 13, 2026
- yf8578/claude-skills-collectiontheir own version, first seen Mar 1, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- LeonChaoX/qinyan-academic-skills★ 932same name
- jaechang-hits/SciAgent-Skills★ 369same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- BrightGold70/skills★ 1same name
- yf8578/claude-skills-collection★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- config/CLAUDE.mdCLAUDE.md
- active-learningSkill
- aseSkill
- binding-kineticsSkill
- chem-brainstormSkill
- coarse-grainedSkill
- daylight-theorySkill
- deepchemSkill
- dockingSkill
- fbddSkill
- force-fieldsSkill
- free-energySkill
- generative-designSkill
- homology-modelingSkill
- lit-rescueSkill
- mdanalysisSkill
- mmpaSkill
- nextflowSkill
- openbabelSkill
- organic-mechanismsSkill
- pepflexSkill
- pharmacophoreSkill
- py3DmolSkill
- qm-dftSkill
- rdkitSkill
- synkitSkill
- uncertainty-qsarSkill
The file
Files
TorchDrug
PyTorch toolkit for drug discovery — graph neural networks on molecules, proteins, and biomedical knowledge graphs. 40+ datasets, 20+ model architectures, modular task/model interface.
When to Use This Skill
- Predicting molecular properties (solubility, toxicity, BBB penetration, quantum chemistry)
- Protein function/stability/localization/interaction prediction
- Drug-target binding affinity (PDBBind, BindingDB)
- Knowledge graph completion and drug repurposing (Hetionet)
- De novo molecular generation and property optimization (GCPN, flows)
- Retrosynthesis planning (USPTO-50k, CenterIdentification + SynthonCompletion)
- Training GNNs (GCN, GAT, GIN, SchNet, GearNet, RGCN) on chemical data
- Transfer learning with pre-trained protein models (ESM, ProteinBERT)
Quick Start
from torchdrug import datasets, models, tasks
import torch
from torch.utils.data import DataLoader
# 1. Dataset
dataset = datasets.BBBP("~/datasets/")
train_set, valid_set, test_set = dataset.split()
# 2. Model
model = models.GIN(
input_dim=dataset.node_feature_dim,
hidden_dims=[256, 256, 256],
edge_input_dim=dataset.edge_feature_dim,
batch_norm=True, readout="mean"
)
# 3. Task
task = tasks.PropertyPrediction(
model, task=dataset.tasks,
criterion="bce", metric=["auroc", "auprc"]
)
# 4. Train
optimizer = torch.optim.Adam(task.parameters(), lr=1e-3)
for epoch in range(100):
for batch in DataLoader(train_set, batch_size=32, shuffle=True):
loss = task(batch)
optimizer.zero_grad(); loss.backward(); optimizer.step()Router — What to Read
| Task | Reference |
| Data structures (Graph, Molecule, Protein), training loop, task/model interface | references/core-data.md |
| Molecular property prediction: datasets, tasks, model selection, training | references/molecular-property.md |
| Protein modeling: sequence & structure models, datasets, pre-training | references/protein-modeling.md |
| Knowledge graph completion, drug repurposing, Hetionet | references/knowledge-graphs.md |
| Molecular generation: GCPN, flows, property optimization | references/molecular-generation.md |
| Retrosynthesis: CenterIdentification, SynthonCompletion, USPTO-50k | references/retrosynthesis.md |
| Full model catalog: GCN, GAT, GIN, SchNet, GearNet, ESM, TransE, RotatE… | references/models-reference.md |
Key Submodules
| Module | Role |
torchdrug.data | Graph, Molecule, Protein, PackedGraph |
torchdrug.datasets | 40+ curated datasets |
torchdrug.models | GNN, protein, KG embedding, generative models |
torchdrug.tasks | PropertyPrediction, KGCompletion, Generation, Retrosynthesis |
torchdrug.transforms | VirtualNode, VirtualEdge, TruncateProtein |
torchdrug.layers | MessagePassingBase and building blocks |
torchdrug.core | Configurable, Registry (serialization) |
Installation
pip install torchdrug # CPU / CUDA (uses system torch)
pip install torchdrug[full] # with optional extrasimport torchdrug; print(torchdrug.__version__) # verifyRelated Skills
rdkit— molecular I/O, fingerprints, conformers before TorchDrug ingestiondeepchem— alternative ML framework for drug discovery (TensorFlow/PyTorch)scientific-skills:esm— ESM protein language models (direct HuggingFace usage)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

