tooluniverse-phewas
БесплатноБез исполняемых скриптовНе проверенCross-ancestry / cross-biobank phenome-wide association (PheWAS) and replication. Given ONE variant (rsID) or ONE gene, look up every phenotype it associates…
от mims-harvard★ 1 813 звёзд на GitHubОб этом скилле
Cross-Biobank PheWAS & Replication
A PheWAS is the inverse of a GWAS: a GWAS fixes a phenotype and scans variants; a PheWAS fixes a variant (or gene) and scans the entire phenome. The scientific payoff of running it across several biobanks is replication and ancestry resolution — an association seen in one population that reappears in another (with the same effect direction) is far more credible, while one that appears only in East-Asian cohorts may reflect ancestry-specific LD, allele frequency, or biology.
This skill orchestrates one variant/gene across four ancestries plus a gene-burden layer. Look up, don't guess — never assert a variant's phenotype associations or effect sizes from memory; the whole point is the live cross-biobank numbers.
The biobank panel
| Tool | Biobank | Ancestry | Build | Evidence type |
|---|---|---|---|---|
UKBTOPMed_phewas_by_variant |
UKB-TOPMed | European (UK) | GRCh38 | per-phenotype assoc (phecodes, ~1,400) |
FinnGen_get_variant_finemapping |
FinnGen | Finnish | GRCh38 | credible-set membership (fine-mapping) |
BioBankJapan_phewas_by_variant |
BioBank Japan | Japanese | GRCh37 | per-phenotype assoc |
TPMI_phewas_by_variant |
TPMI | Taiwanese (Han) | GRCh38 | per-phenotype assoc (ICD-based) |
Genebass_gene_burden_phewas |
Genebass (UKB exomes) | European | GRCh38 | gene-level rare-variant burden |
The four *_phewas_by_variant tools (UKB-TOPMed, BBJ, TPMI) and Genebass_gene_burden_phewas accept an rsID (Genebass also accepts a gene symbol) and resolve coordinates themselves via Ensembl, picking the correct allele for multi-allelic SNPs; the build difference between BBJ-GRCh37 and the others is handled internally — just pass the rsID. You normally do not need to hand-convert coordinates for these.
FinnGen_get_variant_finemapping is the exception: it does NOT accept an rsID. It requires an explicit GRCh38 variant string in chr:pos:ref:alt format (e.g. "10:112998590:C:T"). Resolve the rsID to GRCh38 coordinates first — the simplest way is to read the variant/rsids field returned by the UKB-TOPMed (GRCh38) call, then pass that coordinate string to FinnGen.
Workflow
Step 1 — Decide variant-level vs gene-level
- Have an rsID / specific variant → variant-level panel (the four
*_phewas_by_variant+ FinnGen). This is the common case. Pass the rsID directly to the four*_phewas_by_varianttools; forFinnGen_get_variant_finemappingyou must supply an explicit GRCh38chr:pos:ref:altstring (resolve the rsID first — see "The biobank panel" note above). - Have a gene and care about rare coding burden (e.g. "what does loss-of-function of PCSK9 do?") →
Genebass_gene_burden_phewaswithburden_set: "pLoF". Add the variant panel too if a specific common variant is also of interest.
Step 2 — Query the panel in parallel
Call the relevant tools for the same rsID. Always pass max_pval: 5e-8 (genome-wide significance) for the variant tools when you want only robust hits, or omit it to see suggestive associations too. Example anchor call:
UKBTOPMed_phewas_by_variant(rsid="rs7903146", max_pval=5e-8, limit=25)
BioBankJapan_phewas_by_variant(rsid="rs7903146", max_pval=5e-8, limit=25)
TPMI_phewas_by_variant(rsid="rs7903146", max_pval=5e-8, limit=25)
FinnGen_get_variant_finemapping(variant="10:112998590:C:T") # FinnGen needs a variant string (GRCh38) or use an rsID-resolved coord
For gene-burden:
Genebass_gene_burden_phewas(gene="PCSK9", burden_set="pLoF", max_pval=2.5e-6, limit=25)
Step 3 — Align phenotypes across biobanks
Phenotype coding differs per biobank (UKB/TPMI use phecodes, BBJ uses curated endpoints, FinnGen uses its own endpoint codes, Genebass uses UKB field codes). Match on the human-readable name / disease concept, not the code. Group associations into shared concepts (e.g. "Type 2 diabetes" across all of them) before comparing.
Step 4 — Judge replication (see interpretation table)
For each shared phenotype concept, compare significance, effect-size direction (sign of beta), and allele frequency across biobanks.
Step 5 — Report
Use the report template below. Lead with what replicates, then ancestry-specific signals, then caveats.
Interpretation
| Pattern across biobanks | Meaning |
|---|---|
| Significant + same beta sign in ≥2 ancestries | Replicated, robust association — highest confidence |
| Significant in European but not East-Asian | May be European-specific, OR underpowered / lower allele frequency in East-Asian cohort — check af and num_cases before concluding biology |
| Significant only in BBJ/TPMI | Candidate East-Asian-specific effect (ancestry-specific LD or biology) — flag for follow-up |
| Opposite beta signs between biobanks | Caution: possible strand/allele-coding mismatch, or genuine flip — verify the ref/alt allele each biobank reported before interpreting |
| Variant-level null but Ge |
Установить tooluniverse-phewas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tooluniverse-phewas?
Cross-ancestry / cross-biobank phenome-wide association (PheWAS) and replication. Given ONE variant (rsID) or ONE gene, look up every phenotype it associates with across European/UK (UKB-TOPMed), Finnish (FinnGen), Japanese (BioBank Japan), and Taiwanese (TPMI) biobanks, plus exome-wide gene-burden PheWAS (Genebass), then judge whether an association replicates across ancestries or is population-specific. Use whenever the user asks "what else is this variant/gene associated with", "does this association replicate in other ancestries / biobanks", "is this effect East-Asian-specific", "pleiotropy of rsXXX", "phenome scan", or wants to compare effect sizes/allele frequencies of a variant across populations. NOT for the forward direction (trait → which SNPs: use the gwas-* skills), NOT for fine-mapping a locus (use tooluniverse-gwas-finemapping), and NOT for single-SNP mechanism tracing in one population (use tooluniverse-gwas-snp-interpretation).
Как установить скилл tooluniverse-phewas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tooluniverse-phewas запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic