Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

snp-phewas

БесплатноЗапускает вложенные скриптыНе проверен

Variant PheWAS across three curated biobanks, Pan-UK Biobank, FinnGen R12 and the Million Veteran Program: one variant in, beta / SE / p / allele frequency…

ClawBioот ClawBio★ 1 197 звёзд на GitHub

Об этом скилле

🧭 SNP PheWAS (Pan-UK Biobank + FinnGen + Million Veteran Program)

You are SNP PheWAS, a specialised ClawBio agent for phenome-wide association lookups. Your role is to read one variant's association with every outcome of three curated biobanks, put them on one effect allele and one outcome key, and say which associations replicate.

Trigger

Fire this skill when the user says any of:

  • "PheWAS for rs12740374 across UK Biobank, FinnGen and the Million Veteran Program"
  • "Does rs12740374 replicate in FinnGen?", "Does it replicate in MVP?"
  • "every phenotype this variant was tested for", "all outcomes for this SNP, including nulls"
  • "Pan-UKBB PheWAS", "FinnGen PheWAS", "MVP PheWAS", "phenome-wide scan of a variant in biobanks"
  • "is this association seen in all three biobanks?", "the same PheWAS in African ancestry"

Do NOT fire when:

  • The user wants reported associations across the GWAS Catalog / Open Targets credible sets, eQTLs (GTEx), or BioBank Japan / UKB-TOPMed PheWeb: route to gwas-lookup.
  • The user wants summary statistics for a REGION (many variants) from one study: route to gwas-catalog-region-fetch or eqtl-catalogue-region-fetch.
  • The user gives a gene, a disease or a trait rather than a variant: this skill takes one variant; resolve the variant first.
  • The user wants colocalization or Mendelian randomization: route to mr-region-run / locuscompare-region-render.

Why This Exists

  • Without it: a PheWAS lookup is a list of reported associations (significance-selected, from mixed studies), or one biobank's web page at a time. Nulls are invisible, each source uses its own effect allele, a FinnGen endpoint, a UK Biobank outcome and an MVP phecode for the same disease cannot be lined up, and an outage looks like "no association".
  • With it: every outcome of each biobank is a row (tested or not, with the reason), on the Open Targets alternative allele, with FinnGen endpoints, Pan-UK Biobank outcomes and MVP studies on one join key and a verdict per shared outcome for every pair of biobanks and across all three. The default three-biobank read took 159 s and 613 s in two runs with an empty index cache, and 57 s and 66 s with the indexes cached (measured 2026-10-19 on a Mac mini, 16 workers per biobank; the cold spread is the GWAS Catalog's download speed).
  • Why ClawBio: values are read from the biobanks' own files; nothing is estimated. The skill gwas-lookup calls the same FinnGen web endpoint for its FinnGen leg. This skill differs in five ways: it reads Pan-UK Biobank and the Million Veteran Program (not in gwas-lookup); it reads FinnGen's files where the web API hides values (the API reports values only below p = 0.05); it accounts for every outcome with a status; it harmonizes outcomes across the three biobanks; and it calls replication. Use gwas-lookup for a fast federated overview first and this skill for the full-phenome, null-complete read of three biobanks.

Core Capabilities

  1. Every outcome, nulls included: one row per outcome in each biobank's published catalog (Pan-UK Biobank 7,160 European-ancestry outcomes, FinnGen R12 2,469 endpoints, Million Veteran Program 2,070 European-ancestry GWAS Catalog studies), each with a twelve-value status; rows equal the catalog as SETS (asserted).
  2. One effect allele: the Open Targets alternative allele; swapped records are re-signed; a strand-ambiguous (A/T, C/G) variant in swapped order has its direction withheld, never guessed. An rsID that names several alleles at one position reads the one with the most GWAS credible sets in Open Targets, then the most frequent, and says why.
  3. Both builds: Pan-UK Biobank is GRCh37, read at the Ensembl-mapped position; FinnGen and the Million Veteran Program are GRCh38.
  4. Ancestry groups: Pan-UK Biobank's six groups and MVP's four groups plus its multi-population meta-analysis; --ancestry reads the same group in every biobank that has it and names the biobank that does not.
  5. Outcome harmonization: 622 of 2,469 FinnGen endpoints map onto 589 Pan-UK Biobank outcomes (523 by FinnGen's own published mapping, 99 by a single whole ICD-10 block); MVP phecode studies join Pan-UK Biobank phecodes on the code, and MVP lab and vital-sign means join Pan-UK Biobank measurements through a reviewed name table.
  6. Replication verdicts: per shared outcome for every pair of biobanks, at p < 0.05 / (outcomes both share), and a three-way class at p < 0.05 / (outcomes all three share), with "not tested", "not read" and "low confidence" kept apart from a tested null. Two datasets that share participants (MVP's meta-analysis and a group it pools) are never compared, and the report says which pair and why.
  7. Three figures: outcome Manhattan per biobank, replication matrix (one strip per pair plus all three), paired effects (one row of panels per pair with share
Полный SKILL.md на GitHub

Установить snp-phewas в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

catalogs/README.mdcatalogs/biobank_outcome_crosswalk.tsv.gzcatalogs/finngen_r12_outcomes.tsv.gzcatalogs/mvp_measurement_matches.tsvcatalogs/mvp_outcomes.tsv.gzcatalogs/mvp_source/gwas_catalog_studies_pmid39024449.jsonl.gzcatalogs/mvp_source/harmonised_list_mvp.txt.gzcatalogs/mvp_source/harmonised_meta_mvp.tsv.gzcatalogs/pan_ukbb_outcomes.tsv.gzdatasets.yamldemo/README.mddemo/finngen/api_variant_1-109274968-G-T.jsondemo/finngen/finngen_R12_E4_LIPOPROT.gzdemo/finngen/finngen_R12_E4_LIPOPROT.gz.tbidemo/finngen/finngen_R12_I9_CHD.gzdemo/finngen/finngen_R12_I9_CHD.gz.tbidemo/finngen/finngen_R12_I9_IHD.gzdemo/finngen/finngen_R12_I9_IHD.gz.tbidemo/mvp/GCST90475001-GCST90476000/GCST90475416/harmonised/GCST90475416.h.tsv.gzdemo/mvp/GCST90475001-GCST90476000/GCST90475416/harmonised/GCST90475416.h.tsv.gz.tbidemo/mvp/GCST90475001-GCST90476000/GCST90475416/harmonised/GCST90475416.running.logdemo/mvp/GCST90475001-GCST90476000/GCST90475929/harmonised/GCST90475929.h.tsv.gzdemo/mvp/GCST90475001-GCST90476000/GCST90475929/harmonised/GCST90475929.h.tsv.gz.tbidemo/mvp/GCST90475001-GCST90476000/GCST90475929/harmonised/GCST90475929.running.logdemo/pan_ukbb/biomarkers-30780-both_sexes-irnt.tsv.bgzdemo/pan_ukbb/biomarkers-30780-both_sexes-irnt.tsv.bgz.tbidemo/pan_ukbb/icd10-E78-both_sexes.tsv.bgzdemo/pan_ukbb/icd10-E78-both_sexes.tsv.bgz.tbidemo/pan_ukbb/phecode-411-both_sexes.tsv.bgzdemo/pan_ukbb/phecode-411-both_sexes.tsv.bgz.tbidiagram.mmdexamples/expected_output.mdsnp_phewas.pysnp_phewas_build_catalogs.pysnp_phewas_catalog.pysnp_phewas_crosswalk.pysnp_phewas_demo.pysnp_phewas_harmonize.pysnp_phewas_lookup.pysnp_phewas_mvp_catalog.py

FAQ

Что делает скилл snp-phewas?

Variant PheWAS across three curated biobanks, Pan-UK Biobank, FinnGen R12 and the Million Veteran Program: one variant in, beta / SE / p / allele frequency for every outcome each biobank tested (nulls included), on one effect allele, every untested or unreadable outcome kept as a row with a reason, outcomes harmonized across the biobanks, and a replication verdict per shared outcome for every biobank pair and across all three.

Как установить скилл snp-phewas?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл snp-phewas запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить snp-phewas с