AlphaGenome predictions
The tutorials target the JBrowse v5 beta, and the v4.3.0 release
on the download page lacks some of what they show. To install the
beta of JBrowse Web, run npm install -g @jbrowse/cli@next, then
jbrowse create jbrowse2 --branch v5.0.0-beta.22. Desktop beta builds for Linux and
macOS are on the releases page;
the Windows build waits on code signing.
AlphaGenome reads a megabase of DNA and predicts where it is transcribed, where the chromatin is open, how it splices, and how it folds. Given a window of reference sequence and a cell type, it predicts the RNA-seq, DNase, ATAC, CAGE, PRO-cap and ChIP-seq signal an experiment would produce there, plus splice junctions and a contact map. After one base changes, a second prediction differs from the first by the variant's predicted effect. At TAL1 we:
- install the AlphaGenome plugin and request predictions as tracks for two cell lines
- stack the prediction tracks that share units on one axis
- view the predicted splice junctions and the contact map over the window
- score a variant against the reference and view its predicted effect as tracks
The AlphaGenome plugin is beta, and every prediction track on this page is a model's output. We welcome your feedback.
Prerequisites
- the AlphaGenome plugin, for the adapters these tracks use, the query panel and the variant right-click item. In your own JBrowse, load it by URL; the sessions below already load it
The data
We ran two predictions over the TAL1 locus against AlphaGenome and stored them under stable tokens, following the AlphaGenome team's worked example. The window is a megabase centered on TAL1, which is on in K562, an erythroleukemia line, and off in GM12878, a lymphoblastoid line, the control.
Nothing to download: the plugin reads both stored predictions by URL. To use
your own variants, swap uri for a VCF or BED, as Ask AlphaGenome for a
prediction shows, and the query panel requests a prediction for any hg38 locus
you open.
The files
| What it is | File |
|---|---|
| The reference prediction over chr1:46,700,048..47,748,623, all eleven output types, K562 and GM12878 | demo-tal1-interval |
| The variant prediction, the same window scored for the Jurkat insertion upstream of TAL1 in CD34+ common myeloid progenitors | demo-tal1-variant-cd34 |
Install the AlphaGenome plugin
The plugin is not in the plugin store yet, so
JBrowse loads it by URL from the plugins array in config.json (see
configuring plugins):
{
"plugins": [
{
"name": "AlphaGenome",
"umdUrl": "https://jbrowse.org/demos/alphagenome-plugin/jbrowse-plugin-alphagenome.umd.js"
}
]
}On JBrowse Desktop, add that URL as a
custom plugin named
AlphaGenome.
The plugin sends requests to a small service that holds the API key, runs the
prediction and stores the arrays. The plugin uses the public instance by
default. To use your own, the page or app that embeds JBrowse calls
setApiRoot, a function the plugin module exports, with the service's root URL;
config.json has no slot for it.1
Ask AlphaGenome for a prediction
AlphaGenome predicts from hg38 sequence, so we load that assembly, the RefSeq genes and the oncogenic TAL1 variants:
genomes.jbrowse.org hosts hg38, and this page's hg38 tracks attach to it by that name. The other tabs build the same assembly from its files.
- In JBrowse Desktop, click hg38 on the start screen, or launch
jbrowse-desktop --genome hg38. - On the web, open hg38 on genomes.jbrowse.org.
- In your own JBrowse Web,
jbrowse add-assembly --genome hg38adds it to theconfig.jsonin the current folder.
Goes in the assemblies array of config.json. See Assemblies.
{
"name": "hg38",
"uri": "https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.2bit",
"refNameAliases": {
"uri": "https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.chromAlias.txt"
}
}Edits config.json in the current folder, creating it if there is none. See JBrowse CLI with Desktop.
jbrowse add-assembly https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.2bit \
--name hg38 \
--refNameAliases https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.chromAlias.txthg38 is one of the genomes JBrowse Desktop hosts, with gene tracks already set up: on the start screen click Browse hosted genomes and pick it. To load the files of this config instead:
In JBrowse Desktop, Open your own genome on the start screen (or File → Open genome... in a session), then Open from a URL and paste:
https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.2bitJBrowse reads the format off the file name. Then fill in:
- Genome name:
hg38 - refName aliases (under More options):
https://hgdownload.soe.ucsc.edu/goldenPath/hg38/bigZips/hg38.chromAlias.txt
Goes in the tracks array of config.json. See Tracks.
{
"type": "FeatureTrack",
"trackId": "genes",
"name": "NCBI RefSeq genes",
"assemblyNames": ["hg38"],
"adapter": {
"type": "Gff3TabixAdapter",
"uri": "https://jbrowse.org/genomes/GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full_analysis_set.refseq_annotation.sorted.gff.gz"
}
}Edits config.json in the current folder. See JBrowse CLI with Desktop.
jbrowse add-track https://jbrowse.org/genomes/GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full_analysis_set.refseq_annotation.sorted.gff.gz \
--trackId genes \
--name "NCBI RefSeq genes" \
--assemblyNames hg38In JBrowse Desktop, or in any running JBrowse Web session, open a view on this track’s assembly, then File → Open track..., choose Add track from pasted JSON, and paste:
{
"type": "FeatureTrack",
"trackId": "genes",
"name": "NCBI RefSeq genes",
"assemblyNames": ["hg38"],
"adapter": {
"type": "Gff3TabixAdapter",
"uri": "https://jbrowse.org/genomes/GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full_analysis_set.refseq_annotation.sorted.gff.gz"
}
}Open this track in JBrowse Web ↗
Needs JBrowse Desktop 5.0 or newer. If nothing opens, copy the link and paste it into Desktop's Open JBrowse Web link..., on the start screen or under File → Session.
https://jbrowse.org/code/jb2/main/?config=https%3A%2F%2Fjbrowse.org%2Fucsc%2Fhg38%2Fconfig.json&session=spec-%7B%22sessionTracks%22%3A%5B%7B%22type%22%3A%22FeatureTrack%22%2C%22trackId%22%3A%22genes%22%2C%22name%22%3A%22NCBI+RefSeq+genes%22%2C%22assemblyNames%22%3A%5B%22hg38%22%5D%2C%22adapter%22%3A%7B%22type%22%3A%22Gff3TabixAdapter%22%2C%22uri%22%3A%22https%3A%2F%2Fjbrowse.org%2Fgenomes%2FGRCh38%2Fncbi_refseq%2FGCA_000001405.15_GRCh38_full_analysis_set.refseq_annotation.sorted.gff.gz%22%7D%7D%5D%2C%22views%22%3A%5B%7B%22type%22%3A%22LinearGenomeView%22%2C%22assembly%22%3A%22hg38%22%2C%22loc%22%3A%22chr1%3A47%2C189%2C833..47%2C259%2C832%22%2C%22tracks%22%3A%5B%22genes%22%5D%7D%5D%7D&sessionName=JBrowse+docs%3A+NCBI+RefSeq+genesThis view in a notebook, with jbrowse-anywidget. Swap a track's uri for your file.
from jbrowse_anywidget import JBrowseApp, fetch_hub
config = fetch_hub("https://jbrowse.org/ucsc/hg38/config.json")
app = JBrowseApp(
assemblies=config["assemblies"],
tracks=config.get("tracks", []) + [
{
"type": "FeatureTrack",
"trackId": "genes",
"name": "NCBI RefSeq genes",
"assemblyNames": [
"hg38"
],
"adapter": {
"type": "Gff3TabixAdapter",
"uri": "https://jbrowse.org/genomes/GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full_analysis_set.refseq_annotation.sorted.gff.gz"
}
}
],
views=[
{
"type": "LinearGenomeView",
"assembly": "hg38",
"loc": "chr1:47,189,833..47,259,832",
"tracks": [
"genes"
]
}
],
)
app # display the widgetThis view in your React 19 app, with @jbrowse/react-app2 and @jbrowse/core. Add your own files to tracks.
import { use } from 'react'
import { JBrowse } from '@jbrowse/react-app2'
import '@jbrowse/react-app2/styles.css'
import { addRelativeUris } from '@jbrowse/core/util/addRelativeUris'
const configUrl = "https://jbrowse.org/ucsc/hg38/config.json"
const configPromise = fetch(configUrl)
.then(res => res.json())
.then(config => {
addRelativeUris(config, new URL(configUrl))
return config
})
export default function Figure() {
const config = use(configPromise)
return (
<JBrowse
assemblies={config.assemblies}
tracks={[...(config.tracks ?? []), ...[
{
"type": "FeatureTrack",
"trackId": "genes",
"name": "NCBI RefSeq genes",
"assemblyNames": [
"hg38"
],
"adapter": {
"type": "Gff3TabixAdapter",
"uri": "https://jbrowse.org/genomes/GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full_analysis_set.refseq_annotation.sorted.gff.gz"
}
}
]]}
aggregateTextSearchAdapters={config.aggregateTextSearchAdapters}
configuration={config.configuration}
views={[
{
"type": "LinearGenomeView",
"assembly": "hg38",
"loc": "chr1:47,189,833..47,259,832",
"tracks": [
"genes"
]
}
]}
/>
)
}jbrowse-img draws this view as an SVG, no browser needed. Swap --config or a track for your own.
cat > tracks.json <<'JSON'
[
{
"type": "FeatureTrack",
"trackId": "genes",
"name": "NCBI RefSeq genes",
"assemblyNames": [
"hg38"
],
"adapter": {
"type": "Gff3TabixAdapter",
"uri": "https://jbrowse.org/genomes/GRCh38/ncbi_refseq/GCA_000001405.15_GRCh38_full_analysis_set.refseq_annotation.sorted.gff.gz"
}
}
]
JSON
npx @jbrowse/img --config https://jbrowse.org/ucsc/hg38/config.json \
--trackConfigs tracks.json \
--assembly hg38 --loc chr1:47,189,833..47,259,832 \
--track genes \
--out figure.svgFor a PNG, --out figure.png (needs rsvg-convert: apt install librsvg2-bin, brew install librsvg).
The variants are a BED whose header lists REF and ALT columns after the
usual four, since the right-click prediction item needs those alleles on each
feature. For your own variants, swap uri for a VCF or a BED with the same
columns:
Goes in the tracks array of config.json. See Tracks.
{
"type": "VariantTrack",
"trackId": "tal1_variants",
"name": "Oncogenic TAL1 variants",
"assemblyNames": ["hg38"],
"adapter": {
"type": "BedAdapter",
"uri": "https://jbrowse.org/demos/alphagenome_test.bed"
}
}Edits config.json in the current folder. See JBrowse CLI with Desktop.
jbrowse add-track https://jbrowse.org/demos/alphagenome_test.bed \
--trackId tal1_variants \
--name "Oncogenic TAL1 variants" \
--assemblyNames hg38 \
--trackType VariantTrackIn JBrowse Desktop, or in any running JBrowse Web session, open a view on this track’s assembly, then File → Open track..., choose Add track from pasted JSON, and paste:
{
"type": "VariantTrack",
"trackId": "tal1_variants",
"name": "Oncogenic TAL1 variants",
"assemblyNames": ["hg38"],
"adapter": {
"type": "BedAdapter",
"uri": "https://jbrowse.org/demos/alphagenome_test.bed"
}
}Open this track in JBrowse Web ↗
Needs JBrowse Desktop 5.0 or newer. If nothing opens, copy the link and paste it into Desktop's Open JBrowse Web link..., on the start screen or under File → Session.
https://jbrowse.org/code/jb2/main/?config=https%3A%2F%2Fjbrowse.org%2Fucsc%2Fhg38%2Fconfig.json&session=spec-%7B%22sessionTracks%22%3A%5B%7B%22type%22%3A%22VariantTrack%22%2C%22trackId%22%3A%22tal1_variants%22%2C%22name%22%3A%22Oncogenic+TAL1+variants%22%2C%22assemblyNames%22%3A%5B%22hg38%22%5D%2C%22adapter%22%3A%7B%22type%22%3A%22BedAdapter%22%2C%22uri%22%3A%22https%3A%2F%2Fjbrowse.org%2Fdemos%2Falphagenome_test.bed%22%7D%7D%5D%2C%22views%22%3A%5B%7B%22type%22%3A%22LinearGenomeView%22%2C%22assembly%22%3A%22hg38%22%2C%22loc%22%3A%22chr1%3A47%2C189%2C833..47%2C259%2C832%22%2C%22tracks%22%3A%5B%22tal1_variants%22%5D%7D%5D%7D&sessionName=JBrowse+docs%3A+Oncogenic+TAL1+variantsThis view in a notebook, with jbrowse-anywidget. Swap a track's uri for your file.
from jbrowse_anywidget import JBrowseApp, fetch_hub
config = fetch_hub("https://jbrowse.org/ucsc/hg38/config.json")
app = JBrowseApp(
assemblies=config["assemblies"],
tracks=config.get("tracks", []) + [
{
"type": "VariantTrack",
"trackId": "tal1_variants",
"name": "Oncogenic TAL1 variants",
"assemblyNames": [
"hg38"
],
"adapter": {
"type": "BedAdapter",
"uri": "https://jbrowse.org/demos/alphagenome_test.bed"
}
}
],
views=[
{
"type": "LinearGenomeView",
"assembly": "hg38",
"loc": "chr1:47,189,833..47,259,832",
"tracks": [
"tal1_variants"
]
}
],
)
app # display the widgetThis view in your React 19 app, with @jbrowse/react-app2 and @jbrowse/core. Add your own files to tracks.
import { use } from 'react'
import { JBrowse } from '@jbrowse/react-app2'
import '@jbrowse/react-app2/styles.css'
import { addRelativeUris } from '@jbrowse/core/util/addRelativeUris'
const configUrl = "https://jbrowse.org/ucsc/hg38/config.json"
const configPromise = fetch(configUrl)
.then(res => res.json())
.then(config => {
addRelativeUris(config, new URL(configUrl))
return config
})
export default function Figure() {
const config = use(configPromise)
return (
<JBrowse
assemblies={config.assemblies}
tracks={[...(config.tracks ?? []), ...[
{
"type": "VariantTrack",
"trackId": "tal1_variants",
"name": "Oncogenic TAL1 variants",
"assemblyNames": [
"hg38"
],
"adapter": {
"type": "BedAdapter",
"uri": "https://jbrowse.org/demos/alphagenome_test.bed"
}
}
]]}
aggregateTextSearchAdapters={config.aggregateTextSearchAdapters}
configuration={config.configuration}
views={[
{
"type": "LinearGenomeView",
"assembly": "hg38",
"loc": "chr1:47,189,833..47,259,832",
"tracks": [
"tal1_variants"
]
}
]}
/>
)
}jbrowse-img draws this view as an SVG, no browser needed. Swap --config or a track for your own.
cat > tracks.json <<'JSON'
[
{
"type": "VariantTrack",
"trackId": "tal1_variants",
"name": "Oncogenic TAL1 variants",
"assemblyNames": [
"hg38"
],
"adapter": {
"type": "BedAdapter",
"uri": "https://jbrowse.org/demos/alphagenome_test.bed"
}
}
]
JSON
npx @jbrowse/img --config https://jbrowse.org/ucsc/hg38/config.json \
--trackConfigs tracks.json \
--assembly hg38 --loc chr1:47,189,833..47,259,832 \
--track tal1_variants \
--out figure.svgFor a PNG, --out figure.png (needs rsvg-convert: apt install librsvg2-bin, brew install librsvg).
The session below loads the hosted config with the plugin and these tracks and opens the locus with no predictions yet.
Goes at the top level of config.json, replacing any defaultSession there. See Default session.
{
"defaultSession": {
"name": "TAL1",
"views": [
{
"id": "alphagenome_lgv",
"type": "LinearGenomeView",
"assembly": "hg38",
"loc": "chr1:47,189,833..47,259,832",
"tracks": ["genes", "tal1_variants"]
}
]
}
}Replaces any defaultSession in config.json in the current folder. See JBrowse CLI with Desktop.
jbrowse set-default-session --session - << 'EOF'
{
"name": "TAL1",
"views": [
{
"id": "alphagenome_lgv",
"type": "LinearGenomeView",
"assembly": "hg38",
"loc": "chr1:47,189,833..47,259,832",
"tracks": ["genes", "tal1_variants"]
}
]
}
EOFOpen this session in JBrowse Web ↗
Needs JBrowse Desktop 5.0 or newer. If nothing opens, copy the link and paste it into Desktop's Open JBrowse Web link..., on the start screen or under File → Session.
https://jbrowse.org/code/jb2/main/?config=https%3A%2F%2Fjbrowse.org%2Fdemos%2Falphagenome%2Fconfig.json&session=json-%7B%22session%22%3A%7B%22name%22%3A%22TAL1%22%2C%22views%22%3A%5B%7B%22id%22%3A%22alphagenome_lgv%22%2C%22type%22%3A%22LinearGenomeView%22%2C%22assembly%22%3A%22hg38%22%2C%22loc%22%3A%22chr1%3A47%2C189%2C833..47%2C259%2C832%22%2C%22tracks%22%3A%5B%22genes%22%2C%22tal1_variants%22%5D%7D%5D%7D%7D&sessionName=JBrowse+docs+exampleAlphaGenome predictions… in the view menu opens the query panel, which takes four inputs:
- what to predict: any of the eleven output types, or a preset group
- which cell types and tissues: a search over the biosample catalog. This page uses K562 and GM12878 for the locus, and CD34+ progenitors for the variant
- how wide a window: 16 kb, 100 kb, 500 kb or 1 Mb, centered on the view
- a variant: left empty, the panel predicts the reference
A wide request takes minutes, and the browser polls until it finishes. The service keys each request by its content, so repeating a request this page already made returns at once.2
The panel adds predictions as session tracks whose adapters read the stored arrays through presigned URLs that expire within the hour. A track config copied into another session stops loading once they expire, so to share a prediction, re-open the panel there and repeat the query, which returns the same stored arrays with fresh URLs.
Stack two cell lines' TAL1 expression on one axis
Open the list of a finished prediction's tracks, often thousands, and stack two on one axis:
- Type
polyA plusinto the list's filter. - Tick K562 and GM12878.
- Click Add 2 selected to put both in one multi-wiggle track on a shared y-axis.
The panel stacks any tracks in the same units this way. For one track per pick, untick Stack on a shared scale.
STIL, to the right, is predicted in both lines, a sign that the GM12878 row loaded.
Stack the accessibility rows on one axis
Add four accessibility rows to the prediction:
- Type
DNaseinto the track filter and tick K562 and GM12878. - Type
ATACand tick both again; the ticks stay set when the filter changes. - Click Add 4 selected to put all four in one track on one axis.
The GM12878 rows have peaks too, at open chromatin that is not transcribed.
Add each cell line's splice junctions as arcs
Splice junctions come back as arcs joining exons, as in a sashimi plot. Add the K562 and GM12878 polyA junctions and zoom in to TAL1.3
Add the GM12878 contact map over the window
AlphaGenome predicts Hi-C-style contact maps for a set of cell lines, GM12878 among them. Add the GM12878 contact map and zoom out to the whole predicted megabase:
Score a TAL1 variant against the reference
In T-cell acute lymphoblastic leukemia (T-ALL), TAL1 is switched on in a lineage where it should be silent. One route is a small insertion upstream of the gene that creates a binding site. The variant track holds the variants reported in T-ALL patients and cell lines, most of them insertions at one site upstream of the gene.
Right-click any variant and choose Predict variant effect with AlphaGenome. The query panel opens with the variant loaded, and running it predicts the window twice, once for the reference and once with the variant.
The stored prediction is for the Jurkat insertion,
chr1:47239296 C>CCGTTTCCTAACC, in CD34+ common myeloid progenitors, the
closest AlphaGenome cell type to the CD34+ hematopoietic cells Mansour et al.
studied. To reach it, replace K562 in the biosample box with "common myeloid
progenitor, CD34-positive" and type the insertion into the variant box. Any
other variant or biosample makes a live API call.
The panel warns when the variant falls outside the window. In variant mode AlphaGenome reports only the junctions the variant could affect, so clear the variant to get the whole locus back.
Read the Jurkat insertion's effect as difference rows
A variant prediction returns each assay as two tracks: the reference and alternate curves together, and a difference row (alternate minus reference) where positive is a gain from the insertion.4 To read the differences:
- Add the CD34+ DNase, polyA plus RNA-seq and H3K27ac tracks.
- Zoom to TAL1 and the insertion, and close the reference and alternate tracks to keep the three difference rows.
- Untick Y axis... → Clip extreme outliers on the DNase difference row, because on a row this sparse the default clipping flattens the gain at the insertion.
Accessibility rises at the insertion. H3K27ac, the mark of an active enhancer, rises across the locus, and predicted transcription rises over the TAL1 exons.
See also
- Tutorial: RNA-seq visualization
- Tutorial: ChromHMM chromatin states
- Tutorial: Structural variants from Hi-C
- Tutorial: TP53 from prediction to crystal
- Config guide: Plugins
Citations
- Avsec et al. (2025). AlphaGenome: advancing regulatory variant effect prediction with a unified DNA sequence model
- Mansour et al. (2014). An oncogenic super-enhancer formed through somatic mutation of a noncoding intergenic element
Notes
-
The plugin is Apache-2.0. AlphaGenome's API is free for non-commercial use, and that restriction applies to the public instance and to any instance run with your own key. ↩
-
The service rounds the window to 4 kb before keying the request, because browser windows of different widths ask about the same locus in coordinates tens of bases apart. A cached result can therefore cover a window up to about 2 kb off the one asked for, and the track list names the interval returned. ↩
-
AlphaGenome returns tens of thousands of junctions for a megabase. The adapter loads them all and draws only those scoring 0.5 or more, which over one gene leaves the few strong arcs. The display colors arcs by strand and strokes them by score. ↩
-
AlphaGenome lays out the alternate prediction along the alternate sequence, 12 bases longer than the reference here. The plugin maps it back onto reference coordinates before subtracting, merging the inserted bases into the base they follow, as AlphaGenome's own variant scorers do. ↩
Feedback on this tutorial is welcome: contact us.