К основному содержанию
скилл CX Codex

tooluniverse-population-genetics-1000genomes — скилл для Claude Code

Скилл tooluniverse-population-genetics-1000genomes для анализа генетического разнообразия через проект 1000 Genomes.

Apache-2.0 235 установок ★ 1 798 обновлён 2026-10-24

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add mims-harvard/ToolUniverse --skill tooluniverse-population-genetics-1000genomes -a claude-code
Открыть на GitHub

Что делает tooluniverse-population-genetics-1000genomes

Скилл даёт доступ к IGSR — каталогу 1000 Genomes с информацией о 2709 образцах из 26 популяций. Через него можно искать популяции по коду (YRI, GBR, CHB) или континентальному происхождению (AFR, EUR, EAS, AMR, SAS), получить метаданные образцов и найти варианты, картированные в GWAS-каталоге.

Внутри четыре основных операции: поиск популяций по происхождению или названию, поиск образцов в выбранной популяции, список доступных сборок данных (включая высокопокрытийную 30x на GRCh38) и интеграция с GWAS для анализа стратификации по популяциям. Скилл выполняет вычисления: пишет код на Python с pandas и scipy, запускает его через Bash и возвращает результаты, не описывая, что он будет делать.

Какие задачи решает

  • найти все африканские популяции в 1000 Genomes
  • сравнить частоты аллелей варианта между европейцами и восточноазиатами
  • получить образцы из конкретной популяции для локального анализа
  • связать GWAS-ассоциацию с популяционной стратификацией

Примеры запросов агенту

  • Выведи все образцы из YRI популяции и их метаданные
  • Найди варианты гена TCF7L2 в GWAS-каталоге и покажи частоты в афроамериканской выборке
  • Какие EUR популяции есть в 1000 Genomes и сколько образцов в каждой

Как установить tooluniverse-population-genetics-1000genomes

1Через Skills CLI (Vercel)

npx skills add mims-harvard/ToolUniverse --skill tooluniverse-population-genetics-1000genomes -a claude-code

2Вручную: положить файлы

~/.claude/skills/tooluniverse-population-genetics-1000genomes/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/tooluniverse-population-genetics-1000genomes/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о tooluniverse-population-genetics-1000genomes

Как установить tooluniverse-population-genetics-1000genomes в Claude Code?

Выполни npx skills add mims-harvard/ToolUniverse --skill tooluniverse-population-genetics-1000genomes -a claude-code, затем открой ~/.claude/skills/tooluniverse-population-genetics-1000genomes/SKILL.md для проверки.

Что делает скилл tooluniverse-population-genetics-1000genomes?

Ищет популяции и образцы в 1000 Genomes по континентальному происхождению (африканская, европейская, восточноазиатская, американская, южноазиатская), выводит частоты вариантов и связывает результаты с GWAS-ассоциациями для анализа стратификации.

Чем скилл отличается от других источников частот аллелей вроде gnomAD?

1000 Genomes имеет другой состав выборки и фокусируется на популяционном разнообразии; gnomAD включает большее число образцов и используется для оценки редкости варианта в общей популяции. Выбирай 1000 Genomes, если нужна анализ в разрезе населений конкретного происхождения.

Исходный текст

SKILL.md · Apache-2.0
---
name: tooluniverse-population-genetics-1000genomes
description: Population genetics using the 1000 Genomes Project (IGSR) — superpopulation/population search, sample metadata, variant frequencies across AFR/AMR/EAS/EUR/SAS, ancestry-specific analyses. Use for ancestry comparison, population-aware allele frequency lookups, and 1000-Genomes-cohort-specific analyses (distinct from gnomAD which has different sample composition).
triggers:
  - keywords: [1000 Genomes, IGSR, population, superpopulation, AFR, AMR, EAS, EUR, SAS, YRI, GBR, CHB, population stratification, ancestry, admixture, allele frequency, population genetics]
  - patterns: ["population code", "population stratification", "ancestral population", "1000 Genomes sample", "continental ancestry", "superpopulation filter"]
disable-model-invocation: true
---

## COMPUTE, DON'T DESCRIBE
When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it.

# Population Genetics with 1000 Genomes (IGSR)

Use IGSR tools to search 1000 Genomes populations and samples, explore data collections, and
combine with GWAS tools for population-stratified analysis.

## When to Use

- "List all African (AFR) populations in the 1000 Genomes Project"
- "Find samples from the YRI (Yoruba) population"
- "What 1000 Genomes data collections are available?"
- "Which GWAS SNPs for type 2 diabetes have population-specific effects?"
- "Find all SNPs mapped to TCF7L2 in GWAS studies"

## NOT for (use other skills instead)

- Allele frequencies from gnomAD -> Use `tooluniverse-population-genetics`
- ClinVar / OMIM variant interpretation -> Use `tooluniverse-variant-interpretation`
- GWAS fine-mapping -> Use `tooluniverse-gwas-finemapping`

---

## Phase 1: Search 1000 Genomes Populations

**IGSR_search_populations**: `superpopulation` (string/null, one of AFR/AMR/EAS/EUR/SAS), `query` (string/null, free-text search by name), `limit` (int).
Returns `{status, data: {total, populations: [{code, name, description, sample_count, superpopulation_code, superpopulation_name, latitude, longitude}]}, metadata: {source, filter_superpopulation, filter_query}}`.

Superpopulation codes:
| Code | Ancestry |
|------|----------|
| AFR | African |
| AMR | Admixed American |
| EAS | East Asian |
| EUR | European |
| SAS | South Asian |

```json
// List all AFR populations
{"superpopulation": "AFR", "limit": 10}

// Search by name (free-text)
{"query": "Yoruba", "limit": 5}

// List all populations
{"limit": 26}
```

Response example:
```json
{
  "status": "success",
  "data": {
    "total": 3,
    "populations": [
      {"code": "YRI", "name": "Yoruba", "description": "Yoruba in Ibadan, Nigeria",
       "sample_count": 188, "superpopulation_code": "AFR", "superpopulation_name": "African Ancestry"}
    ]
  }
}
```

---

## Phase 2: Search Samples by Population

**IGSR_search_samples**: `population` (string/null, population code e.g. "YRI"), `data_collection` (string/null, collection title), `sample_name` (string/null, specific sample e.g. "NA12878"), `limit` (int).
Returns `{status, data: {total, samples: [{name, sex, biosample_id, populations: [{code, name, superpopulation}], data_collections: [...]}]}}`.

```json
// Find all YRI samples
{"population": "YRI", "limit": 10}

// Look up the reference sample NA12878
{"sample_name": "NA12878", "limit": 1}

// Find samples in the 30x high-coverage collection
{"data_collection": "1000 Genomes 30x on GRCh38", "limit": 5}
```

NOTE: `population` takes a population code (e.g. "YRI", "GBR", "CHB"), not a superpopulation code. Use IGSR_search_populations first to get population codes if starting from a superpopulation.

---

## Phase 3: List Data Collections

**IGSR_list_data_collections**: `limit` (int).
Returns `{status, data: {total, collections: [{code, title, short_title, sample_count, population_count, data_types, website}]}}`.

```json
{"limit": 20}
```

Key collections available (18 total):
| Collection | Description | Data Types |
|------------|-------------|------------|
| 1000 Genomes on GRCh38 | 2709 samples, 26 populations | sequence, alignment, variants |
| 1000 Genomes 30x on GRCh38 | High-coverage resequencing | sequence, alignment, variants |
| 1000 Genomes phase 3 release | Original phase 3 | sequence, alignment, variants |
| Human Genome Structural Variation Consortium | HGSVC SV discovery | sequence, alignment |
| MAGE RNA-seq | RNA-seq data | - |
| Geuvadis | Expression + genotype | - |

---

## Phase 4: GWAS Context for Population Stratification

### Search GWAS associations for a trait

**gwas_search_associations**: `trait` (string, free text), `limit` (int).
Returns GWAS associations with rsID, p-value, mapped genes, EFO trait IDs.

```json
{"trait": "type 2 diabetes", "limit": 10}
```

### Get variants for a specific trait (by EFO ID)

**gwas_get_variants_for_trait**: `trait` (string, EFO ID e.g. "EFO_0001645"), `limit` (int).

```json
{"trait": "EFO_0001645", "limit": 10}
```

### Find SNPs in a gene from GWAS catalog

**gwas_get_snps_for_gene**: `gene_symbol` (string), `limit` (int).
Returns SNPs mapped to the gene with rsIDs, genomic positions, functional classes.

```json
{"gene_symbol": "TCF7L2", "limit": 10}
```

---

## Workflow: Population Stratification in GWAS

Step 1 -- Find populations of interest:
```json
// Get all EUR populations
{"superpopulation": "EUR", "limit": 10}
// -> Returns codes like GBR, FIN, CEU, TSI, IBS
```

Step 2 -- Get samples from target population:
```json
// Get YRI samples (AFR)
{"population": "YRI", "limit": 100}
```

Step 3 -- Get GWAS SNPs for the gene or trait:
```json
// GWAS hits for TCF7L2 (T2D gene)
{"gene_symbol": "TCF7L2", "limit": 20}
```

Step 4 -- Cross-reference with population data for stratification analysis.

---

## Common Population Codes

| Code | Population | Superpopulation |
|------|-----------|-----------------|
| YRI | Yoruba in Ibadan, Nigeria | AFR |
| LWK | Luhya in Webuye, Kenya | AFR |
| GWD | Gambian Mandinka | AFR |
| CEU | Utah residents (CEPH) | EUR |
| GBR | British in England/Scotland | EUR |
| FIN | Finnish in Finland | EUR |
| TSI | Toscani in Italia | EUR |
| CHB | Han Chinese in Beijing | EAS |
| JPT | Japanese in Tokyo | EAS |
| CHS | Southern Han Chinese | EAS |
| MXL | Mexican Ancestry in LA | AMR |
| PUR | Puerto Rican in Puerto Rico | AMR |
| GIH | Gujarati Indian in Houston | SAS |
| PJL | Punjabi from Lahore | SAS |

---

## Reasoning Framework for Result Interpretation

### Evidence Grading

| Grade | Criteria | Example |
|-------|----------|---------|
| **Strong** | AF difference > 0.2 across superpopulations, GWAS p < 5e-8, replicated in multiple cohorts | rs7903146 (TCF7L2) with AF = 0.30 EUR vs 0.05 EAS, GWAS p = 1e-40 |
| **Moderate** | AF difference 0.05-0.2, GWAS p < 5e-8 in one ancestry, nominal in others | Variant with AF = 0.15 AFR vs 0.08 EUR, GWAS p < 5e-8 in EUR only |
| **Weak** | AF difference < 0.05, GWAS p < 5e-8 but single study, no cross-ancestry replication | Common variant with similar AF across populations, significant in one cohort |
| **Population-specific** | Variant common (AF > 0.01) in one superpopulation, rare (AF < 0.01) in others | Sickle cell variant (rs334) AF ~0.10 in AFR, < 0.001 elsewhere |

### Interpretation Guidance

- **Allele frequency interpretation by ancestry**: Allele frequencies vary across superpopulations (AFR, AMR, EAS, EUR, SAS) due to genetic drift, selection, and demographic history. AFR populations have the highest genetic diversity and longest haplotypes broken by recombination. Disease-risk alleles may be common in one ancestry and rare in another, leading to differential genetic risk across populations.
- **Fst significance thresholds**: Fst measures population differentiation (0 = no differentiation, 1 = complete fixation of different alleles). Global Fst for human populations averages ~0.12. Locus-specific Fst > 0.3 suggests strong differentiation (possible selection). Fst > 0.5 is extreme and rare in humans outside known selection targets (e.g., SLC24A5 for skin pigmentation). Compare locus Fst against genome-wide distribution to identify outliers.
- **LD interpretation**: Linkage disequilibrium (LD) patterns differ by ancestry. AFR populations have shorter LD blocks due to older demographic history, requiring denser genotyping for fine-mapping. EUR and EAS populations have longer LD blocks. When a GWAS hit is in LD with multiple variants, the causal variant is more likely to be resolved in AFR-ancestry data. Report r-squared values: r2 > 0.8 = strong LD, 0.2-0.8 = moderate, < 0.2 = weak.
- **Population stratification**: Uncontrolled population structure in GWAS inflates false positives. The 1000 Genomes superpopulation labels provide a framework for stratified analysis. Mixed-ancestry samples (e.g., AMR) require local ancestry deconvolution for accurate interpretation.
- **Sample size context**: 1000 Genomes has ~2500 samples across 26 populations. Population-specific allele frequencies have limited precision for smaller populations (N < 100). For rare variants (AF < 0.01), larger resources like gnomAD provide more reliable estimates.

### Synthesis Questions

1. Does the allele frequency of the variant of interest differ meaningfully (> 5%) across superpopulations, and could this explain differential disease prevalence or GWAS effect sizes?
2. Is the GWAS association replicated across ancestries, or is it population-specific, potentially due to LD structure differences or population-specific selection?
3. For fine-mapping, does the LD pattern in AFR populations narrow the association signal compared to EUR, helping identify the likely causal variant?
4. Are the population labels and sample sizes in the 1000 Genomes dataset adequate for the analysis, or is the target population underrepresented?
5. Could population stratification (uncontrolled ancestry differences between cases and controls) explain the observed association, rather than a true genetic effect?

---

## Tool Parameter Quick Reference

| Tool | Key Parameters | Notes |
|------|---------------|-------|
| IGSR_search_populations | superpopulation, query, limit | superpopulation: AFR/AMR/EAS/EUR/SAS |
| IGSR_search_samples | population, data_collection, sample_name, limit | population = population code (e.g. YRI) |
| IGSR_list_data_collections | limit | 18 collections total |
| gwas_search_associations | trait, limit | free-text trait search |
| gwas_get_variants_for_trait | trait, limit | trait = EFO ID |
| gwas_get_snps_for_gene | gene_symbol, limit | returns mapped SNPs |

© mims-harvard · Apache-2.0 · mims-harvard/ToolUniverse

Похожие скиллы

Все скиллы по теме «Наука и исследования» →
scientific-thinking-biology Agents365-ai Скилл scientific-thinking-biology для Claude Code структурирует анализ биологических исследований и генетических данных. Помогает отличить ассоциацию от причинности, маркер от драйвера. CX Codex +1 296установок epigraphdb-skill официальный OpenAI Отправляет запросы к EpiGraphDB и формирует краткие сводки. Ищет связи между генами, лекарствами, исследованиями и данными об онтологиях. CX Codex GP ChatGPT +1 13установок locus-to-gene-mapper-skill официальный OpenAI Скилл locus-to-gene-mapper-skill сопоставляет локусы GWAS с генами-кандидатами через цепочку биоинформатических баз данных. Помогает приоритизировать гены по названию фенотипа или списку генетических вариантов. CX Codex GP ChatGPT +1 13установок biological-expert personamanagmentlayer Скилл biological-expert настраивает агента на задачи биоинформатики, генетики и вычислительной биологии. Помогает анализировать последовательности ДНК и аннотировать мутации. CX Codex +1 235установок Open Targets opentargets Удалённый MCP-сервер к платформе Open Targets: поиск целей, болезней и препаратов плюс GraphQL-запросы к связям генов с заболеваниями. CX Codex +1 440установок opentargets nickzren Сервер даёт ИИ-агенту доступ к данным Open Targets о генах, болезнях, препаратах и доказательствах. Подходит для поиска связей и кандидатов на перепрофилирование лекарств. CX Codex +1 ★ 19звёзд репо

Из того же набора136

Весь набор →
tooluniverse-electron-microscopy Скилл tooluniverse-electron-microscopy для Claude Code ищет и анализирует данные электронной микроскопии в EMDB, PDB, EMPIAR и CryoET Data Portal. Помогает сопоставлять карты плотности с атомными моделями. CX Codex +1 238установок tooluniverse-adverse-outcome-pathway Скилл tooluniverse-adverse-outcome-pathway сопоставляет промышленные и токсичные вещества с путями неблагоприятных исходов (AOP). Помогает оценить экологические риски, проверить классификацию GHS и канцерогенность по IARC. CX Codex +1 236установок tooluniverse-model-organism-genetics Скилл tooluniverse-model-organism-genetics для сравнительного анализа генов человека и модельных организмов. CX Codex +1 235установок tooluniverse-kegg-disease-drug Скилл tooluniverse-kegg-disease-drug для Claude Code связывает болезни с генами, лекарства с мишенями и варианты с путями через KEGG. Запускается при упоминании KEGG в контексте болезней, лекарств или вариантов. CX Codex +1 235установок tooluniverse-cancer-classification Скилл tooluniverse-cancer-classification переводит текстовые описания опухолей в коды OncoTree, связывает их с базами UMLS и NCI, а также передаёт классификацию в OncoKB для оценки мутаций. CX Codex +1 234установок tooluniverse-hla-immunogenomics Скилл tooluniverse-hla-immunogenomics анализирует аллели HLA, связывание пептидов с MHC и эпитопы по базам данных IMGT и IEDB. Помогает оценить совместимость трансплантатов и таргеты для вакцин. CX Codex +1 234установок tooluniverse-variant-to-mechanism Скилл tooluniverse-variant-to-mechanism для полного анализа цепочки «генетический вариант → механизм болезни». CX Codex +1 233установок tooluniverse-acmg-variant-classification Скилл tooluniverse-acmg-variant-classification классифицирует герминальные мутации по 28 критериям ACMG/AMP и выдаёт клиническое заключение из пяти категорий с проверкой по базам данных. CX Codex +1 232установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой