Agent skill

Variant Population Frequency

by InternScience in InternScience/scp

Query gnomAD for variant allele frequency across populations.

MITAuto-check passed

Install Variant Population Frequency

skills CLI
$ npx skills add InternScience/scp --skill variant-population-frequency -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install InternScience/scp variant-population-frequency --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/InternScience/scp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/variant-population-frequency .claude/skills/variant-population-frequency && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
variant-population-frequency
GitHub stars
169
Used in
1 other repo
Token cost
~609 tokens
SKILL.md length
8 words
Files
1
Skills in repo
73
Repo updated
First seen
Licence
MIT

At a glance

Query gnomAD for variant allele frequency across populations.

  • Reaches api.genohub.org and gnomad.broadinstitute.org

What it does

Variant Population Frequency is an agent skill from InternScience/scp. Query gnomAD for variant allele frequency across populations. Uses FAVOR to convert rsID→variantid first, then queries gnomAD.

Its SKILL.md is about 610 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

Example prompts

  • “/variant-population-frequency”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit cea5398. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are tex and python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.genohub.org
    • gnomad.broadinstitute.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Variant Population Frequency loads about 609 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 8 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~609

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from InternScience/scp at commit cea5398, republished under its MIT licence (© InternScience). 8 words, ~609 tokens.

Download SKILL.mdSave it as .claude/skills/variant-population-frequency/SKILL.md (or your agent's skills folder).
name
variant-population-frequency
description
Query gnomAD for variant allele frequency across populations. Uses FAVOR to convert rsID→variant_id first, then queries gnomAD.
license
MIT license
metadata.skill-author
PJLab

gnomAD Population Frequency

Usage

Tool Description
tex
Step 1: Query FAVOR to convert rsID → chr-pos-ref-alt format.
API: GET https://api.genohub.org/v1/rsids/{rs_id}
Step 2: Query gnomAD GraphQL API with the variant_id.
API: POST https://gnomad.broadinstitute.org/api (GraphQL)
Args:
    rs_id (str): dbSNP rsID (e.g. "rs7412")
Return:
    Overall AF, population-specific AF (exome + genome), homozygote counts.
Query Example
python
import requests

rs_id = "rs7412"

# ── Step 1: FAVOR 获取 variant_id (chr-pos-ref-alt) ──
# 注意:FAVOR 可能返回多个变异(多等位基因位点),需遍历所有结果
favor_url = f"https://api.genohub.org/v1/rsids/{rs_id}"
favor_resp = requests.get(favor_url, timeout=30).json()
if not isinstance(favor_resp, list):
    favor_resp = [favor_resp]

variant_ids = [item.get("variant_vcf", "") for item in favor_resp if item.get("variant_vcf")]
print(f"[FAVOR] 该rsID对应 {len(variant_ids)} 个变异: {variant_ids}")

# ── Step 2: gnomAD 查询人群频率(遍历所有变异) ──
query = """
query VariantQuery($variantId: String!) {
  variant(variantId: $variantId, dataset: gnomad_r4) {
    variant_id
    rsid
    exome {
      ac
      an
      af
      ac_hom
      populations { id ac an ac_hom }
    }
    genome {
      ac
      an
      af
      ac_hom
      populations { id ac an ac_hom }
    }
  }
}
"""

for variant_vcf in variant_ids:
    print(f"\n── 查询 {variant_vcf} ──")
    resp = requests.post(
        "https://gnomad.broadinstitute.org/api",
        json={"query": query, "variables": {"variantId": variant_vcf}},
        timeout=30
    ).json()

    v = resp.get("data", {}).get("variant", {})
    if not v:
        print(f"[gnomAD] {variant_vcf}: 未找到数据")
        continue
    print(f"[gnomAD] variant: {v.get('variant_id')}, rsid: {v.get('rsid')}")

    for source in ["exome", "genome"]:
        d = v.get(source, {})
        if d:
            print(f"[gnomAD] {source}: AF={d.get('af')}, AC={d.get('ac')}, AN={d.get('an')}, Hom={d.get('ac_hom')}")
            for pop in (d.get("populations") or []):
                if pop.get("an", 0) > 0:
                    af = pop["ac"] / pop["an"]
                    print(f"  {pop['id']}: AF={af:.6f}, AC={pop['ac']}, AN={pop['an']}")

© InternScience, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/variant-population-frequency of InternScience/scp.

Open the folder on GitHubat commit cea5398

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in InternScience/scp, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Variant Population Frequency next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Variant Population Frequency compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Variant Population Frequency this skillInternScience/scp1691 repos~609Automated safety check: PassMIT
Bio Clinical Databases Gnomad Frequenciesmajiayu000/claude-skill-registry6661 repos~1.2kAutomated safety check: PassMIT
Annotating Variantsmaziyarpanahi/openmed5.5k—~2.1kAutomated safety check: PassApache-2.0
Bio Population Genetics Scikit Allel AnalysisGPTomics/bioSkills1.2k1 repos~5kAutomated safety check: PassMIT
Bio Clinical Databases Gnomad FrequenciesGPTomics/bioSkills1.2k2 repos~6.2kAutomated safety check: PassMIT
Variant AnnotationClawBio/ClawBio1.2k1 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • Bio Clinical Databases Gnomad Frequencies

    majiayu000/claude-skill-registry

    Query gnomAD for population allele frequencies to assess variant rarity.

    666 GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed
  • Annotating Variants

    maziyarpanahi/openmed

    Annotates VCF variants and normalizes HGVS nomenclature with public, license-free annotators (Ensembl VEP REST, VEP/SnpEff/ANNOVAR offline) and links variants to gnomAD population frequencies and…

    5.5k GitHub stars~2.1k tokensUpdated today
    Research & ScienceAuto-check passed
  • In-memory Python population genetics with scikit-allel - GenotypeArray/HaplotypeArray/AlleleCountsArray, diversity (pi, theta, Tajima's D), SFS, FST (Weir-Cockerham, Hudson, Patterson), f3/D…

    1.2k GitHub starsUsed in 1 repo~5k tokens
    Data & AnalyticsAuto-check passed
  • Queries gnomAD v4 (807k samples), v3, v2.1.1, and constraint metrics with grpmax FAF95, bottleneck-group exclusion, LOEUF interpretation, SV/CNV/mtDNA catalogs, and Whiffin max-credible-AF framework.

    1.2k GitHub starsUsed in 2 repos~6.2k tokens
    Research & ScienceAuto-check passed
  • Variant Annotation

    ClawBio/ClawBio

    Annotate VCF variants with Ensembl VEP REST, ClinVar significance, gnomAD/population frequency context, and prioritized variant ranking.

    1.2k GitHub starsUsed in 1 repo~2.8k tokens
    Research & ScienceAuto-check passed
  • Gene and region-based rare-variant aggregation - burden/collapsing, SKAT, SKAT-O, ACAT-V/ACAT-O, annotation-weighted STAAR - with regenie (--vc-tests), SAIGE-GENE+, and the SKAT R package.

    1.2k GitHub starsUsed in 1 repo~4.7k tokens
    Research & ScienceAuto-check passed

More from InternScience/scp

All 73 skills in this repo
  • Given an rsID, query multiple databases (dbSNP, FAVOR, GWAS Catalog, ClinVar, gnomAD, PharmGKB, ClinGen) for comprehensive annotation.

    169 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Drugsda Esmfold

    InternScience/scp

    Use ESMFold model to predict 3D structure of the input protein sequence.

    169 GitHub starsUsed in 2 repos~721 tokens
    Auto-check passed
  • Drugsda Prosst

    InternScience/scp

    Given a protein sequence and its structure, employ ProSST model to predict mutation effects and obtain the top-k mutated sequences.

    169 GitHub starsUsed in 2 repos~949 tokens
    Auto-check passed
  • Calculate atmospheric parameters including Coriolis parameter, geostrophic wind, heat index, potential temperature, and dewpoint for meteorology and climate science.

    169 GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Biomedical Web Search

    InternScience/scp

    Search biomedical literature and web content using Tavily search engine for research and clinical information.

    169 GitHub starsUsed in 1 repo~598 tokens
    Auto-check passed
  • Calculate buoyancy forces and acceleration for fluid mechanics and hydrodynamics analysis.

    169 GitHub starsUsed in 1 repo~540 tokens
    Auto-check passed

Questions about Variant Population Frequency

What does Variant Population Frequency do?

Query gnomAD for variant allele frequency across populations. Variant Population Frequency is an agent skill from InternScience/scp. Query gnomAD for variant allele frequency across populations.

How do I install Variant Population Frequency in Claude Code?

Run `npx skills add InternScience/scp --skill variant-population-frequency -a claude-code`. Or copy the skill folder (skills/variant-population-frequency in InternScience/scp) into .claude/skills/variant-population-frequency in your project. Claude Code loads it when a task matches its description.

How do I install Variant Population Frequency in Codex?

Run `npx skills add InternScience/scp --skill variant-population-frequency -a codex`. Or copy the skill folder (skills/variant-population-frequency in InternScience/scp) into .agents/skills/variant-population-frequency in your project. Codex loads it when a task matches its description.

Can I use Variant Population Frequency in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add InternScience/scp --skill variant-population-frequency -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/variant-population-frequency, .gemini/skills/variant-population-frequency, .github/skills/variant-population-frequency and .opencode/skills/variant-population-frequency in your project.

What does Variant Population Frequency need to run?

SKILL.md names no scripts, command-line tools or credentials: Variant Population Frequency is instructions for the agent only. Our summary lists: Python 3.

Does Variant Population Frequency access the network?

SKILL.md names 2 domains. In commands or code: api.genohub.org and gnomad.broadinstitute.org; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Variant Population Frequency safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Variant Population Frequency use?

Variant Population Frequency is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Variant Population Frequency use?

About 609 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Variant Population Frequency?

Skills that share tags, products or a category with Variant Population Frequency: Bio Clinical Databases Gnomad Frequencies (majiayu000/claude-skill-registry, 666 stars), Annotating Variants (maziyarpanahi/openmed, 5.5k stars), Bio Population Genetics Scikit Allel Analysis (GPTomics/bioSkills, 1.2k stars) and Bio Clinical Databases Gnomad Frequencies (GPTomics/bioSkills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Variant Population Frequency?

InternScience (a GitHub organization) maintains it in InternScience/scp, which has 169 GitHub stars. The repository holds 73 skills in this directory. The repository was last updated on June 3, 2026.

Source: InternScience/scp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.