onekgpd – skill Dữ liệu & Khoa học cho agent AI
Truy vấn bộ dữ liệu 1000 Genomes Project (3.202 cá thể đã giải trình tự toàn bộ bộ gen, GRCh38) ở cấp độ từng cá thể tham gia. Dùng khi câu hỏi liên quan đến cá thể hoặc biến thể trong nhóm 1000 Genomes Project: cá thể nào mang biến thể khớp tiêu chí cụ thể trong một gen hoặc vùng, cá thể nào
Cài skill onekgpd bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/onekgpd-59fa7.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /onekgpd – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/onekgpd-59fa7.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $onekgpd – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/onekgpd-59fa7.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /onekgpd – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/onekgpd-59fa7.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /onekgpd – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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.
The public service is TLS gRPC at db.dnaerys.org:443, accessed with
dnaerys 0.2.1 (Python 3.11+); it is not a REST base URL. The maintained
service snapshot advertises VEP 115 / GENCODE 49, ClinVar 202502, and gnomAD
4.1. These are the service's annotation releases, not the latest release of
each upstream resource. Record them when interpreting results.
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. Timeouts: network commands use --timeout 30 seconds per RPC by default.
A positive finite override is allowed. Pagination makes several RPCs and
retryable failures retry the whole fetch up to three times, so this is not
a deadline for the whole command.
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. --page-size retrieves every page but accumulates all
variants in RAM; it is not a bounded-memory export. Size the query first.
- Check completeness:
result_incomplete=truemeans results cannot support
a definitive zero/absence claim. Re-run after service recovery. For capped
variant selections, truncated=true means the limit was reached and more
records may exist, even if the cluster result itself was complete.
Coordinate Provenance (MANDATORY FIRST STEP)
Before any region-based query, resolve the gene or feature to GRCh38
coordinates against an authoritative source (for example Ensembl or NCBI), and query
with those resolved coordinates. Inputs are 1-based, inclusive: a BED interval
[start0, end0) becomes start=start0+1, end=end0. Record the source accession,
annotation release, and retrieval date; gene boundaries can differ by annotation
release even on the same assembly. 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.
Command Selection Guide
Match the question to the command. Counting commands are cheap and should
precede their selection counterpart.
- Which individuals carry matching variants in a region →
count-samples
then select-samples
- Which variants are carried in a region, cohort-wide →
count-variants
then select-variants
- Which variants are carried in a region, within a named set of individuals →
count-variants-in-samples then select-variants-in-samples
- Who is homozygous-reference at a single position →
count-samples-hom-ref
then select-samples-hom-ref
- Relatedness (degree + coefficient) between two named individuals →
kinship
- Dataset totals (sample count, sex split, variant total, assembly) →
dataset-info
Cohort interpretation
The 3,202-sample cohort includes relatives: the additional 698 high-coverage
samples extend the original 2,504-sample panel. Carrier counts therefore are
not counts of independent observations, and cohort AF is not a population
prevalence estimate. For association or frequency comparisons, document the
selected populations and relatedness policy; use the bundled pedigree metadata
and kinship when choosing or auditing the analysis set. See the
[IGSR cohort announcement](https://www.internationalgenome.org/announcements/3202-samples-at-high-coverage-from-NYGC/).
Annotation filters (shared across variant and sample selection/counting)
All 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 und
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- deep-research – Thực hiện một cuộc nghiên cứu bài bản, đa nguồn cho câu hỏi hoặc quyết định quan trọng…
- jupyter-notebook – Lặp lại việc viết Python qua kernel Jupyter đang chạy (hamelnb).
- schema – Khi người dùng muốn thêm, sửa hoặc tối ưu schema markup và dữ liệu có cấu trúc trên…
- ontology-term-resolution – Chuyển nhãn khoa học dạng văn bản tự do thành ID thuật ngữ ontology và kiểm tra các…
- lambda-labs – Các instance GPU đám mây theo yêu cầu để huấn luyện ML.
- pacsomatic – Chuẩn bị và khởi chạy quy trình genomics nf-core/pacsomatic ghép cặp khối u-bình thường…
- llama-cpp – Suy luận GGUF cục bộ với llama.cpp và khám phá mô hình trên HF Hub.
- paper-lookup – Tìm kiếm trên 18 API học thuật để tìm bài báo, preprint, trích dẫn, toàn văn truy cập…