Skip to content
Data
Skill

/onekgpd

Query the 1000 Genomes Project dataset (3,202 whole-genome-sequenced individuals, GRCh38) at the level of individual participants. Use when a question is about individuals or variants in the 1000 Genomes Project cohort: which individuals carry variants matching specific criteria

From plugin
k-dense-ai-scientific-agent-skills-2
45k166 skills
Install
$ npx -y skills add K-Dense-AI/scientific-agent-skills --skill onekgpd --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/onekgpd

Context preview

The summary Claude sees to decide when to auto-load this skill.

Query the 1000 Genomes Project dataset (3,202 whole-genome-sequenced individuals, GRCh38) at the level of individual participants. Use when a question is about individuals or variants in the 1000 Genomes Project cohort: which individuals carry variants matching specific criteria

SKILL.md

onekgpd.SKILL.md
name: onekgpd
description: >
  Query the 1000 Genomes Project dataset (3,202 whole-genome-sequenced
  individuals, GRCh38) at the level of individual participants.
  Use when a question is about individuals or variants in the 1000 Genomes
  Project cohort: which individuals carry variants matching specific criteria
  in a gene or region, which individuals are homozygous-reference at a position,
  which variants exist in the dataset or carried by specified individuals
  in a gene or region, the relatedness between two specified individuals.
  Variants are returned with 1000 Genomes allele frequencies (AF),
  gnomAD v4.1 exome and genome AF, AlphaMissense score, and HGVSp annotations.
license: MIT
compatibility: Requires Python >=3.11. Variant and sample queries require outbound network access to the public 1000 Genomes query endpoint over TLS; the sample/population metadata commands run fully offline over a data file bundled in the skill. No credentials, API keys, or environment variables are used.
allowed-tools: Write Bash
metadata:
  version: "1.2"
  skill-author: Dnaerys

OneKGPd: Individual-Level Queries over the 1000 Genomes Project

Scope

This skill queries the 1000 Genomes Project dataset — the extended high-coverage cohort of 3,202 whole-genome-sequenced individuals, on the GRCh38 assembly. All results are drawn from this cohort, and sample names returned by the skill (for example `HG00096` or `NA21130`) identify its participants.

Queries resolve against the cohort's per-individual genotype data. This supports two complementary classes of question: selecting **variants** carried within a region (across the whole cohort or within a specified set of individuals), and selecting the **individuals** who carry variants matching given criteria. Variant selection can be filtered by allele frequency, predicted consequence, clinical significance, AlphaMissense classification, and the other annotation axes listed below. Relatedness between two named individuals is also available.

The genotype state in which a variant is carried — heterozygous or homozygous — is a criterion that queries may specify; results are returned as variants or as sample names, not as raw genotypes.

When to Use

**Use this skill when you need to:**

  • Find **variants** carried in a region or set of regions matching some criteria

across the whole cohort (`select-variants`).

  • Find **variants** carried in a region or set of regions matching some criteria

in specific set of individuals (`select-variants-in-samples`).

  • Find **which 1000 Genomes individuals** carry variants matching some criteria

in a region or set of regions (`select-samples`).

  • Count how many individuals carry specific variants (`count-samples`).
  • Restrict any variant query to **heterozygous-only or homozygous-only**

carriage, or query both together (default).

  • Identify which individuals are **homozygous reference** at a single position

(`select-samples-hom-ref`).

  • Determine the **relatedness** between two named 1000 Genomes individuals —

both the degree (twin / 1st / 2nd / 3rd / unrelated) and the KING kinship coefficient (`kinship`).

  • Get **dataset totals** — sample count, sex split, variant count, assembly

(`dataset-info`).

  • Variant selection can be specified by KGP allele frequency, gnomAD 4.1 exome and

gnomAD 4.1 genome allele frequency, AlphaMissense Score and AlphaMissense Class, ClinVar significance (202502), and VEP annotations (impact, biotype, feature type, variant class, consequences).

**Do NOT use this skill for:**

  • Resolving a gene symbol, rsID, or transcript to coordinates, or fetching

reference sequence. Resolve coordinates first (see Coordinate Provenance below), then query this skill with the resolved GRCh38 region.

  • Any cohort other than the 1000 Genomes Project — this skill serves only that

dataset.

Prerequisites

1. **`uv`**: This skill's script is run with `uv run`, which reads the script's inline dependency metadata and provisions an ephemeral environment. Ensure `uv` is installed and on PATH (https://docs.astral.sh/uv/). 2. **Data use terms**: The 1000 Genomes Project data is open; users should be aware of the 1000 Genomes Project / IGSR data-use terms (https://www.internationalgenome.org/data). 3. **Access constraints**: There is no API key, no `.env` file, and no rate-limit token to configure. 4. **No credentials required**

Core Rules

  • **Use the Wrappers**: ALWAYS execute the provided helper scripts rather than

constructing your own client calls or network requests. Use `scripts/onekgpd_api.py` for variant/sample/kinship queries (it handles the connection, streaming, pagination, and JSON serialization), and `scripts/onekgpd_meta.py` for sample/population metadata (offline, see [Sample & population metadata](#sample--population-metadata-offline)).

  • **Coordinates MUST be resolved against an authoritative source first** — see

[Coordinate Provenance](#coordinate-provenance-mandatory-first-step). This is mandatory, not advisory.

  • **Count before you select**: every variant and sample selection has a paired

counting command. Call the count command FIRST to size the result set, then select only if the count is manageable.

  • **Zygosity defaults to both**: selection and counting commands include both

heterozygous and homozygous carriage by default. Narrow with `--het-only` or `--hom-only` when the question is specifically about one state. (You do not need to pass anything to get both.)

  • **Output**: scripts write full JSON to a file (`--output`, default under

`/tmp/`) and print a concise summary to stdout. Do not read large JSON files into context — use `jq` or a small disposable `uv run python` snippet to extract fields.

Coordinate Provenance (MANDATORY FIRST STEP)

Before any region-based query, resolve the gene or feature

Read more
Ships withk-dense-ai-scientific-agent-skills-2

🔔 Claude Scientific Skills is now Scientific Agent Skills. Same skills, broader compatibility — now works with any AI agent that supports the open Agent Skills standard, not just Claude.

Get the whole plugin
Stats
44,851
Stars
4,066
Forks
Active
Maintenance
Python
Language
MIT
License
2d ago
Last commit
11mo ago
Created

Repo: K-Dense-AI/scientific-agent-skills