Skip to content

feat(drug-discovery): Ligand list file for >100 ligands across tools; Admet batch_size - #653

Merged
ASinanSaglam merged 3 commits into
mainfrom
refactor/ligand-list-file
Oct 5, 2026
Merged

ASinanSaglam merged 3 commits into
mainfrom
refactor/ligand-list-file

Conversation

@ASinanSaglam

Copy link
Copy Markdown
Contributor

Summary

  • New src/drug_discovery/ligand_list_file.py: one inline-vs-file path for Admet, Metabolism, Docking, SecondaryPharmacology (>100 ligands → UFA Ligand list file + ligands_file/ligands_count); from_dto rehydrates both.
  • Fix: SecondaryPharmacology ligand-ml with >100 unsynced ligands sent file rows without id, which preflight rejects; now syncs above the cap.
  • Admet(batch_size=...): sets batchSize (ligands per pod, min 50) on file/project runs.
  • Needed now that chore(tools): pin docking 4, mol-props 2, secondary-pharma 3 #652 pins docking 4 / secondary-pharma 3, which reject >100 inline ligands.

Test plan

  • uv run pytest tests --env local -p no:xdist: 1643 passed, 1 failed (test_pairwise_pose_rmsd_lv0, fails on main too)
  • New: test_secondary_pharma_make_inputs_ligand_ml_above_cap_uses_synced_file, test_admet_batch_size_sent_on_workflow_paths_only
  • Dev run: Admet 150 ligands with batch_size=50 → 3 chunk pods

🤖 Generated with Claude Code

…batch_size

Admet, Metabolism, Docking and SecondaryPharmacology now build ligand inputs
through ligand_list_file.py: inline up to INLINE_LIGAND_CAP (100), else
upload a Ligand list file and send ligands_file (+ ligands_count where the
tool takes it). from_dto rehydrates either form. ADMET_/METABOLISM_ caps
merge into INLINE_LIGAND_CAP.

SecondaryPharmacology ligand-ml above the cap now syncs ligands first:
preflight requires id on every file row (validate_secondary_pharma.py).

Admet(batch_size=...) sends batchSize (ligands per workflow pod, min 50)
on file and project runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… example

Docking._build_tool_inputs now uploads a Ligand list file above the inline
cap; SecondaryPharmacology._ligands_from_inputs downloads ligands_file.
The Admet bulk example passes batch_size explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASinanSaglam
ASinanSaglam marked this pull request as ready for review October 5, 2026 19:36
@ASinanSaglam
ASinanSaglam requested a review from a team as a code owner October 5, 2026 19:36
@ASinanSaglam ASinanSaglam changed the title refactor(drug-discovery): share Ligand list file handling; add Admet batch_size feat(drug-discovery): Ligand list file for >100 ligands across tools; Admet batch_size Oct 5, 2026
@ASinanSaglam
ASinanSaglam merged commit 9bc59a0 into main Oct 5, 2026
10 checks passed
@ASinanSaglam
ASinanSaglam deleted the refactor/ligand-list-file branch October 5, 2026 22:39

This branch was successfully deployed

1 active deployment
docs — 3aa95fd3 Deployed Oct 5, 2026 by ASinanSaglam via build-docs #848
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants