gnomad-database — скилл для Claude Code: что делает и как установить
Скилл запрашивает данные gnomAD о частотах вариантов, ограничениях генов и вариантах в регионах. Нужен для генетических исследовательских задач.
npx skills add google-deepmind/science-skills --skill gnomad-database -a claude-code
npx skills add google-deepmind/science-skills --skill gnomad_database -a claude-codeЧто делает gnomad-database
Скилл обращается к Genome Aggregation Database через вспомогательные скрипты. Он получает частоту аллеля для варианта по variant_id или rsID, включая данные по происхождению, число гомозигот и FAF. Отдельный скрипт возвращает для гена pli и oe_lof_upper, а поиск по региону или гену находит варианты с последствиями pLoF или missense. Также скилл предназначен для запросов структурных вариантов.
Для работы требуется uv, установленный в PATH. Перед первым использованием скилл проверяет наличие .licenses/gnomad_database_LICENSE.txt, просит проверить условия gnomAD и сохраняет уведомление с временной отметкой. Это повод заранее проверить доступность uv. Для запросов используются get_variant_frequency.py, get_gene_constraint.py и search_variants.py; они запускаются через uv run и записывают результат в JSON.
Какие задачи решает
- определить частоту конкретного генетического варианта
- получить показатели ограничений для гена
- найти варианты в гене или заданном регионе
- запросить структурные варианты
- сопоставить вариант по
rsIDили геномным координатам
Примеры запросов агенту
- Проверь частоту варианта
1-55516888-G-GAчерез gnomAD и сохрани результат вvariant_frequency.json. - Получи показатели
pliиoe_lof_upperдля генаBRCA1вBRCA1_constraint.json. - Найди в гене
BRCA1варианты с последствиемpLoFи запиши их вBRCA1_variants.json.
Как установить gnomad-database
1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill gnomad-database -a claude-codenpx skills add google-deepmind/science-skills --skill gnomad_database -a claude-code2Вручную: положить файлы
~/.claude/skills/gnomad_database/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/gnomad_database/
1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill gnomad_database -a codex2Вручную: положить файлы
.agents/skills/gnomad_database/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill gnomad_database -a cursor2Вручную: положить файлы
.cursor/skills/gnomad_database/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install google-deepmind/science-skills gnomad_database2Вручную: положить файлы
.github/skills/gnomad_database/SKILL.md1Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill gnomad_database -a gemini-cli2Командой платформы
gemini skills install https://github.com/google-deepmind/science-skills --path skills/gnomad_databaseВручную: положить файлы
.devin/skills/gnomad_database/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add google-deepmind/science-skills --skill gnomad_database -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о gnomad-database
Как установить gnomad-database в Claude Code?
Выполните npx skills add google-deepmind/science-skills --skill gnomad-database -a claude-code, затем проверьте файл ~/.claude/skills/gnomad_database/SKILL.md.
Что делает gnomad-database?
Скилл запрашивает частоты генетических вариантов, показатели pli и oe_lof_upper, а также варианты в генах и регионах через gnomAD.
Что нужно для работы gnomad-database?
Нужен uv в PATH. При первом использовании также требуется проверить условия gnomAD; уведомление сохраняется в .licenses/gnomad_database_LICENSE.txt.
Исходный текст
SKILL.md · Apache-2.0
---
name: gnomad-database
description: >
Query the Genome Aggregation Database (gnomAD). Use when determining the
rarity or allele frequency of specific genetic variants, retrieving gene
constraint metrics (pLI, LOEUF) to assess loss-of-function intolerance,
finding variants in a genomic region or gene, or querying structural variants.
Don't use for analyzing individual patient genomes, tracking somatic mutations
in cancer (use COSMIC), or requesting raw sequencing reads (use ENA).
---
# 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 .licenses/gnomad_database_LICENSE.txt does not
already exist in the workspace root 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`.
```bash
# 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`.
```bash
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.
```bash
# 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
© google-deepmind · Apache-2.0 · google-deepmind/science-skills