Skip to main content

AlphaGenome

Project description

AlphaGenome (wip)

Implementation of AlphaGenome, Deepmind's updated genomic attention model

Appreciation

Install

$ pip install alphagenome-pytorch

Usage

import torch
from alphagenome_pytorch import AlphaGenome

model = AlphaGenome()

dna = torch.randint(0, 5, (2, 8192))
organism_index = torch.tensor([0, 0], dtype=torch.long) # the organism that each sequence belongs to

embeddings_1bp, embeddings_128bp, embeddings_pair = model(dna, organism_index) # (2, 8192, 1536), (2, 64, 3072), (2, 4, 4, 128)
print(embeddings_1bp.shape, embeddings_128bp.shape, embeddings_pair.shape)

Contributing

First install locally with the following

$ pip install '.[test]' # or uv pip install . '[test]'

Then make your changes, add a test to tests/test_alphagenome.py

$ pytest tests

That's it

Vibe coding with some attention network is totally welcomed, if it works

Citations

@article{avsec2025alphagenome,
  title   = {AlphaGenome: advancing regulatory variant effect prediction with a unified DNA sequence model},
  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},
  year    = {2025}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alphagenome_pytorch-0.0.15.tar.gz (495.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alphagenome_pytorch-0.0.15-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file alphagenome_pytorch-0.0.15.tar.gz.

File metadata

  • Download URL: alphagenome_pytorch-0.0.15.tar.gz
  • Upload date:
  • Size: 495.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for alphagenome_pytorch-0.0.15.tar.gz
Algorithm Hash digest
SHA256 b56191c3fd45652fbeba1011b6d1b50cb211798a1d0bd54dfa748ce1a2adba1e
MD5 edb6be59871378d536106deac8334669
BLAKE2b-256 d830b867e396137d5329cbbebe9aad6bce72e9525cbb428a8da72d8521ee7939

See more details on using hashes here.

File details

Details for the file alphagenome_pytorch-0.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for alphagenome_pytorch-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 8cc2813cea77eff3dfd202eda3c8606a43e2da23723a2857d647addac345f72f
MD5 187314674efd7a0992bdf0d9dcf9c326
BLAKE2b-256 a5297a934ecf6fd1fe2fc00f012935c4483807015d8964fc7deb305ed4e6d332

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page