Skip to content

EESI/Firm-DTI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FIRM-DTI: Geometry-Aware Drug–Target Interaction Prediction

FIRM-DTI is a lightweight framework for drug–target binding affinity prediction and DTI classification. Unlike conventional concatenation models, FIRM-DTI conditions molecular embeddings on protein embeddings via a FiLM layer and enforces metric structure with a triplet loss. An RBF regression head maps embedding distances to smooth, interpretable affinity values, achieving strong out-of-domain performance on the Therapeutics Data Commons DTI-DG benchmark.


Requirements

  • Python ≥ 3.9
  • PyTorch ≥ 2.0
  • Hugging Face transformers for ESM2
  • RDKit (for molecule preprocessing)

Pretrained encoders used:


Quick Start

# 1. Clone the repository
git clone https://github.com/EESI/Firm-DTI.git
cd Firm-DTI

# 2. (Optional) create a virtual environment and install dependencies
pip install -r requirements.txt

# 3. Download MolE GuacaMol checkpoint
https://codeocean.com/capsule/2105466/tree/v1

# 4. Prepare the patent-year split dataset
mkdir data_patent
cd data_patent
python ../prepare_dataset.py
cd ..

# 5. Train FIRM-DTI
python -u trainer.py \
  --input "./data_patent" \
  --output "./output/model_1" \
  --batch_size 16 \
  --batch_hard False
@article{refahi2025learning,
  title={Learning to Align Molecules and Proteins: A Geometry-Aware Approach to Binding Affinity},
  author={Refahi, Mohammadsaleh and Sokhansanj, Bahrad A and Brown, James R and Rosen, Gail},
  journal={arXiv preprint arXiv:2509.20693},
  year={2025}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages