Skip to main content

AlphaMissense binding

altar-alphamissense exposes precomputed AlphaMissense evidence through Altar's AnnotationSource contract. AlphaMissense is a lookup source here, not a model execution plugin: the published missense predictions already exist before an Altar analysis begins.

The binding separates scientific normalization from storage. AlphaMissenseSource aggregates transcript records into the stable per-variant columns consumed by materialization, while an injected AllelicRecordBackend retrieves projected native rows. Altar's generic ParquetAllelicRecordBackend is shared with SpliceAI and other allelic sources; it contains no AlphaMissense logic.

from altar.sources import AllelicKeyColumns, ParquetAllelicRecordBackend
from altar_alphamissense import AlphaMissenseRelease, AlphaMissenseSource

backend = ParquetAllelicRecordBackend(
    "./alphamissense",
    key_columns=AllelicKeyColumns("CHROM", "POS", "REF", "ALT"),
)
release = AlphaMissenseRelease(genome_build="hg38", source_release="zenodo-v1")
source = AlphaMissenseSource(backend, release=release, genome_build="hg38")
annotations = await source.annotate(["chr1:123:A:G"])

Genome build and release

DeepMind publishes separate hg19 and hg38 files. AlphaMissenseRelease records which one a backend serves and the exact upstream release. genome_build on the source is the assembly of the variant IDs you will look up. The constructor raises ValueError if it differs from the release's build.

The source also reads the native genome column of every record. If a record's build differs from the release, annotate raises ValueError rather than returning scores for the wrong assembly. A table that holds both builds must be filtered to one, for example with filters={"genome": "hg38"} on the BigQuery backend.

Every annotation carries am_genome_build and am_source_release, so persisted AlphaMissense columns keep the build and release they came from.

For AlphaMissense records stored in BigQuery, use Altar's generic BigQueryAllelicRecordBackend. The table needs the four key columns plus genome, uniprot_id, transcript_id, protein_variant, am_pathogenicity, and am_class. Its chromosome column must use the chr-prefixed spelling the binding requests, such as chr1. A table spelled 1 makes staging raise ValueError.

To include AlphaMissense in BigQueryScoreStore materialization and exports, use staged_annotation_source. It runs the binding for the job's variants that have AlphaMissense records and yields a source the store joins in SQL:

from altar.sources import AllelicKeyColumns, BigQueryAllelicRecordBackend, staged_annotation_source
from altar_alphamissense import AlphaMissenseRelease, AlphaMissenseSource

backend = BigQueryAllelicRecordBackend(
    client,
    "project.reference.alphamissense",
    key_columns=AllelicKeyColumns("chr", "pos", "ref", "alt"),
    filters={"genome": "hg38"},
)
release = AlphaMissenseRelease(genome_build="hg38", source_release="zenodo-v1")
async with staged_annotation_source(
    AlphaMissenseSource(backend, release=release, genome_build="hg38"),
    client,
    staging_dataset="project.scratch",
    variants_relation="`project.scratch.job_variants`",
    coverage=backend,
) as source:
    ...  # pass `source` to the store's materialize and export calls

ParquetAlphaMissenseBackend remains as a thin compatibility preset for one release window; new integrations should use the shared adapter directly.

Build that dataset from DeepMind's AlphaMissense_hg38.tsv.gz release with:

altar-alphamissense-build --input AlphaMissense_hg38.tsv.gz --output ./alphamissense

am_transcript_scores is a typed, repeated struct that preserves every matching transcript in descending pathogenicity order, with ties ordered by transcript, UniProt accession, and protein variant. Each record has uniprot_id, transcript_id, protein_variant, am_pathogenicity, and am_class. Stores with native nested types keep it as an array of records; SQLite stores it as JSON text without changing the logical schema. am_pathogenicity and am_class are the summary from the most pathogenic transcript and remain convenient scalar columns for filtering and prioritization.

Metadata

Release files for altar-alphamissense 0.1.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 altar-alphamissense 0.1.0
File Size Uploaded
altar_alphamissense-0.1.0.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for altar-alphamissense 0.1.0
File Interpreter ABI Platform
altar_alphamissense-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / altar_alphamissense-0.1.0.tar.gz

Download URL altar_alphamissense-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
10463877f8bdbea62906d51f53ba82f7d1ebab693084d495633da66377a92cbd
BLAKE2b-256 checksum
How to use checksums
932b59a14925c9b91b15b92edfa4cfa9a5b6b0c5d19c21d36896235b00ff870b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / altar_alphamissense-0.1.0-py3-none-any.whl

Download URL altar_alphamissense-0.1.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92b738d053aa315721a88bd73d574487109b515a530019a31647228e67018cd2
BLAKE2b-256 checksum
How to use checksums
f9a809643912b182315d0de40bbbca523edacc00c98fb1525d4014ba0663372c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

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