arxiv-database
arxiv-database:This skill provides Python tools ,用于 searching 、 retrieving preprints ,面向 arXiv.org ,通过 its public Atom A…
维护者 FreedomIntelligence · 最近更新 2026年4月1日
bio-causal-genomics-colocalization-analysis:Colocali。
原始来源
https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-causal-genomics-colocalization-analysis
技能摘要
原始文档
Goal: Test whether two traits share a causal variant at a GWAS locus using Bayesian colocalization.
Approach: Format summary statistics for each trait as named lists, run coloc.abf to compute posterior probabilities for five hypotheses (H0-H4), and interpret PP.H4 as evidence for a shared causal variant.
library(coloc)
## type = 'quant' (continuous) or 'cc' (case-control)
gwas_data <- list(
beta = gwas_df$BETA,
varbeta = gwas_df$SE^2,
snp = gwas_df$SNP,
position = gwas_df$POS,
type = 'cc', # Case-control study
s = 0.3, # Proportion of cases (required for cc)
N = 50000 # Total sample size
)
eqtl_data <- list(
beta = eqtl_df$BETA,
varbeta = eqtl_df$SE^2,
snp = eqtl_df$SNP,
position = eqtl_df$POS,
type = 'quant', # Quantitative trait (expression)
N = 500, # eQTL sample size
sdY = 1 # SD of trait (1 if already normalized)
)
## --- Run colocalization ---
result <- coloc.abf(dataset1 = gwas_data, dataset2 = eqtl_data)
相关技能
arxiv-database:This skill provides Python tools ,用于 searching 、 retrieving preprints ,面向 arXiv.org ,通过 its public Atom A…
bayesian-optimizer:Bayesian optimization ,用于 experimental design 、 hyperparameter tuning in biomedical research。
bio-alignment-files-bam-statistics:Compute alignment statistics:flagstat,idxstats,coverage depth。
bio-alignment-msa-statistics:Calculate alignment statistics ,涵盖 sequence identity,conservation scores,substitution matri…