Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
google-deepmind avatar

Gnomad Database

  • 1.2k installs
  • 2.6k repo stars
  • Updated July 7, 2026
  • google-deepmind/science-skills

gnomad-database is a Google DeepMind science skill that retrieves gnomAD gene constraint metrics and variant allele frequencies via rate-limited wrapper scripts for developers building biological or medical AI prototypes

About

gnomad-database is a Google DeepMind science-skills module for querying the Genome Aggregation Database without hitting gnomAD APIs directly. Three uv-run helper scripts cover variant frequency by variant ID or rsID, gene constraint metrics including pLI and LOEUF (oe_lof_upper), and region or gene variant search with consequence filters. The skill mandates license notification to .licenses/gnomad_database_LICENSE.txt on first use and always routes queries through the bundled wrappers to enforce API rate limits gracefully. Outputs land as JSON files such as variant_frequency.json or gene_constraint.json for downstream agent reasoning. Reach for gnomad-database when you need population allele frequencies, loss-of-function intolerance scores, or regional variant lists—not somatic cancer tracking (COSMIC) or raw sequencing reads (ENA).

  • Fetches gene constraint metrics (pLI, LOEUF, and related scores) via GraphQL
  • Enforces a strict 10 queries-per-minute rate limit to respect API policy
  • Built as a reusable CLI script with argparse for easy integration into agent workflows
  • Depends on scienceskillscommon for standardized HTTP client behavior
  • Outputs structured JSON results to a specified file path

Gnomad Database by the numbers

  • 1,241 all-time installs (skills.sh)
  • +166 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #270 of 2,064 Data Science & ML skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/google-deepmind/science-skills --skill gnomad-database

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.2k
repo stars2.6k
Security audit3 / 3 scanners passed
Last updatedJuly 7, 2026
Repositorygoogle-deepmind/science-skills

How do you query gnomAD gene constraint metrics?

Quickly retrieve accurate gene constraint metrics like pLI and LOEUF from the gnomAD database for biological or medical AI prototypes.

Who is it for?

Bioinformatics developers and medical AI engineers who need gnomAD constraint and variant frequency data via scripted, rate-limited queries.

Skip if: Skip gnomad-database for somatic cancer mutations, patient genome analysis, or workflows that require raw sequencing read access.

When should I use this skill?

User needs gnomAD variant frequency, pLI/LOEUF constraint metrics, or gene/region variant search for a genomic prototype.

What you get

JSON files with allele frequencies, pLI/LOEUF constraint scores, and variant search results

  • variant_frequency.json
  • gene constraint JSON
  • region variant search JSON

By the numbers

  • Bundles 3 helper scripts for gnomAD queries
  • Supports variant lookup by chrom-pos-ref-alt ID or rsID

Files

SKILL.mdMarkdownGitHub ↗

gnomAD Database

Prerequisites

1. `uv`: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH. 2. User Notification: If LICENSE_NOTIFICATION.txt does not already exist in this skill directory then (1) prominently notify the user to check the terms at https://gnomad.broadinstitute.org/policies and https://gnomad.broadinstitute.org/data#api, then (2) create the file recording the notification text and timestamp.

Core Rules

  • Use the Wrapper: ALWAYS execute the provided helper scripts to query the

database rather than accessing the database directly. The scripts automatically enforce the gnomAD API rate limits gracefully.

  • Notification: If this skill is used, ensure this is mentioned in the

output.

Utility Scripts

All scripts are located in the scripts/ subdirectory of this skill's installation directory. When running them, use the full absolute path to the script (e.g. /path/to/gnomad_database/scripts/get_variant_frequency.py).

1. Variant Frequency. Retrieves global and ancestry-specific allele frequencies, homozygote counts, and Grpmax Filtering AF (faf95/faf99) for exome, genome, and total (exome+genome combined) data. The filtering allele frequency (FAF) is the maximum credible genetic ancestry group AF (lower bound of the 95% or 99% CI). Variant ID format must be chrom-pos-ref-alt (e.g., 1-55516888-G-GA). Alternately, you may provide an rsID.

# By variant ID:
uv run scripts/get_variant_frequency.py --variant_id {variant_id} [--dataset {dataset}] --output variant_frequency.json

# By rsID (e.g., rs1800562):
uv run scripts/get_variant_frequency.py --rsid {rsid} [--dataset {dataset}] --output variant_frequency.json

2. Gene Constraint. Retrieves constraint metrics for a gene. The response will explicitly contain pli, and the LOEUF score is represented by oe_lof_upper.

uv run scripts/get_gene_constraint.py --gene {gene_symbol} --output {gene_symbol}_constraint.json

3. Region/Gene Variant Search. Finds all variants in a region or gene.

# By region:
uv run scripts/search_variants.py --chrom {chrom} --start {start} --end {end} --output region_variants.json
# By gene:
uv run scripts/search_variants.py --gene {gene_symbol} --consequence {pLoF|missense} --output {gene_symbol}_variants.json

References

Further documentation on the data: https://gnomad.broadinstitute.org/data#api More general database documentation: https://gnomad.broadinstitute.org/help

Related skills

How it compares

Use gnomad-database over generic API prompts when you need scripted, rate-limited gnomAD constraint and frequency exports for agent pipelines.

FAQ

Which gnomAD metrics does gnomad-database return?

gnomad-database retrieves gene constraint metrics including pLI and LOEUF (reported as oe_lof_upper) plus global and ancestry-specific allele frequencies, homozygote counts, and filtering allele frequency for variants.

Must gnomad-database use the bundled scripts?

gnomad-database requires always executing the provided uv-run wrapper scripts instead of calling gnomAD APIs directly. The wrappers enforce rate limits and write JSON output files for each query type.

Is Gnomad Database safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Data Science & MLresearchautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.