tooluniverse-gwas-trait-to-gene by mims-harvard/tooluniverse
npx skills add https://github.com/mims-harvard/tooluniverse --skill tooluniverse-gwas-trait-to-gene利用全基因组关联研究(GWAS)发现与疾病和性状相关的基因
此技能通过分析来自两大资源的 GWAS 数据,系统性发现与疾病/性状相关的基因:
临床研究
药物靶点发现
功能基因组学
1. 性状搜索 → 按疾病/性状名称搜索 GWAS Catalog
↓
2. SNP 聚合 → 收集全基因组显著 SNP(p < 5e-8)
↓
3. 基因映射 → 从关联中提取已映射的基因
↓
4. 证据排序 → 根据 p 值、重复性、精细定位进行评分
↓
5. 注释(可选) → 添加来自 Open Targets 的 L2G 预测
全基因组显著性
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
基因映射方法
证据置信度等级
gwas_get_associations_for_trait - 获取某个性状的所有关联(按 p 值排序)gwas_search_snps - 通过基因映射搜索 SNPgwas_get_snp_by_id - 获取 SNP 详细信息(MAF、后果、位置)gwas_get_study_by_id - 获取研究元数据gwas_search_associations - 使用过滤器搜索关联gwas_search_studies - 按性状/队列搜索研究gwas_get_associations_for_snp - 获取某个 SNP 的所有关联gwas_get_variants_for_trait - 获取某个性状的变异gwas_get_studies_for_trait - 获取某个性状的研究gwas_get_snps_for_gene - 获取映射到某个基因的 SNPgwas_get_associations_for_study - 从研究中获取关联OpenTargets_search_gwas_studies_by_disease - 按疾病本体搜索研究OpenTargets_get_study_credible_sets - 获取某个研究的精细定位基因座OpenTargets_get_variant_credible_sets - 获取某个变异的可信集OpenTargets_get_variant_info - 获取变异注释(频率、后果)OpenTargets_get_gwas_study - 获取研究元数据OpenTargets_get_credible_set_detail - 获取详细的可信集信息必需
trait - 疾病/性状名称(例如:"type 2 diabetes", "coronary artery disease")可选
p_value_threshold - 显著性阈值(默认:5e-8)min_evidence_count - 最小研究数量(默认:1)max_results - 返回的最大基因数(默认:100)use_fine_mapping - 包含 L2G 预测(默认:true)disease_ontology_id - 用于 Open Targets 的疾病本体 ID(例如:"MONDO_0005148"){
"genes": [
{
"symbol": str, # 基因符号(例如:"TCF7L2")
"min_p_value": float, # 最显著的 p 值
"evidence_count": int, # 独立研究的数量
"snps": [str], # 相关的 SNP rs ID
"studies": [str], # GWAS 研究登录号
"l2g_score": float | null, # 基因座到基因分数(0-1)
"credible_sets": int, # 可信集的数量
"confidence_level": str # "High", "Medium", 或 "Low"
}
],
"summary": {
"trait": str,
"total_associations": int,
"significant_genes": int,
"data_sources": ["GWAS Catalog", "Open Targets"]
}
}
2 型糖尿病
TCF7L2: p=1.2e-98, 15 studies, L2G=0.82 → High confidence
KCNJ11: p=3.4e-67, 12 studies, L2G=0.76 → High confidence
PPARG: p=2.1e-45, 8 studies, L2G=0.71 → High confidence
FTO: p=5.6e-42, 10 studies, L2G=0.68 → High confidence
IRS1: p=8.9e-38, 6 studies, L2G=0.54 → High confidence
阿尔茨海默病
APOE: p=1.0e-450, 25 studies, L2G=0.95 → High confidence
BIN1: p=2.3e-89, 18 studies, L2G=0.88 → High confidence
CLU: p=4.5e-67, 16 studies, L2G=0.82 → High confidence
ABCA7: p=6.7e-54, 14 studies, L2G=0.79 → High confidence
CR1: p=8.9e-52, 13 studies, L2G=0.75 → High confidence
1. 使用疾病本体 ID 以提高精确度
# 而不是:
discover_gwas_genes("diabetes") # 模糊不清
# 使用:
discover_gwas_genes(
"type 2 diabetes",
disease_ontology_id="MONDO_0005148" # 具体
)
2. 按证据强度过滤
# 对于药物靶点,要求强证据:
discover_gwas_genes(
"coronary artery disease",
p_value_threshold=5e-10, # 比 GWAS 阈值更严格
min_evidence_count=3, # 多个独立研究
use_fine_mapping=True # 包含 L2G 预测
)
3. 谨慎解读结果
基因映射不确定性
人群偏倚
样本量依赖性
验证错误
validate=False 参数GWAS Catalog
Open Targets Genetics
如果您在研究中使用了此技能,请引用:
Buniello A, et al. (2019) The NHGRI-EBI GWAS Catalog of published genome-wide
association studies. Nucleic Acids Research, 47(D1):D1005-D1012.
Mountjoy E, et al. (2021) An open approach to systematically prioritize causal
variants and genes at all published human GWAS trait-associated loci.
Nature Genetics, 53:1527-1533.
对于以下问题:
每周安装数
122
代码库
GitHub 星标数
1.2K
首次出现
Feb 20, 2026
安全审计
安装于
codex120
opencode118
github-copilot117
gemini-cli117
kimi-cli115
amp115
Discover genes associated with diseases and traits using genome-wide association studies (GWAS)
This skill enables systematic discovery of genes linked to diseases/traits by analyzing GWAS data from two major resources:
Clinical Research
Drug Target Discovery
Functional Genomics
1. Trait Search → Search GWAS Catalog by disease/trait name
↓
2. SNP Aggregation → Collect genome-wide significant SNPs (p < 5e-8)
↓
3. Gene Mapping → Extract mapped genes from associations
↓
4. Evidence Ranking → Score by p-value, replication, fine-mapping
↓
5. Annotation (Optional) → Add L2G predictions from Open Targets
Genome-wide Significance
Gene Mapping Methods
Evidence Confidence Levels
gwas_get_associations_for_trait - Get all associations for a trait (sorted by p-value)gwas_search_snps - Search SNPs by gene mappinggwas_get_snp_by_id - Get SNP details (MAF, consequence, location)gwas_get_study_by_id - Get study metadatagwas_search_associations - Search associations with filtersgwas_search_studies - Search studies by trait/cohortgwas_get_associations_for_snp - Get all associations for a SNPgwas_get_variants_for_trait - Get variants for a traitgwas_get_studies_for_trait - Get studies for a traitOpenTargets_search_gwas_studies_by_disease - Search studies by disease ontologyOpenTargets_get_study_credible_sets - Get fine-mapped loci for a studyOpenTargets_get_variant_credible_sets - Get credible sets for a variantOpenTargets_get_variant_info - Get variant annotation (frequencies, consequences)OpenTargets_get_gwas_study - Get study metadataOpenTargets_get_credible_set_detail - Get detailed credible set informationRequired
trait - Disease/trait name (e.g., "type 2 diabetes", "coronary artery disease")Optional
p_value_threshold - Significance threshold (default: 5e-8)min_evidence_count - Minimum number of studies (default: 1)max_results - Maximum genes to return (default: 100)use_fine_mapping - Include L2G predictions (default: true)disease_ontology_id - Disease ontology ID for Open Targets (e.g., "MONDO_0005148"){
"genes": [
{
"symbol": str, # Gene symbol (e.g., "TCF7L2")
"min_p_value": float, # Most significant p-value
"evidence_count": int, # Number of independent studies
"snps": [str], # Associated SNP rs IDs
"studies": [str], # GWAS study accessions
"l2g_score": float | null, # Locus-to-gene score (0-1)
"credible_sets": int, # Number of credible sets
"confidence_level": str # "High", "Medium", or "Low"
}
],
"summary": {
"trait": str,
"total_associations": int,
"significant_genes": int,
"data_sources": ["GWAS Catalog", "Open Targets"]
}
}
Type 2 Diabetes
TCF7L2: p=1.2e-98, 15 studies, L2G=0.82 → High confidence
KCNJ11: p=3.4e-67, 12 studies, L2G=0.76 → High confidence
PPARG: p=2.1e-45, 8 studies, L2G=0.71 → High confidence
FTO: p=5.6e-42, 10 studies, L2G=0.68 → High confidence
IRS1: p=8.9e-38, 6 studies, L2G=0.54 → High confidence
Alzheimer's Disease
APOE: p=1.0e-450, 25 studies, L2G=0.95 → High confidence
BIN1: p=2.3e-89, 18 studies, L2G=0.88 → High confidence
CLU: p=4.5e-67, 16 studies, L2G=0.82 → High confidence
ABCA7: p=6.7e-54, 14 studies, L2G=0.79 → High confidence
CR1: p=8.9e-52, 13 studies, L2G=0.75 → High confidence
1. Use Disease Ontology IDs for Precision
# Instead of:
discover_gwas_genes("diabetes") # Ambiguous
# Use:
discover_gwas_genes(
"type 2 diabetes",
disease_ontology_id="MONDO_0005148" # Specific
)
2. Filter by Evidence Strength
# For drug targets, require strong evidence:
discover_gwas_genes(
"coronary artery disease",
p_value_threshold=5e-10, # Stricter than GWAS threshold
min_evidence_count=3, # Multiple independent studies
use_fine_mapping=True # Include L2G predictions
)
3. Interpret Results Carefully
Gene Mapping Uncertainty
Population Bias
Sample Size Dependence
Validation Bug
validate=False parameter if neededGWAS Catalog
Open Targets Genetics
If you use this skill in research, please cite:
Buniello A, et al. (2019) The NHGRI-EBI GWAS Catalog of published genome-wide
association studies. Nucleic Acids Research, 47(D1):D1005-D1012.
Mountjoy E, et al. (2021) An open approach to systematically prioritize causal
variants and genes at all published human GWAS trait-associated loci.
Nature Genetics, 53:1527-1533.
For issues with:
Weekly Installs
122
Repository
GitHub Stars
1.2K
First Seen
Feb 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex120
opencode118
github-copilot117
gemini-cli117
kimi-cli115
amp115
Apify Actor 输出模式生成工具 - 自动化创建 dataset_schema.json 与 output_schema.json
1,100 周安装
Symfony有效上下文技能:优化架构与安全执行复杂变更的PHP框架工作流指南
222 周安装
研究流程技能:结构化研究方法论,全面指导研究规划、执行、分析与综合
224 周安装
HuggingFace Tokenizers:NLP快速分词工具,Rust性能Python易用,支持自定义训练
226 周安装
执行计划技能:AI辅助代码开发与任务批量执行工具 - 高效项目管理
223 周安装
NeMo Curator - NVIDIA GPU加速的大语言模型数据整理工具包,16倍去重速度
223 周安装
根本原因分析(RCA)指南:5个为什么技术、系统化流程与最佳实践
224 周安装
gwas_get_snps_for_gene - Get SNPs mapped to a genegwas_get_associations_for_study - Get associations from a study