DragonDescentZerotsu/ApexOracle

Oracle: Omni-modal pRedictive and generative ArchiteCture for antimicrobiaL discovEry against Future Pathogens

9

stars

97

commits

Python

primary language

Aug 28, 2026

updated

README

ApexOracle: pathogen-aware antimicrobial prediction and generation

ApexOracle

Predicting and generating antibiotics against unseen pathogens

Tianang Leng · Fangping Wan · Marcelo D. T. Torres · Cesar de la Fuente-Nunez
University of Pennsylvania University of Pennsylvania
Equal contribution

Paper Latest release DLM model Pretraining data ApexOracle data DOI MIT license

A modular, multimodal platform that combines molecular structure with pathogen genome and phenotype context to predict antimicrobial activity and guide de novo molecule generation.

Overview · Quick start · Modules · Models & data · Citation


What ApexOracle does

🔬 Predict

Estimate MIC, antimicrobial classification, and synergy for candidate molecules.

🧬 Condition on pathogens

Combine Evo-2 genome representations with phenotype-derived text representations.

✨ Generate

Guide discrete diffusion toward de novo, strain-conditioned candidates.

ApexOracle represents molecules with a diffusion language model (DLM), combines them with complementary pathogen representations through cross-attention, and uses task-specific heads for prediction or guidance.

flowchart LR
    M["Molecule structure<br/>DLM"] --> F["Multimodal fusion<br/>cross-attention"]
    G["Pathogen genome<br/>Evo-2"] --> F
    T["Phenotype context<br/>Me-LLaMA"] --> F
    F --> P["MIC · antimicrobial class · synergy"]
    F --> H["Noisy guidance heads"]
    H --> D["de novo candidates<br/>discrete diffusion"]

Quick start

git clone --recurse-submodules https://github.com/DragonDescentZerotsu/ApexOracle.git
cd ApexOracle
python scripts/check_module_locks.py

Already cloned without submodules? Run ./scripts/bootstrap.sh.

GoalEntry point
Extract molecule embeddings with the DLMHugging Face model quickstart
Extract Evo-2 genome embeddingsGenome embedding quickstart
Run the public MIC inference exampleMIC prediction quickstart
Generate a strain-conditioned candidateGuided-generation quickstart
Reproduce or extend the scientific workflowsApexOracle-Core and its experiments/ documentation

[!NOTE] Each scientific module retains its validated environment. ApexOracle intentionally does not force DLM pretraining, Evo-2 extraction, MIC prediction, and guided generation into one Python environment. See the environment guide.

Modular release

ModuleResponsibilityPublic entry point
ApexOracle-CorePrediction, fusion, training/evaluation contracts, and reproducibility workflowsGitHub repository
ApexOracle-DLM-PretrainingCollaborator-developed DLM + 209-descriptor MTR pretraining producerGitHub repository
ApexOracle-MDLMDownstream molecular embedding, guidance heads, and candidate scoringGitHub repository
ApexOracle-Evo2Record-aware genome embedding extractionGitHub repository
ApexOracle-GenerationGuided discrete diffusion, remasking, and paper sampling presetsGitHub repository

The exact gitlink for every module is fixed in manifests/modules.lock.yaml. Scientific implementation commits, release documentation commits, model revisions, and recovery refs are kept distinct in the release provenance.

Models and data

AssetLocationScope
Molecule DLM weightsKiria-Nozan/ApexOracleMolecule embedding extraction
DLM pretraining dataKiria-Nozan/ApexOracle datasetTokenized molecular inputs and descriptor targets
Complete paper asset bundleZenodo v5.0.0Genome/text embeddings, the fixed-t=1e-3 MIC candidate scorer, result-reproduction capsules, paper genome/strain manifests, and public model-ready tables
MIC inference exampleKiria-Nozan/ApexOracle-CoreInference-only single-member checkpoint and example condition
Guided-generation runtime bundleKiria-Nozan/ApexOracle-GenerationCompact BAA-3170 smoke assets

Immutable revisions, file sizes, checksums, licenses, and release scope are recorded in manifests/model_weights.yaml and manifests/data_assets.yaml. Model weights, datasets, embeddings, caches, and raw outputs are not stored as Git objects.

The release distinguishes runnable inference from recomputation of paper numbers. Representative inference-only weights power the public quickstarts; paper-result recomputation uses frozen sample-level predictions, splits, checkpoint provenance, and metric scripts instead of requiring every optimizer-bearing historical checkpoint. The latest Zenodo v5.0.0 retains the full version-series payload, so users do not need to download earlier versions separately. It includes the exact Fig. 1b classification capsule, the post-paper fixed-split MIC reconstruction, the high-confidence synergy replay, and the source-partitioned public model-ready tables. The paper reports 121,265 MIC measurements before token-length filtering; the frozen model-ready table contains 120,955 rows after excluding 310 structures over 1,024 tokens, and all 15,718 private in-house MIC rows are excluded from the public capsule. Immutable v1--v4 DOIs and their incremental release history remain in the release provenance; all versions belong to the same concept DOI 10.5281/zenodo.15612047, not separate Zenodo projects. See the reproducibility scope and compute requirements. Fresh quickstart wall time and peak RAM/VRAM are frozen in manifests/quickstart_benchmarks_2026-08-11.json. The external paper-data capsule plan records which splits are exact, reconstructed, or still unrecovered; the repository hygiene policy prevents those assets from being duplicated into Git.

[!IMPORTANT] The public MIC quickstart demonstrates one inference member. The paper metrics use the frozen seven-member ensemble. Likewise, the compact generation bundle validates the released runtime path; it is not itself an experimental activity result.

Repository map
ApexOracle/
├── modules/
│   ├── core/             # prediction, evaluation, and reproducibility
│   ├── dlm_pretrain/     # DLM + MTR pretraining producer
│   ├── mdlm/             # embeddings, guidance heads, and scoring
│   ├── evo2/             # genome embedding extraction
│   └── generation/       # guided discrete diffusion
├── quickstarts/          # runnable public examples
├── environments/        # per-module environment policy
├── manifests/           # immutable module and asset records
├── scripts/             # bootstrap, validation, and archive tools
└── docs/                # release status and provenance
Release integrity and complete source archive

The latest maintenance release is v0.2.3; it corrects the name of a fixed-t=1e-3 downstream MIC scorer without changing checkpoint bytes, model behavior, or scientific protocols. To create a source-only archive that expands all five fixed submodules:

python scripts/build_source_archive.py --output ApexOracle-source.tar.gz
python scripts/check_source_archive.py ApexOracle-source.tar.gz

The builder emits deterministic JSON provenance and a SHA-256 sidecar. A prebuilt archive is also attached to the GitHub release, because GitHub's automatic source ZIP does not expand submodules.

Citation

If ApexOracle is useful in your work, please cite the paper and the software release you used:

@article{leng2025predicting,
  title   = {Predicting and generating antibiotics against future pathogens with ApexOracle},
  author  = {Leng, Tianang and Wan, Fangping and Torres, Marcelo Der Torossian and de la Fuente-Nunez, Cesar},
  journal = {arXiv preprint arXiv:2507.07862},
  year    = {2025}
}

Machine-readable software and dataset citation metadata are available in CITATION.cff.

License and history

The super-repository orchestration layer is released under the MIT License. Each submodule retains its own license; see NOTICE before redistribution. The pre-conversion monorepo remains recoverable from branch legacy-monorepo and annotated tag legacy-monorepo-snapshot-2026-08-10.

Contributors

DragonDescentZerotsu/ApexOracle

Oracle: Omni-modal pRedictive and generative ArchiteCture for antimicrobiaL discovEry against Future Pathogens

9

stars

97

commits

Python

primary language

Aug 28, 2026

updated

README

ApexOracle: pathogen-aware antimicrobial prediction and generation

ApexOracle

Predicting and generating antibiotics against unseen pathogens

Tianang Leng · Fangping Wan · Marcelo D. T. Torres · Cesar de la Fuente-Nunez
University of Pennsylvania University of Pennsylvania
Equal contribution

Paper Latest release DLM model Pretraining data ApexOracle data DOI MIT license

A modular, multimodal platform that combines molecular structure with pathogen genome and phenotype context to predict antimicrobial activity and guide de novo molecule generation.

Overview · Quick start · Modules · Models & data · Citation


What ApexOracle does

🔬 Predict

Estimate MIC, antimicrobial classification, and synergy for candidate molecules.

🧬 Condition on pathogens

Combine Evo-2 genome representations with phenotype-derived text representations.

✨ Generate

Guide discrete diffusion toward de novo, strain-conditioned candidates.

ApexOracle represents molecules with a diffusion language model (DLM), combines them with complementary pathogen representations through cross-attention, and uses task-specific heads for prediction or guidance.

flowchart LR
    M["Molecule structure<br/>DLM"] --> F["Multimodal fusion<br/>cross-attention"]
    G["Pathogen genome<br/>Evo-2"] --> F
    T["Phenotype context<br/>Me-LLaMA"] --> F
    F --> P["MIC · antimicrobial class · synergy"]
    F --> H["Noisy guidance heads"]
    H --> D["de novo candidates<br/>discrete diffusion"]

Quick start

git clone --recurse-submodules https://github.com/DragonDescentZerotsu/ApexOracle.git
cd ApexOracle
python scripts/check_module_locks.py

Already cloned without submodules? Run ./scripts/bootstrap.sh.

GoalEntry point
Extract molecule embeddings with the DLMHugging Face model quickstart
Extract Evo-2 genome embeddingsGenome embedding quickstart
Run the public MIC inference exampleMIC prediction quickstart
Generate a strain-conditioned candidateGuided-generation quickstart
Reproduce or extend the scientific workflowsApexOracle-Core and its experiments/ documentation

[!NOTE] Each scientific module retains its validated environment. ApexOracle intentionally does not force DLM pretraining, Evo-2 extraction, MIC prediction, and guided generation into one Python environment. See the environment guide.

Modular release

ModuleResponsibilityPublic entry point
ApexOracle-CorePrediction, fusion, training/evaluation contracts, and reproducibility workflowsGitHub repository
ApexOracle-DLM-PretrainingCollaborator-developed DLM + 209-descriptor MTR pretraining producerGitHub repository
ApexOracle-MDLMDownstream molecular embedding, guidance heads, and candidate scoringGitHub repository
ApexOracle-Evo2Record-aware genome embedding extractionGitHub repository
ApexOracle-GenerationGuided discrete diffusion, remasking, and paper sampling presetsGitHub repository

The exact gitlink for every module is fixed in manifests/modules.lock.yaml. Scientific implementation commits, release documentation commits, model revisions, and recovery refs are kept distinct in the release provenance.

Models and data

AssetLocationScope
Molecule DLM weightsKiria-Nozan/ApexOracleMolecule embedding extraction
DLM pretraining dataKiria-Nozan/ApexOracle datasetTokenized molecular inputs and descriptor targets
Complete paper asset bundleZenodo v5.0.0Genome/text embeddings, the fixed-t=1e-3 MIC candidate scorer, result-reproduction capsules, paper genome/strain manifests, and public model-ready tables
MIC inference exampleKiria-Nozan/ApexOracle-CoreInference-only single-member checkpoint and example condition
Guided-generation runtime bundleKiria-Nozan/ApexOracle-GenerationCompact BAA-3170 smoke assets

Immutable revisions, file sizes, checksums, licenses, and release scope are recorded in manifests/model_weights.yaml and manifests/data_assets.yaml. Model weights, datasets, embeddings, caches, and raw outputs are not stored as Git objects.

The release distinguishes runnable inference from recomputation of paper numbers. Representative inference-only weights power the public quickstarts; paper-result recomputation uses frozen sample-level predictions, splits, checkpoint provenance, and metric scripts instead of requiring every optimizer-bearing historical checkpoint. The latest Zenodo v5.0.0 retains the full version-series payload, so users do not need to download earlier versions separately. It includes the exact Fig. 1b classification capsule, the post-paper fixed-split MIC reconstruction, the high-confidence synergy replay, and the source-partitioned public model-ready tables. The paper reports 121,265 MIC measurements before token-length filtering; the frozen model-ready table contains 120,955 rows after excluding 310 structures over 1,024 tokens, and all 15,718 private in-house MIC rows are excluded from the public capsule. Immutable v1--v4 DOIs and their incremental release history remain in the release provenance; all versions belong to the same concept DOI 10.5281/zenodo.15612047, not separate Zenodo projects. See the reproducibility scope and compute requirements. Fresh quickstart wall time and peak RAM/VRAM are frozen in manifests/quickstart_benchmarks_2026-08-11.json. The external paper-data capsule plan records which splits are exact, reconstructed, or still unrecovered; the repository hygiene policy prevents those assets from being duplicated into Git.

[!IMPORTANT] The public MIC quickstart demonstrates one inference member. The paper metrics use the frozen seven-member ensemble. Likewise, the compact generation bundle validates the released runtime path; it is not itself an experimental activity result.

Repository map
ApexOracle/
├── modules/
│   ├── core/             # prediction, evaluation, and reproducibility
│   ├── dlm_pretrain/     # DLM + MTR pretraining producer
│   ├── mdlm/             # embeddings, guidance heads, and scoring
│   ├── evo2/             # genome embedding extraction
│   └── generation/       # guided discrete diffusion
├── quickstarts/          # runnable public examples
├── environments/        # per-module environment policy
├── manifests/           # immutable module and asset records
├── scripts/             # bootstrap, validation, and archive tools
└── docs/                # release status and provenance
Release integrity and complete source archive

The latest maintenance release is v0.2.3; it corrects the name of a fixed-t=1e-3 downstream MIC scorer without changing checkpoint bytes, model behavior, or scientific protocols. To create a source-only archive that expands all five fixed submodules:

python scripts/build_source_archive.py --output ApexOracle-source.tar.gz
python scripts/check_source_archive.py ApexOracle-source.tar.gz

The builder emits deterministic JSON provenance and a SHA-256 sidecar. A prebuilt archive is also attached to the GitHub release, because GitHub's automatic source ZIP does not expand submodules.

Citation

If ApexOracle is useful in your work, please cite the paper and the software release you used:

@article{leng2025predicting,
  title   = {Predicting and generating antibiotics against future pathogens with ApexOracle},
  author  = {Leng, Tianang and Wan, Fangping and Torres, Marcelo Der Torossian and de la Fuente-Nunez, Cesar},
  journal = {arXiv preprint arXiv:2507.07862},
  year    = {2025}
}

Machine-readable software and dataset citation metadata are available in CITATION.cff.

License and history

The super-repository orchestration layer is released under the MIT License. Each submodule retains its own license; see NOTICE before redistribution. The pre-conversion monorepo remains recoverable from branch legacy-monorepo and annotated tag legacy-monorepo-snapshot-2026-08-10.

Contributors

Languages

Python

99.7%