tooluniverse-phewas

mims-harvard/tooluniverse

PheWAS и репликация по разным популяциям и биобанкам (UKB-TOPMed, FinnGen, BioBank Japan, TPMI) для варианта или гена.

Звёзды1 795
Авторmims-harvard

Установка

SKILL.md

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

ToolBiobankAncestryBuildEvidence type
UKBTOPMed_phewas_by_variantUKB-TOPMedEuropean (UK)GRCh38per-phenotype assoc (phecodes, ~1,400)
FinnGen_get_variant_finemappingFinnGenFinnishGRCh38credible-set membership (fine-mapping)
BioBankJapan_phewas_by_variantBioBank JapanJapaneseGRCh37per-phenotype assoc
TPMI_phewas_by_variantTPMITaiwanese (Han)GRCh38per-phenotype assoc (ICD-based)
Genebass_gene_burden_phewasGenebass (UKB exomes)EuropeanGRCh38gene-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_variant tools; for FinnGen_get_variant_finemapping you must supply an explicit GRCh38 chr:pos:ref:alt string (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_phewas with burden_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 biobanksMeaning
Significant + same beta sign in ≥2 ancestriesReplicated, robust association — highest confidence
Significant in European but not East-AsianMay be European-specific, OR underpowered / lower allele frequency in East-Asian cohort — check af and num_cases before concluding biology
Significant only in BBJ/TPMICandidate East-Asian-specific effect (ancestry-specific LD or biology) — flag for follow-up
Opposite beta signs between biobanksCaution: possible strand/allele-coding mismatch, or genuine flip — verify the ref/alt allele each biobank reported before interpreting
Variant-level null but Genebass burden significantPhenotype driven by rare coding variation in the gene, not the common variant
FinnGen credible-set hit but weak elsewhereVariant is a fine-mapped candidate in Finns; credible-set membership ≠ p-value, so treat as corroborating, not quantitative

Allele-frequency caveat is central. A "missing" association in one population is only interesting after you confirm the variant is actually common enough there to be powered. Each *_phewas_by_variant result carries af, num_cases, num_controls — use them. A variant at AF 0.30 in Europeans but 0.02 in Japanese will look "European-specific" purely from power, not biology.

Report structure

# PheWAS: <rsID / gene> (<nearest gene>)

## Replicated associations (≥2 ancestries, concordant direction)
- <phenotype> — UKB-TOPMed p=<>, β=<>; BBJ p=<>, β=<>; TPMI p=<>, β=<>  → concordant

## Ancestry-specific / unreplicated signals
- <phenotype> — significant in <biobank> only; AF=<> elsewhere (powered? yes/no)

## Gene-burden layer (if run)
- <phenotype> — Genebass <burden_set> p=<>

## Caveats
- allele-frequency / power notes, build notes, coding-direction checks

Worked example (rs7903146, TCF7L2)

Running the panel on rs7903146 returns Type 2 diabetes as the top hit with the T (risk) allele increasing risk (β>0) in every ancestry — UKB-TOPMed (p1e-134), BioBank Japan (native Japanese T2D endpoint p2e-47; its external Suzuki-2024 meta entries underflow to pval: 0.0), and TPMI (p6e-11) — concordant positive effect across European, Japanese, and Taiwanese ancestries → textbook replicated association. (Exact p-values drift as biobanks update; treat these as illustrative.) The weaker TPMI p-value tracks the lower T-allele frequency in East Asians (AF0.29 in Europeans vs ~0.02–0.05 in East Asians) and smaller case count, not a weaker biological effect — exactly the power caveat above. A nice secondary signal: in BBJ the T2D-risk allele associates with lower BMI/body weight, the known TCF7L2 feature that it acts through insulin secretion rather than adiposity. This is the canonical robustly-replicated common-variant association and a good sanity check that the panel is working.

Reading pval: 0.0: a returned p-value of exactly 0.0 is floating-point underflow on an astronomically significant association (the true value is below ~1e-308), not "no association." Treat it as the strongest possible hit, not a null.

BioBank Japan catalogue note: the BBJ PheWeb surfaces both native BBJ endpoints and external multi-ancestry GWAS meta-analyses (e.g. Suzuki 2024, with separate EUR/EAS/AFA/SAS/HIS rows). This is a bonus — you get per-ancestry betas from one call — but do not double-count the meta-analysis rows as independent "Japanese" evidence; the native BBJ endpoint is the Japanese-specific one.

Limitations

  • Variant-level only reports what each biobank pre-computed. PheWeb instances return summary associations, not raw genotypes; you cannot run a custom phenotype not in their catalogue.
  • TPMI / BBJ phenotype catalogues are ICD/endpoint-based and less granular than UKB phecodes; absence of a phenotype may mean "not catalogued", not "no association".
  • Genebass is European (UKB exomes) only — it adds a rare-variant burden layer but not an ancestry dimension.
  • No automatic meta-analysis. This skill compares biobanks qualitatively (replication, direction, power). For a formal cross-ancestry meta-analysis or fine-mapping, hand off to dedicated tooling (tooluniverse-mendelian-randomization, tooluniverse-gwas-finemapping).
  • FinnGen evidence is credible-set membership, a different currency than the PheWeb p-values; do not put its "hits" on the same numeric axis.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: tooluniverse-phewas](https://darkplay.ru/ai/skills/mims-harvard-tooluniverse-tooluniverse-phewas)

Из того же репозитория

tooluniverse-lipidomics Анализ липидов и их связи с заболеваниями через LIPID MAPS, HMDB, KEGG и PubChem. ★1,8K tooluniverse-model-organism-genetics Межвидовой генетический анализ через базы модельных организмов: MGI, ZFIN, FlyBase, SGD и ★1,8K tooluniverse-kegg-disease-drug Сеть болезнь–лекарство–вариант на основе баз KEGG для репозиционирования препаратов. ★1,8K tooluniverse-adverse-outcome-pathway Связь химических веществ с неблагоприятными исходами (AOP) через AOPWiki, GHS и IARC. ★1,8K tooluniverse-metabolomics-pathway Анализ метаболических путей: идентификация метаболитов, картирование путей, связи с болезн ★1,8K tooluniverse-comparative-genomics Сравнение генов между видами и анализ ортологов через Ensembl, NCBI, UniProt и другие базы ★1,8K tooluniverse-pathway-disease-genetics Связывание вариантов GWAS с генами, путями (Reactome, KEGG, WikiPathways) и лекарствами-ми ★1,8K tooluniverse-protein-modification-analysis Анализ посттрансляционных модификаций: фосфорилирование, убиквитинирование, ацетилирование ★1,8K

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации изображений

Генерация изображений

Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты

MagviMagvi
По запросу
5.0
DALL-E 3OpenAI
По подписке
5.0
SupaLabSupalab
По запросу
5.0
Freestyling.aiFreestyling
Есть бесплатный тариф
4.9
ArtGeneration.meArtgeneration
Есть бесплатный тариф
4.9
BigjpgBigjpg
По запросу
4.9
Художник от VKVK
Бесплатно
4.9
Wonderink — ИИ-книги
Есть бесплатный тариф
4.8
Avato AI12ai
По запросу
4.8
Virton AIVirton
По запросу
4.8