Best for
- Find variants carried in a region or set of regions matching some criteria
- Find which 1000 Genomes individuals carry variants matching some criteria
- Count how many individuals carry specific variants (count-samples).
K-Dense-AI/scientific-agent-skills/skills/onekgpd/SKILL.md
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 individual
Decision brief
Query the 1000 Genomes Project dataset (3,202 whole-genome-sequenced individuals, GRCh38) at the level of individual participants.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill "skills/onekgpd"Inspect the Agent Skill "onekgpd" from https://github.com/K-Dense-AI/scientific-agent-skills/blob/e7ac42510774624f327003c95b6650e2883bc01d/skills/onekgpd/SKILL.md at commit e7ac42510774624f327003c95b6650e2883bc01d. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Before any region-based query, resolve the gene or feature to GRCh38 coordinates against an authoritative source (for example Ensembl), and query with those resolved coordinates. The assembly must be explicit, and a gene-range must be resolved to precise positions before use. Th…
Review the “Quick Start” section in the pinned source before continuing.
Review the “Step 1. Resolve coordinates against an authoritative source — see Coordinate Provenance.” section in the pinned source before continuing.
Review the “Step 2. Size the result set: how many individuals carry predicted likely-pathogenic” section in the pinned source before continuing.
uv run scripts/onekgpdapi.py select-samples \ --chrom chr17 --start 43044292 --end 43170245 \ --consequence MISSENSEVARIANT \ --alpha-missense-class AMLIKELYPATHOGENIC \ --output /tmp/samples.json
Permission review
The documentation asks the agent to run terminal commands or scripts.
**`uv`**: This skill's script is run with `uv run`, which reads the script'sThe documentation asks the agent to create, modify, or delete local files.
**Output**: scripts write full JSON to a file (`--output`, default underThe documentation asks the agent to run terminal commands or scripts.
then query its variants). Run `uv run scripts/onekgpd_meta.py <command>`.Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 31,966 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
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.
Use this skill when you need to:
select-variants).select-variants-in-samples).select-samples).count-samples).select-samples-hom-ref).kinship).dataset-info).Do NOT use this skill for:
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/)..env file, and no
rate-limit token to configure.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).--het-only
or --hom-only when the question is specifically about one state. (You do
not need to pass anything to get both.)--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.Before any region-based query, resolve the gene or feature to GRCh38 coordinates against an authoritative source (for example Ensembl), and query with those resolved coordinates. The assembly must be explicit, and a gene-range must be resolved to precise positions before use. This is structural, not advisory: there is no source-side guardrail that would catch a misplaced region, so an unverified coordinate produces results for an unintended location with no error.
# Resolve gene symbol -> GRCh38 region with an authoritative source FIRST,
# then pass the verified coordinates to the OneKGPd query below.
[!CAUTION] The dataset is GRCh38. A GRCh37 coordinate, or any region that does not correctly correspond to the intended feature on GRCh38, will return results for an unintended location without raising an error. Verify the assembly and the resolved coordinates before querying.
Match the question to the command. Counting commands are cheap and should precede their selection counterpart.
count-samples
then select-samplescount-variants
then select-variantscount-variants-in-samples then select-variants-in-samplescount-samples-hom-ref
then select-samples-hom-refkinshipdataset-infoAll variant- and sample-selection commands (count-variants,
select-variants, their -in-samples forms, count-samples, select-samples)
accept the same annotation filters. Different filter fields are combined with
AND; multiple values within one field are combined with OR. Enum values
are case-insensitive (e.g. missense_variant or MISSENSE_VARIANT).
These are selection criteria applied on the server. The fields returned on a selected variant are listed under Variant-returning commands; a criterion used for filtering is not necessarily echoed back on the returned variant.
--af-lt / --af-gt: 1000 Genomes dataset allele frequency bounds--gnomad-exomes-af-lt / --gnomad-exomes-af-gt: gnomAD v4.1 exome AF bounds--gnomad-genomes-af-lt / --gnomad-genomes-af-gt: gnomAD v4.1 genome AF bounds--clin-significance: ClinVar significance terms, CSV (e.g. PATHOGENIC,LIKELY_PATHOGENIC)--consequence: Sequence Ontology consequence terms, CSV (e.g. MISSENSE_VARIANT,STOP_GAINED)--impact: VEP impact, CSV (HIGH,MODERATE,LOW,MODIFIER)--variant-type, --feature-type, --bio-type: SO variant class / VEP feature / VEP biotype, CSV--alpha-missense-class: AM_LIKELY_BENIGN,AM_LIKELY_PATHOGENIC,AM_AMBIGUOUS (CSV)--alpha-missense-score-lt / --alpha-missense-score-gt: AlphaMissense score bounds--biallelic-only / --multiallelic-only--exclude-males / --exclude-females--min-len-bp / --max-len-bp: alternate-allele length bounds (bp)[!NOTE]
--alpha-missense-classand--alpha-missense-score-*are mutually exclusive (the engine ignores the class when a score bound is set).--biallelic-onlyand--multiallelic-onlyare mutually exclusive.--exclude-malesand--exclude-femalesare mutually exclusive. Setting a*-gtbound greater than or equal to its matching*-ltbound defines an empty range and will return nothing.
[!NOTE] Allele-frequency fields use
0.0to mean "not present in that source." So--gnomad-exomes-af-gt 0selects variants that are in gnomAD exomes; a returnedgnomad_exomes_afof0.0means the variant is absent from gnomAD exomes. The same convention for gnomAD genomes AF. Conversely,--gnomad-exomes-af-lt/--gnomad-genomes-af-ltbounds include unannotated variants: "AF < X in gnomAD" includes variants with gnomAD AF = 0, i.e. unannotated; pair it with--gnomad-*-af-gt 0to require presence in gnomAD.
[!NOTE]
am_scoreof0.0means not scored or not annotated by AlphaMissense - it does not meanbenign. A real AlphaMissense score is always greater than 0.
# Step 1. Resolve coordinates against an authoritative source — see Coordinate Provenance.
# example: BRCA1: chr17:43044292-43170245
# Step 2. Size the result set: how many individuals carry predicted likely-pathogenic
# missense variants in this region?
uv run scripts/onekgpd_api.py count-samples \
--chrom chr17 --start 43044292 --end 43170245 \
--consequence MISSENSE_VARIANT \
--alpha-missense-class AM_LIKELY_PATHOGENIC \
--output /tmp/count.json
# Step 3. If the count is manageable, list those individuals.
uv run scripts/onekgpd_api.py select-samples \
--chrom chr17 --start 43044292 --end 43170245 \
--consequence MISSENSE_VARIANT \
--alpha-missense-class AM_LIKELY_PATHOGENIC \
--output /tmp/samples.json
# Step 4: For that set of individuals, see the actual variants they carry.
uv run scripts/onekgpd_api.py select-variants-in-samples \
--chrom chr17 --start 43044292 --end 43170245 \
--samples HG03169,NA20506 \
--consequence MISSENSE_VARIANT --alpha-missense-class AM_LIKELY_PATHOGENIC \
--output /tmp/variants.json
Each command writes full JSON to a file (--output PATH, default a temp file)
and prints a concise stdout summary. All region/sample commands share: the
region input (--chrom/--start/--end with optional --ref/--alt, or one
or more repeated --region CHR:START-END), the zygosity flags
(--het-only/--hom-only, default both), and the annotation filters above.
The full per-flag tables live in
references/onekgpd_commands.md.
select-* return matching variants; count-* return an integer count.
count-variants — count variants in a region, cohort-wide.select-variants — select variants in a region, cohort-wide. Use --limit N
(hard cap, default 200) or --page-size N (retrieve the full set in
pages); the two are mutually exclusive. The summary flags truncated when
the cap is reached.count-variants-in-samples — as count-variants, restricted to
--samples NAME1,NAME2,... (required).select-variants-in-samples — as select-variants, restricted to
--samples NAME1,NAME2,... (required).Each returned variant carries these 22 keys: chr, start, end, ref,
alt, af, ac, an, hom_samples, het_samples, mis_samples,
hom_samples_fx, het_samples_fx, mis_samples_fx, hom_samples_mxy,
het_samples_mxy, mis_samples_mxy, gnomad_exomes_af, gnomad_genomes_af,
am_score, amino_acids, biallelic.
ClinVar significance and VEP consequence are filter criteria only and are not
returned. Full schema:
references/onekgpd_commands.md.
count-samples — count individuals carrying a matching variant in a region.select-samples — list the names of individuals carrying a matching variant.
Supports --skip N and --limit N. Returns names only; to see which
variants qualified an individual, feed the names into
select-variants-in-samples.Single position via --chrom + --position (not a region).
count-samples-hom-ref — count individuals with a 0/0 call at the position.
The count is a sentinel: -1 = no variant exists at that position at all;
0 = a variant exists but no individual is homozygous reference; >0 = the
number of homozygous-reference individuals. The summary states which case.select-samples-hom-ref — list the individuals with a 0/0 call at the position.kinship --sample1 NAME --sample2 NAME — relatedness between two named
individuals: the degree (TWINS_MONOZYGOTIC / FIRST_DEGREE /
SECOND_DEGREE / THIRD_DEGREE / UNRELATED) and the KING kinship
coefficient (phi_bwf).dataset-info — dataset totals: samples_total (3,202), female/male split,
variants_total, assembly (GRCh38), and the cohort breakdown. No region
required; doubles as a connectivity check.Population, sex, pedigree, and superpopulation questions are answered by a second
script, scripts/onekgpd_meta.py, from a data file bundled in the skill — no
network, no credentials, no coordinates. The sample IDs are the same names the
variant commands use, so the two layers compose (e.g. pick a cohort by population,
then query its variants). Run uv run scripts/onekgpd_meta.py <command>.
The cohort has 5 superpopulations (AFR, AMR, EAS, EUR, SAS) and 26
populations. Population/superpopulation values match case-insensitively by
short code or full name; sample IDs are case-sensitive.
sample-metadata --samples NA19240,HG00096 — family, gender, parents,
children, population, superpopulation, and phase3 status for the given samples.list-populations — all 26 populations with superpopulation and sample count
(use to discover valid values).list-superpopulations — the 5 superpopulations with sample count and
constituent populations.population-stats --populations YRI [--populations CHS …] — per-population sex
split, phase3 count, and trio membership. Repeat --populations for multiple
values (full names contain commas, so they are not comma-separated).superpopulation-summary --superpopulations EAS [--superpopulations EUR …] —
per-superpopulation totals with a per-population breakdown.select-samples-by-population --population YRI and/or --superpopulation AFR,
with optional --skip/--limit (default 0 / 50, max 3202) — the sample IDs in
a population and/or superpopulation; both given intersects. Feed the names into
select-variants-in-samples to see their variants.See references/onekgpd_commands.md for full argument tables and JSON output schemas.
# Step 1: resolve gene -> verified GRCh38 region (authoritative source).
# Step 2: count individuals carrying a qualifying variant in the region.
uv run scripts/onekgpd_api.py count-samples \
--chrom <chr> --start <start> --end <end> \
--consequence MISSENSE_VARIANT --alpha-missense-class AM_LIKELY_PATHOGENIC \
--output /tmp/n.json
# Step 3: list those individuals.
uv run scripts/onekgpd_api.py select-samples \
--chrom <chr> --start <start> --end <end> \
--consequence MISSENSE_VARIANT --alpha-missense-class AM_LIKELY_PATHOGENIC \
--output /tmp/who.json
# Step 4: for that set of individuals, see the actual variants they carry.
uv run scripts/onekgpd_api.py select-variants-in-samples \
--chrom <chr> --start <start> --end <end> \
--samples <name1,name2,...> \
--consequence MISSENSE_VARIANT --alpha-missense-class AM_LIKELY_PATHOGENIC \
--output /tmp/variants.json
# After identifying a position of interest (verified coordinate):
uv run scripts/onekgpd_api.py count-samples-hom-ref \
--chrom <chr> --position <pos> --output /tmp/homref_n.json
uv run scripts/onekgpd_api.py select-samples-hom-ref \
--chrom <chr> --position <pos> --output /tmp/homref.json
Alternatives
coreyhaines31/marketingskills
When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program
event4u-app/agent-config
Grounded design brief from the adopted corpus — style, WCAG-checked color tokens, typography, layout pattern, anti-patterns. Use on ui-design-brief or any which-style/palette/font/chart decision.
event4u-app/agent-config
Use BEFORE writing or editing any non-trivial UI — inventories components, design tokens, shadcn primitives, and reusable patterns into state.ui_audit. Hard gate for the ui directive set.
event4u-app/agent-config
Use BEFORE writing/changing tests, adding mocks, or test-only methods on production classes — vs mocking-the-mock, production pollution, partial mocks, and overfit/tautological assertions