GeneralSubhra/variant-analysis-evo2
حول
a web app that can classify how likely specific mutations in DNA are to cause diseases (variant effect prediction). We will deploy and use the state-of-the-art Evo2 large language model, and use it to predict the pathogenicity of single nucleotide variants (SNVs)
تطوير الويب والتطبيقاتما يمكنك فعله
- 🤖 Variant Investigator agent — a Google ADK agent on Gemini that calls four evidence tools and explains where they agree or disagree
- 🧬 Evo2 variant scoring — delta-likelihood score with a pathogenic/benign call and confidence
- ⚖️ ClinVar comparison — known variants for a gene, each scoreable with Evo2 and compared with its clinical classification
- 🧩 3D protein structure — AlphaFold model coloured by confidence (pLDDT) with the variant residue highlighted
النمو المقاس للنجوم
- خلال 24 ساعة
- جارٍ جمع السجل
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل🧬 GenomixAI — AI-Powered DNA Variant Analysis
GenomixAI is an applied AI research project exploring how genomic foundation models and AI agents can assist with DNA variant analysis.
You enter a single DNA variant. An agent built with Google ADK and Gemini gathers evidence from Evo2, ClinVar, Ensembl VEP, AlphaFold and AlphaMissense, then writes one report: what the DNA model predicts, what clinical labs have reported, and where the change sits in the 3D protein structure.
Important: This is a research/prototype system and is not a clinical diagnostic tool. Predictions should not be used for medical decisions.
Why GenomixAI?
Interpreting a genomic variant means combining sequence context with biological and clinical evidence that lives in different tools and databases. GenomixAI brings those signals together in one workflow:
- Search a gene or browse a chromosome.
- Pick a known ClinVar variant, or enter a position and the new base.
- The agent maps the variant to its gene and protein (Ensembl VEP).
- It scores the DNA change with Evo2, a genomic language model.
- It retrieves the clinical classifications recorded at that position (NCBI ClinVar).
- For protein-changing variants it fetches the predicted structure and confidence (AlphaFold DB) and the predicted effect of the amino-acid change (AlphaMissense).
- It writes a short report and the app shows the evidence side by side, with the affected residue highlighted in an interactive 3D structure.
Key Features
- 🤖 Variant Investigator agent — a Google ADK agent on Gemini that calls four evidence tools and explains where they agree or disagree
- 🧬 Evo2 variant scoring — delta-likelihood score with a pathogenic/benign call and confidence
- ⚖️ ClinVar comparison — known variants for a gene, each scoreable with Evo2 and compared with its clinical classification
- 🧩 3D protein structure — AlphaFold model coloured by confidence (pLDDT) with the variant residue highlighted
- 📊 AlphaMissense — predicted pathogenicity of the amino-acid change
- 🔎 Gene and chromosome exploration — gene search, chromosome browsing, reference sequence viewer
- 🌍 Reference genome support — assemblies from the UCSC Genome Browser API
- ⚡ Serverless GPU inference — Evo2 runs on an NVIDIA H100 through Modal
Architecture
┌──────────────────────────┐
│ Next.js UI │
│ React + TypeScript │
└─────┬──────────────┬─────┘
│ │
quick Evo2 score │ │ "Investigate with agent"
gene / ClinVar │ ▼
/ UCSC lookups │ ┌──────────────────────────┐
│ │ Agent service │
│ │ FastAPI + Google ADK │
│ │ Gemini model │
│ └─┬───────┬───────┬──────┬─┘
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
┌───────────┐ ┌─────────┐ ┌─────────┐ ┌──────────────┐
│ Evo2 │ │ ClinVar │ │ Ensembl │ │ AlphaFold DB │
│ Modal GPU │ │ API │ │ VEP │ │ AlphaMissense│
│ H100 │ └─────────┘ └─────────┘ └──────────────┘
└───────────┘
- The frontend calls the Evo2 endpoint directly for a quick score, and public NCBI / UCSC APIs for gene, sequence and ClinVar data.
- The agent service exposes one endpoint,
POST /investigate. Gemini decides which tools to call; every number in the report comes from a tool result, and the full tool trace is returned alongside the report.
The Variant Investigator agent
| Tool | Source | What it returns |
|---|---|---|
map_variant_to_protein |
Ensembl VEP REST | Gene, consequence, canonical transcript, protein position and amino-acid change |
score_variant_evo2 |
Evo2 on Modal | Delta-likelihood score, prediction, confidence |
lookup_clinvar |
NCBI E-utilities | ClinVar records at the exact position |
get_structure_evidence |
AlphaFold DB | Model file, pLDDT at the residue, AlphaMissense score and class |
Request and response:
POST http://localhost:8001/investigate
{"chromosome": "chr17", "position": 43106487, "alternative": "C", "genome": "hg38"}
→ {"report": "...", "steps": [{"tool": "...", "args": {...}, "result": {...}}, ...]}
Example
chr17:43106487 A>C (hg38) is BRCA1 c.181T>G, p.Cys61Gly:
| Evidence | Result |
|---|---|
| Evo2 | Likely pathogenic (delta score −0.0092) |
| ClinVar | Pathogenic (variation 17661) |
| AlphaMissense | Likely pathogenic (0.9904) |
| AlphaFold | Residue 61 modelled with pLDDT 87.56 (confident) |
These values were returned by the live services at the time of writing and can change as the underlying databases are updated.
Technical Stack
AI / Backend
- Python 3.12
- Google ADK (Agent Development Kit) with Gemini
- FastAPI
- Evo2 (
evo2_7b) - Modal serverless GPUs
- NCBI ClinVar and E-utilities
- Ensembl VEP REST API
- AlphaFold Protein Structure Database, AlphaMissense
- UCSC Genome API
Frontend
- Next.js 15
- React 19
- TypeScript
- Tailwind CSS 4
- shadcn/ui
- 3Dmol.js (protein structure viewer)
Getting Started
Clone
git clone https://github.com/GeneralSubhra/variant-analysis-evo2
cd variant-analysis-evo2
1. Evo2 backend (Modal)
Requires a Modal account. H100 GPUs need a payment method on the account.
cd backend
uv venv --python 3.12
source .venv/bin/activate
# Windows:
# .venv\Scripts\activate
uv pip install -r requirements.txt modal
modal setup
modal deploy main.py
modal deploy prints the URL of Evo2Model.analyze_single_variant. You need it in the next two steps. Use modal run main.py instead for a one-off test call.
2. Agent service (Google ADK)
Requires a Gemini API key from Google AI Studio.
cd backend
uv pip install -r requirements-agent.txt
cp .env.example .env
# Windows: copy .env.example .env
Set these in backend/.env:
| Variable | Value |
|---|---|
GOOGLE_API_KEY |
Your Gemini API key |
EVO2_ENDPOINT |
The Evo2 URL from step 1 |
GEMINI_MODEL |
Optional. Defaults to gemini-3.8-flash |
Start the service:
uvicorn variant_agent.server:app --port 8001 --env-file .env
If EVO2_ENDPOINT is not set, the agent still runs and reports the Evo2 step as unavailable.
3. Frontend
cd frontend
npm install
cp .env.example .env
npm run dev
Set these in frontend/.env:
| Variable | Value |
|---|---|
NEXT_PUBLIC_ANALYZE_SINGLE_VARIANT_BASE_URL |
The Evo2 URL from step 1 |
NEXT_PUBLIC_AGENT_ENDPOINT |
http://localhost:8001/investigate |
The frontend runs at:
http://localhost:3000
Try it: click BRCA1, open the BRCA1 gene, and in Investigate variant enter position 43106487 and alternative C. The first Evo2 call after a period of inactivity starts a GPU container and can take a few minutes.
Tests
cd backend
python -m pytest test_variant_agent.py -q
The tests call the live Ensembl, ClinVar and AlphaFold services and replace Gemini with a scripted model, so no API key is needed.
Project Structure
backend/
main.py Evo2 inference on Modal (H100), BRCA1 calibration analysis
local_main.py Local variant of the BRCA1 analysis
requirements.txt Dependencies for the Modal GPU image
variant_agent/
agent.py ADK agent definition and its four tools
server.py FastAPI app exposing POST /investigate
requirements-agent.txt Dependencies for the agent service
test_variant_agent.py Tool and endpoint tests
frontend/
src/app/page.tsx Home screen: gene search and chromosome browsing
src/components/ Gene viewer, variant analysis, investigator panel, 3D structure viewer
src/utils/ API clients for UCSC, NCBI, Evo2 and the agent
Limitations
- Single-nucleotide variants only. Insertions, deletions and multi-base changes are not scored.
- Evo2 threshold is calibrated on one gene. The pathogenic/benign cut-off and the confidence value come from a 500-variant subset of the BRCA1 saturation genome editing dataset (Findlay et al., 2018). They are not validated for other genes.
- The agent accepts hg38 and hg19 only, and protein mapping is hg38 only. An hg19 variant gets Evo2 and ClinVar evidence but no structure step.
- ClinVar lookups are by position. Several records can exist at one position for different base changes; the agent is instructed to say which one matches.
- AlphaFold structures are predictions. Low pLDDT regions are unreliable, and the model shows the reference protein, not the mutated one.
- The report is written by a language model. It is constrained to tool results, but the wording should be checked against the evidence shown beside it.
Evaluation & Research
The project is intended as an applied research and engineering prototype rather than a clinically validated predictor.
A reproducible evaluation should:
- Define the prediction target first. Specify the variant classes, label source, genome build, and intended interpretation before choosing metrics.
- Prevent data leakage. Keep duplicate records and variants from the same locus or related samples in the same split where appropriate. Prefer chromosome-, gene-, or locus-aware holdouts when they match the intended generalization claim.
- Record provenance. Store dataset versions, ClinVar review status and access date, genome build, model/checkpoint identifier, inference settings, and preprocessing version.
- Compare against baselines. Include simple sequence or annotation-based baselines alongside Evo2, and compare against ClinVar labels only with clear acknowledgement that ClinVar is an evidence database, not an infallible ground truth.
- Report discrimination and calibration. Use AUROC and AUPRC for suitable binary tasks, class-wise precision/recall/F1 for imbalanced labels, and calibration metrics or reliability plots when output probabilities are interpreted as confidence.
- Measure operational cost. Track latency, GPU type, memory use, throughput, and cost per evaluated variant.
- Publish error analysis. Report performance by variant class and data subgroup, confidence intervals where feasible, and representative failure cases.
Suggested experiment artifacts include a versioned dataset manifest, fixed split definitions, model configuration, machine-readable metrics, and a short report describing limitations. Do not tune on the final held-out test set.
No clinical performance claims are made by this repository. Any future results should be independently validated before consideration for clinical use.
Roadmap
- Add reproducible benchmark suite
- Add baseline model comparisons
- Add automated evaluation pipeline
- Add latency / cost benchmarks
- Expand variant classes and genomic regions
- Improve uncertainty and calibration analysis
References
- Evo2 paper: https://www.science.org/doi/10.1126/science.ado9336
- Evo2 implementation: https://github.com/ArcInstitute/evo2
- Google Agent Development Kit: https://google.github.io/adk-docs/
- AlphaFold Protein Structure Database: https://alphafold.ebi.ac.uk/
- AlphaMissense: https://www.science.org/doi/10.1126/science.adg7492
- Ensembl REST API: https://rest.ensembl.org/
- ClinVar: https://www.ncbi.nlm.nih.gov/clinvar/
- UCSC Genome Browser: https://genome.ucsc.edu/
- BRCA1 saturation genome editing (Findlay et al., 2018): https://www.nature.com/articles/s41586-018-0461-z
License
Apache License 2.0. See LICENSE.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…