Skip to main content

gwaslab-alphagenome

Data-only bridge between AlphaGenome and GWASLab. Fetches predictions and converts them to GWASLab track bundles. No plotting — use gl.plot_panels in GWASLab.

Install

pip install gwaslab gwaslab-alphagenome
export ALPHA_GENOME_API_KEY=your_key

Usage

import gwaslab as gl
import gwaslab_alphagenome as glag

region = (1, 156538803, 157538803)  # hg38

panels = [
    gl.Panel(
        "ag_tracks",
        region=region,
        ag_spec=glag.Spec("RNA_SEQ", ontology_terms=["UBERON:0002048"]),
        filled=True,
    ),
    gl.Panel(
        "ag_tracks",
        region=region,
        ag_spec=glag.Spec("ATAC", ontology_terms=["UBERON:0002048"]),
    ),
]

fig, axes = gl.plot_panels(panels, region=region, save="locus.png")

gl.plot_panels calls glag.extract_batch() automatically when panels use ag_spec=.

LD reference + variant effect (linked SNP)

ctx = glag.resolve_variant(mysumstats.data, region_ref="rs429358", build="38")

panels = [
    gl.Panel("ag_overlay", region=region, variant_context=ctx,
             ag_spec=glag.Spec("RNA_SEQ", mode="overlay", ontology_terms=["UBERON:0002107"])),
    mysumstats.Panel("region", region=region, region_ref=ctx.region_ref,
                     vcf_path="ld.vcf.gz", build="38"),
]
gl.plot_panels(panels, region=region, variant_positions=[ctx.pos])

API

Function Role
glag.Spec(...) Describe output type, mode, ontology
glag.resolve_variant(sumstats, region_ref) Link GWAS lead SNP to overlay fetch
glag.extract_batch(region, specs, ...) Batched fetch + bundle conversion
glag.extract(region, spec, ...) Single-spec extract

Requirements

  • hg38 harmonized sumstats for variant-linked plots
  • ALPHA_GENOME_API_KEY environment variable

Metadata

Release files for gwaslab-alphagenome 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 gwaslab-alphagenome 0.1.0
File Size Uploaded Provenance Actions
gwaslab_alphagenome-0.1.0.tar.gz 10.0 kB Without provenance Details for gwaslab_alphagenome-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 21.6 kB

Release files / gwaslab_alphagenome-0.1.0.tar.gz

Download URL gwaslab_alphagenome-0.1.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f5b0fee87949318ad11797b2b4181ea1c22247ac0df6d4db48aa9c0494e2f5e3
BLAKE2b-256 checksum
How to use checksums
8564c6bd7bd25e9c5a2c4d2b3e6660bcbf96f2dbd0d47b6b850131a4f4e826af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

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

Download URL gwaslab_alphagenome-0.1.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84bb08b8b171223edf70c5cf7e085a0a6d603488dbfbe4f596d5011e84fc8414
BLAKE2b-256 checksum
How to use checksums
781f537bd8064580aad421fe8a50a0f7fca79a189e9675b3bfed918723cc484c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Security for gwaslab-alphagenome 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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