GWAS-eQTL colocalization analysis workflow

本文讨论了GWAS-eQTL集成分析的目的,介绍如何在R中使用locuscomparer和coloc包进行关联性分析,包括数据准备、coloc.abf函数的应用以及结果可视化。重点关注的是通过后验概率判断两个信号是否由同一因果变异体影响。
摘要由CSDN通过智能技术生成

1. The purpose of GWAS-eQTL intergration

  • Is the my variant an eQTL?
  • Is the leading variant of the GWAS and eQTL signal the same?
  • Is my GWAS association of interest driven by an eQTL that may indiciate a functinal mechanism?

GWAS locus that colocalized with eQTL is one of the primary and scalable signal for functional follow-up analyses.

2. Install R/RStudio and packages

  • Install the latest version of R or RStudio.
  • Install R pakage locuscomparer.
  • Install R package coloc:
    if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")
    BiocManager::install("snpStats")
    install("coloc")

3. Colocalization analysis using coloc

  • Read sample data into R:
    You can download the examples files: GWAS and eQTL datasets.
    eqtl <- read.table(file="[path to]/Artery_Coronary_v7_eQTL_PHACTR1.txt", header=T, as.is=T); head(eqtl) gwas <- read.table(file="[path to]/CAD_GWAS.txt", header=T, as.is=T); head(gwas)

  • Merge gwas and eqtl data sets by only shared “rs _ id”:
    input <- merge(eqtl, gwas, by="rs_id", all=FALSE, suffixes=c("_eqtl","gwas") head(input)

    Optinal: provide suffix to differentiate data source from gwas or eqtl.

  • Run coloc using coloc.abf() fuction: result <- coloc.abf(dataset1=list(pvalues=input$pval_nominal_gwas, type="cc", S=0.33, N=nrow(gwas)) dataset2=list(pvalues=input$pval_nominal_eqtl, type="quant", N=nrow(eqtl)), MAF=input$maf)

    Comments: coloc.abf() function needs two named lists (gwas and eqtl) that contain p-values, the type of study(“cc” for case-control studies, “quant” for quantitative traits) and sample size(N). s= the proportion of samples are cases, when type=“cc”. It also needs the minor allele frequency.

  • Read out posterior probabilities for colocalization:

    H0: neither trait has a genetic association in the region

    H1/H2: only trait 1/trait 2 has a genetic association in the region

    H3: both traits are associated, but with different causal variants

    H4: both traits are associated and share a single causal variant

    A posterior probability of ≥75% is considered strong evidence of the eQTL-GWAS pair influencing both the expression and GWAS trait at a particular region.

4. Visualization using locuscomparer

  • Define file names of the GWAS and eQTL data sets:
    gwas_fn="[path to]/CAD_GWAS.txt"
    eqtl_fn="[path to]/Artery_Coronary_v7_eQTL_PHACTR1.txt"
    marker_col="rs_id"
    pval_col="pval_nominal"

  • Run locuscompare to visualize: locuscompare(in_fn1=gwas_fn, in_fn2=eqtl_fn, title1="GWAS", title2="eQTL", marker_col1= marker_col, pval_col1=pval_col, marker_col2=marker_col, pval_col2=pval_col))

  • Results output:

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

皮肤小白生

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值