Skip to main content

AlphaGenome header image

AlphaGenome API

PyPI Python version Presubmit Checks

Get API key | Quick start | Installation | Documentation | Community | Terms of Use | Model code

The AlphaGenome API provides access to AlphaGenome, Google DeepMind’s unifying model for deciphering the regulatory code within DNA sequences. This repository contains client-side code, examples and documentation to help you use the AlphaGenome API.

AlphaGenome offers multimodal predictions, encompassing diverse functional outputs such as gene expression, splicing patterns, chromatin features, and contact maps (see diagram below). The model analyzes DNA sequences of up to 1 million base pairs in length and can deliver predictions at single base-pair resolution for most outputs. AlphaGenome achieves state-of-the-art performance across a range of genomic prediction benchmarks, including numerous diverse variant effect prediction tasks (detailed in Avsec et al.).

The API is offered free of charge for non-commercial use (subject to the terms of use). Query rates vary based on demand – it is well suited for smaller to medium-scale analyses such as analysing a limited number of genomic regions or variants requiring 1000s of predictions, but is likely not suitable for large scale analyses requiring more than 1 million predictions. Once you obtain your API key, you can easily get started by following our Quick Start Guide, or watching our AlphaGenome 101 tutorial.

Model overview

The documentation also covers a set of comprehensive tutorials, variant scoring strategies to efficiently score variant effects, and a visualization library to generate matplotlib figures for the different output modalities.

We cover additional details of the capabilities and limitations in our documentation. For support and feedback:

  • Please submit bugs and any code-related issues on GitHub.
  • For general feedback, questions about usage, and/or feature requests, please use the community forum – it’s actively monitored by our team so you're likely to find answers and insights faster.
  • If you can't find what you're looking for, please get in touch with the AlphaGenome team on alphagenome@google.com and we will be happy to assist you with questions. We’re working hard to answer all inquiries but there may be a short delay in our response due to the high volume we are receiving.

A commercial offering of AlphaGenome is in early stage testing, you can express interest to access the product here.

Quick start

The quickest way to get started is to run our example notebooks in Google Colab. Here are some starter notebooks:

  • Quick start: An introduction to quickly get you started with using the model and making predictions.
  • Visualizing predictions: Learn how to visualize different model predictions using the visualization libraries.

Alternatively, you can dive straight in by following the installation guide and start writing code! Here's an example of making a variant prediction:

from alphagenome.data import genome
from alphagenome.models import dna_client
from alphagenome.visualization import plot_components
import matplotlib.pyplot as plt


API_KEY = 'MyAPIKey'
model = dna_client.create(API_KEY)

interval = genome.Interval(chromosome='chr22', start=35677410, end=36725986)
variant = genome.Variant(
    chromosome='chr22',
    position=36201698,
    reference_bases='A',
    alternate_bases='C',
)

outputs = model.predict_variant(
    interval=interval,
    variant=variant,
    ontology_terms=['UBERON:0001157'],
    requested_outputs=[dna_client.OutputType.RNA_SEQ],
)

plot_components.plot(
    [
        plot_components.OverlaidTracks(
            tdata={
                'REF': outputs.reference.rna_seq,
                'ALT': outputs.alternate.rna_seq,
            },
            colors={'REF': 'dimgrey', 'ALT': 'red'},
        ),
    ],
    interval=outputs.reference.rna_seq.interval.resize(2**15),
    # Annotate the location of the variant as a vertical line.
    annotations=[plot_components.VariantAnnotation([variant], alpha=0.8)],
)
plt.show()

Installation

[!TIP] You may optionally wish to create a Python Virtual Environment to prevent conflicts with your system's Python environment.

To install alphagenome, clone a local copy of the repository and run pip install:

$ git clone https://github.com/google-deepmind/alphagenome.git
$ pip install ./alphagenome

See the documentation for information on alternative installation strategies.

Contributing

We welcome bug fixes and some new features to this project. Before sending your pull request, please read the CONTRIBUTING documentation, ensure all tests pass, and that your contributions are formatted correctly.

You can check your changes by running the following from the alphagenome root directory:

$ python3 -m pip install hatch
$ python3 -m hatch run check:all  # Runs linter and formatter.
$ python3 -m hatch test

Citing alphagenome

If you use AlphaGenome in your research, please cite using:

@article{alphagenome,
  title={Advancing regulatory variant effect prediction with {AlphaGenome}},
  author={Avsec, {\v Z}iga and Latysheva, Natasha and Cheng, Jun and Novati, Guido and Taylor, Kyle R. and Ward, Tom and Bycroft, Clare and Nicolaisen, Lauren and Arvaniti, Eirini and Pan, Joshua and Thomas, Raina and Dutordoir, Vincent and Perino, Matteo and De, Soham and Karollus, Alexander and Gayoso, Adam and Sargeant, Toby and Mottram, Anne and Wong, Lai Hong and Drot{\'a}r, Pavol and Kosiorek, Adam and Senior, Andrew and Tanburn, Richard and Applebaum, Taylor and Basu, Souradeep and Hassabis, Demis and Kohli, Pushmeet},
  journal={Nature},
  volume={649},
  number={8099},
  pages={1206--1218},
  year={2026},
  doi={10.1038/s41586-025-10014-0},
  publisher={Nature Publishing Group UK London}
}

Acknowledgements

AlphaGenome communicates with and/or references the following separate libraries and packages:

We thank all their contributors and maintainers!

License and Disclaimer

Copyright 2024 Google LLC

All software in this repository is licensed under the Apache License, Version 2.0 (Apache 2.0); you may not use this except in compliance with the Apache 2.0 license. You may obtain a copy of the Apache 2.0 license at: https://www.apache.org/licenses/LICENSE-2.0. For the avoidance of doubt, as noted above, the API is offered free of charge for non-commercial use subject to the Terms of Use.

Examples and documentation to help you use the AlphaGenome API are licensed under the Creative Commons Attribution 4.0 International License (CC-BY). You may obtain a copy of the CC-BY license at: https://creativecommons.org/licenses/by/4.0/legalcode.

Unless required by applicable law or agreed to in writing, all software and materials distributed here under the Apache 2.0 or CC-BY licenses are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the licenses for the specific language governing permissions and limitations under those licenses.

This is not an official Google product.

Third-party software

Your use of any third-party software, libraries or code referenced in the materials in this repository (including the libraries listed in the Acknowledgments section) may be governed by separate terms and conditions or license provisions. Your use of the third-party software, libraries or code is subject to any such terms and you should check that you can comply with any applicable restrictions or terms and conditions before use.

Reference Datasets

A modified version of the GENCODE dataset (which can be found here: https://www.gencodegenes.org/human/releases.html) is released with the client code package for illustrative purposes, and is available with reference to the following:

Metadata

Release files for alphagenome 0.9.0

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

Source distribution (sdist)

Source distribution for alphagenome 0.9.0
File Size Uploaded
alphagenome-0.9.0.tar.gz 8.8 MB Details

Built distribution (wheel)

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

Total release size: 9.1 MB

Release files / alphagenome-0.9.0.tar.gz

Download URL alphagenome-0.9.0.tar.gz
Size 8.8 MB
Tags Source
SHA-256 checksum
How to use checksums
e3c7628d41ea68aeaf0d50751b843e049dc5bed829c6ce62d55927218d8a720f
BLAKE2b-256 checksum
How to use checksums
25613e9564314295d96205651036e7cc44818b0d255d816a28594e412c7689f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / alphagenome-0.9.0-py3-none-any.whl

Download URL alphagenome-0.9.0-py3-none-any.whl
Size 213.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4f35884341ae85b5d2cf088dfe0304961de7ae4a590d4538653069673de32f4
BLAKE2b-256 checksum
How to use checksums
a85faebd69dd4e6a28cc1ac44e31d06e8e76772e850f39e3e191ce2913ad354d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

1 release file

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