Skip to content

feat(admet): expose method parameter for togo/maplight inference - #597

Merged
sg-s merged 3 commits into
mainfrom
feat/admet-method-parameter
Jul 30, 2026
Merged

feat(admet): expose method parameter for togo/maplight inference#597
sg-s merged 3 commits into
mainfrom
feat/admet-method-parameter

Conversation

@sg-s

@sg-s sg-s commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Expose the method input on Admet so SDK callers can choose between Togo (default) and MapLight inference paths, matching the deeporigin.admet-properties tool schema.

Merge-ready status

Auto-updated — cycle 3, last updated: 2026-07-30T00:31:20Z

Check Status
Branch vs main ✅ synced at 772b84d
Head 4491c20
CI ❌ dev + staging lv1 (rerun failed); prod ✅
Copilot ⏳ blocked on CI
Review threads 0 human/Bugbot, 0 Copilot

Recent activity

  • Dev/staging lv1 reruns failed again (same admet platform errors).
  • Prod lv1 + all unit/functionality checks green.
  • Blocked on dev/staging platform — not fixable in this PR.

Test plan

  • uv run pytest tests/test_admet_local.py --env local
  • CI green on PR
  • Copilot review clean

Forward the admet-properties tool's method input from the SDK so callers
can choose Togo embeddings or MapLight fingerprints.
Avoid sending method=togo when it matches the tool default so dev
environments on older admet-properties builds keep working.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Admet execution wrapper to expose an explicit method parameter so SDK callers can select between the platform’s default Togo inference path and the MapLight path, aligning the SDK API with the deeporigin.admet-properties tool schema.

Changes:

  • Add method parameter to Admet (default "togo") and forward it into the tool inputs only when non-default.
  • Add local mock-server tests covering default omission and explicit inclusion of method in _make_inputs().
  • Update ligand documentation to describe method and show a MapLight example.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/drug_discovery/admet.py Adds method parameter + property and conditionally includes it in tool inputs payload.
tests/test_admet_local.py Adds regression tests for default vs explicit method serialization into inputs.
docs/dd/how-to/ligands.md Documents the new method option and provides an additional MapLight usage snippet.

Comment thread docs/dd/how-to/ligands.md
Comment on lines +552 to +556
df = Admet(
ligands=[ligand],
properties=["hERG_classification", "AMES_classification"],
method="maplight",
).run()
@sg-s
sg-s merged commit a869464 into main Jul 30, 2026
10 of 11 checks passed
@sg-s
sg-s deleted the feat/admet-method-parameter branch July 30, 2026 17:51
@sg-s sg-s self-assigned this Jul 30, 2026
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