Skip to main content

AlphaVX

AlphaVX Logo

CI License

Batch-score genetic variants against AlphaGenome and generate interpretable effect reports — gene expression, splicing, chromatin accessibility, histone marks, and transcription factor binding — in one command.

alphavx score variants.vcf -o results/

Terminal Demo


What It Does

AlphaGenome (DeepMind, Jan 2026) is a deep learning model that predicts how DNA mutations affect gene regulation across thousands of functional genomic tracks. It analyzes up to 1 million bases of context and matches or exceeds the strongest models in 25 of 26 variant-effect benchmarks.

AlphaVX makes it practical to use:

  • VCF batch scoring — Score all variants from a standard VCF file in one command
  • Resilient execution — Automatic retry with exponential backoff, result caching, and resumable runs
  • Multi-modal scoring — Expression (RNA-seq), splicing, chromatin (ATAC/DNase), histone marks (ChIP), TF binding — all scored automatically
  • Interpretable output — Per-variant report with significance flags, tissue-specific effects, and quantile rankings against common variants
  • Gene panel filtering — Focus on clinically relevant genes instead of scoring everything

Quick Start

Install

pip install alphavx

Note: AlphaVX requires an API key from Google DeepMind. Sign up here if you don't have one.

Once installed, configure your API key securely:

alphavx configure

(This saves your key globally to ~/.alphavx/.env so you can run the tool from anywhere).


Quickstart

If you don't have a VCF file handy, you can generate a small sample dataset instantly:

alphavx init

Now, score the variants:

alphavx score clinvar_example.vcf -o results/

## CLI Commands

AlphaVX provides several commands for managing configuration, scoring variants, and viewing results.

|    Command    |                                  Description                                  |                Example                |
|---------------|-------------------------------------------------------------------------------|---------------------------------------|
| `configure`   | Interactively save your API key globally.                                     | `alphavx configure`                   |
| `init`        | Generate a sample `clinvar_example.vcf` in the current directory for testing. | `alphavx init `                       |
| `score`       | Batch-score a VCF file, returning interactive reports and annotated VCFs.     | `alphavx score input.vcf -o results/` |
| `query`       | Quickly score a single variant string.                                        | `alphavx query chr17:7674220:G>A`     |
| `report`      | Regenerate the interactive HTML report from existing CSV results.             | `alphavx report results/`             |
| `cache stats` | View the size and hit rate of your local SQLite cache.                        | `alphavx cache stats`                 |
| `cache clear` | Delete all cached responses to force re-scoring.                              | `alphavx cache clear`                 |
| `--help`      | Show the help message and exit.                                               | `alphavx --help`                      |

### Scoring Options
You can further refine the `score` command using options:

```bash
# Filter variants by a specific gene panel before scoring
alphavx score input.vcf --genes BRCA1,TP53,CFTR -o results/

# Use a specific configuration file (for custom thresholds or modalities)
alphavx score input.vcf --config custom_alphavx.yaml -o results/

# Disable the local SQLite cache to fetch fresh scores
alphavx score input.vcf --no-cache -o results/

Output

Results Folder Demo

results/
├── scores.csv            # Full scoring table (all variants × all modalities)
├── significant.csv       # Variants exceeding significance thresholds
├── report.html           # Interactive summary report
├── cache/                # Cached API responses (resumable)
└── plots/
    ├── summary_heatmap.png
    └── per_variant/
        ├── chr17_7674220_G_A.png
        └── ...

scores.csv columns

Column Description
chrom Chromosome
pos Position (1-based)
ref / alt Reference and alternate alleles
gene Nearest gene
modality Scored output type (RNA_SEQ, SPLICE_SITES, DNASE, etc.)
tissue Biosample / tissue name
raw_score AlphaGenome raw effect score
quantile_score Percentile rank vs common variants (±0.999990 max)
significant Boolean flag (quantile > 0.995)

How It Works

                                                    VCF file
                                                       ↓
                                     Parse variants (chrom, pos, ref, alt)
                                                       ↓
                                   Check cache → skip already-scored variants
                                                       ↓
                                              For each variant:
                                                            → Build 1MB interval around variant
                                                            → Score against all recommended variant scorers
                                                            → Tidy scores, match gene strand
                                                       ↓
                                     Aggregate results → flag significant hits
                                                       ↓
                                       Generate report (CSV + HTML + plots)

Configuration

Copy alphavx.yaml and customize:

api:
  key_env: ALPHAVX_API_KEY
  max_retries: 3
  retry_delay: 5.0

scoring:
  modalities:
    - RNA_SEQ
    - SPLICE_SITES
    - SPLICE_SITE_USAGE
    - SPLICE_JUNCTIONS
    - DNASE
    - ATAC
    - CHIP_HISTONE
    - CHIP_TF
  quantile_threshold: 0.995
  sequence_length: 1048576

output:
  format: [csv, html]
  plots: true
  cache: true

Requirements

  • Python ≥ 3.10
  • AlphaGenome API key (sign up)
  • Internet connection (API-based, no local GPU needed)

Tech Stack

Component Choice
AlphaGenome SDK alphagenome>=0.6.1
CLI Typer + Rich
Caching SQLite (zero-dependency, resumable)
Reports Self-contained HTML
Plots Matplotlib + Seaborn
Packaging pyproject.toml + Hatch

Development

git clone https://github.com/RenX86/AlphaVX
cd AlphaVX
pip install -e ".[dev]"
pytest

License

Apache 2.0


Metadata

Release files for alphavx 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alphavx 0.0.7
File Size Uploaded
alphavx-0.0.7.tar.gz 44.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for alphavx 0.0.7
File Interpreter ABI Platform
alphavx-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 45.0 MB

Release files / alphavx-0.0.7.tar.gz

Download URL alphavx-0.0.7.tar.gz
Size 44.9 MB
Tags Source
SHA-256 checksum
How to use checksums
7a486d9bc69a0b1237b5f3af844a3f8717f022ff431f2c56c2659b7e77885653
BLAKE2b-256 checksum
How to use checksums
1d2df9d27cc32673f7273735ae4805106af6dac98410dff1d29dc8f997056c79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / alphavx-0.0.7-py3-none-any.whl

Download URL alphavx-0.0.7-py3-none-any.whl
Size 30.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
accbe9d7a39cc305902309781aa6483e83d4c45a2a9fd32f4b7d343553260ab2
BLAKE2b-256 checksum
How to use checksums
2c4080af0c655b18ee31b8a8216d179cb74dad9bbff3e8a452b77b50cbf5b08c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page