How ku-medai/insitedta works
InSiteDTA predicts protein–ligand binding affinity while detecting binding sites without requiring a supplied complex pocket. The main workflow prepares ligand and protein inputs, then trains the model or runs inference; benchmark reproduction prepares scenario-specific inputs and reports affinity and pocket metrics. The model combines molecular and voxel-based protein representations with cross-attention. The graph preserves the README’s training and benchmark branches; some subsystem links are based on documented workflow or indexed references rather than inspected implementation.
Main entry points: model.py InSiteDTA model · 01-inference.py Single inference · 04-reproduce.py Benchmark reproduction · 03-train.py Model training
Components 21
User workflows
- Single inference
01-inference.py - Dataset preprocessing
02-preprocess.py - Model training
03-train.py - Benchmark reproduction
04-reproduce.py
Input preparation
- Ligand conformers
src/scripts/preprocess/generate_mol_object.py - Ligand features
src/scripts/preprocess/ligand_featurization.py - Protein voxels
src/scripts/preprocess/protein_voxelization.py - ESM embeddings
src/scripts/preprocess/esm_embedding.py - Sample dataset
src/scripts/dataset.py - Batch loading
src/scripts/dataloader.py
Prediction model
- InSiteDTA model
src/scripts/model/model.py - Protein encoder
src/scripts/model/encoder.py - Molecule encoders
src/scripts/model/molecule_encoders.py - Cross attention
src/scripts/model/cross_attention.py - Output decoder
src/scripts/model/decoder.py - Model operations
src/scripts/model/utils.py
Training and assessment
- Test evaluation
src/scripts/evaluation.py - Pocket metrics
src/scripts/pocket_evaluation.py - Training metrics
src/scripts/utils_train.py
Other components
- User
- P2Rank
Connections 30
- User → Single inference: runs
README.md - User → Dataset preprocessing: prepares data
README.md - User → Model training: trains model
README.md - User → Benchmark reproduction: evaluates benchmarks
README.md - Dataset preprocessing → Ligand conformers: generates ligands
02-preprocess.py - Dataset preprocessing → Protein voxels: voxelizes proteins
02-preprocess.py - Single inference → Ligand conformers: builds ligand
01-inference.py - Single inference → Ligand features: featurizes ligand
01-inference.py - Single inference → Protein voxels: voxelizes protein
01-inference.py - Single inference → InSiteDTA model: predicts with
01-inference.py - Single inference → P2Rank: optionally runs
01-inference.py - P2Rank → Protein voxels: provides pocket
- Benchmark reproduction → Ligand conformers: prepares ligands
04-reproduce.py - Benchmark reproduction → Ligand features: featurizes ligands
04-reproduce.py - Benchmark reproduction → Protein voxels: voxelizes proteins
04-reproduce.py - Benchmark reproduction → InSiteDTA model: evaluates with
04-reproduce.py - Benchmark reproduction → Pocket metrics: scores pockets
04-reproduce.py - Model training → Batch loading: loads batches
03-train.py - Batch loading → Sample dataset: batches samples
src/scripts/dataloader.py - Model training → InSiteDTA model: trains
03-train.py - Model training → Test evaluation: tests teacher
03-train.py - Test evaluation → Training metrics: calculates pocket metrics
src/scripts/evaluation.py - InSiteDTA model → Protein encoder: encodes protein
src/scripts/model/model.py - InSiteDTA model → Molecule encoders: encodes ligand
src/scripts/model/model.py - InSiteDTA model → Cross attention: fuses representations
src/scripts/model/model.py - InSiteDTA model → Output decoder: decodes outputs
src/scripts/model/model.py - Protein encoder → Model operations: uses operations
src/scripts/model/encoder.py - Molecule encoders → Model operations: uses operations
src/scripts/model/molecule_encoders.py - Cross attention → Model operations: uses operations
src/scripts/model/cross_attention.py - Output decoder → Model operations: uses operations
src/scripts/model/decoder.py