Skip to content

inoue0426/DrugAgent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrugAgent

Multi-agent workflow for drug-target interaction (DTI) evidence. It combines ML scores (DeepPurpose), KG signals, and PubMed RAG evidence, then produces a reasoning tree and final label.

arXiv CI License: MIT Python Code Style: Black Import Sorting: isort uv

Requirements

  • Python 3.11+
  • uv

Setup (Repo Root)

curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv
uv sync
source .venv/bin/activate

Environment Variables

Create a .env file (see .env.example) or export these variables:

AZURE_OPENAI_API_LLM_KEY=...
AZURE_OPENAI_ENDPOINT=...
AZURE_OPENAI_DEPLOYMENT_NAME=...
AZURE_OPENAI_API_VERSION=...
AZURE_OPENAI_EMBEDDING_DEPLOYMENT_NAME=...
AZURE_OPENAI_EMBEDDING_API_VERSION=...
CLAUDE_ENDPOINT=...
CLAUDE_DEPLOYMENT=...

Embedding variables are required for PubMed RAG.

Run

Full DrugAgent run:

uv run python -m drugagent.cli --drug Imatinib --gene KIT --enabled_agents ML,KG,RAG

Plausibility/Faithfulness evaluation from a summary CSV:

uv run python src/faithfulness_plausibility_eval.py \
  --summary-csv output/summary_v0_ml_kg_rag_nomodel_none.csv \
  --output output/plausibility_faithfulness_from_summary.jsonl

The script reads the input_payload column (JSON or a path to output/input_payloads/*.json).

Plausibility/Faithfulness evaluation from JSONL:

uv run python src/faithfulness_plausibility_eval.py \
  --input data/plausibility_faithfulness_demo.jsonl \
  --output data/plausibility_faithfulness_results.jsonl

Uses AZURE_OPENAI_API_LLM_KEY and CLAUDE_ENDPOINT from .env (see src/drugagent/kinase/config_utils.py).

Outputs

  • output/trees/{config_id}/{drug}_{gene}.json reasoning trees
  • output/summary_{ablation}.csv (CLI)
  • output/summary.csv (legacy summary output)
  • output/input_payloads/{drug}__{target}.json (payload snapshots for evaluation)
  • output/plausibility_faithfulness_from_summary.jsonl
  • output/ml_dti_scores
  • output/ml_lookup_cache
  • output/rag_dti_cache.csv
  • output/graph_dti_cache.csv

Data Assets

  • ML: DeepPurpose model downloads automatically if not present.
  • RAG: place files at data/kinase_rag_index.faiss and data/kinase_rag_metadata.json. If missing, the app tries to download via DRUGAGENT_RAG_GDRIVE_URL into DRUGAGENT_RAG_DOWNLOAD_DIR.
  • KG: provide a local KG CSV and set DRUGAGENT_KG_PATH or place it at data/KG+BDB.csv.gz.

Citation

@article{inoue2025drugagent,
  title={Drugagent: Multi-agent large language model-based reasoning for drug-target interaction prediction},
  author={Inoue, Yoshitaka and Song, Tianci and Wang, Xinling and Luna, Augustin and Fu, Tianfan},
  journal={ArXiv},
  pages={arXiv--2408},
  year={2025}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages