生信分析流程科研信息学

多基因风险评分分析(Polygenic risk score)

2018-11-20  本文已影响298人  子鹿学生信

多基因风险评分是一个用来评估个体患某种疾病风险的方法,它是通过GWAS统计数据的基因型效应值来计算的。计算公式如下:


image.png

n: 纳入的SNP的数量;
Xi:SNP I的基因型(0,1,2)
Wi:GWAS发现的SNP的权重,其中:


分析之前要对GWAS数据做质控,e.g. removing SNPs according to low genotyping rate, minor allele frequency>1%, removing SNPs with linkage disequilibrium with an R2 value greater than 0.1 in 500-kb
windows or imputation ‘info score>0.6’ and individuals with low genotyping rate.

plink --bfile ($target) \
    --maf 0.05 \
    --mind 0.1 \
    --geno 0.1 \
    --hwe 1e-6 \
    --make-just-bim \
    --make-just-fam \
    --out ($target).qc

做完以上步骤,将--keep (target).qc.fam --extract (target).qc.bim 命令添加到PRSice 软件命令行中过滤SAMPLE和SNP。


安装PRSice软件:

git clone https://github.com/choishingwan/PRSice.git
cd PRSice
git checkout beta_testing
g++ --std=c++11 -I inc/ -isystem lib/ -lz -DNDEBUG -O2 -pthread src/*.cpp -o PRSice

# 安装完成后测试下是否成功
./PRSice
# 自动下载需要的包
Rscript PRSice.R --dir .

出现以下界面,说明安装成功:


image.png

需要输入文件:


如果文件中含有imputation info score 或者MAF,可以用--info-base <Info Name>,<Info Threshold> 和 --maf-base <MAF Name>,<MAF Threshold>参数对SNP进行过滤。
也可以对case/control分别进行过滤 --maf-base <Name for Control>,<Threshold for Control>:<Name for Case>,<Threshold for Case>



输出结果:

image.png
Rscript PRSice.R --dir . \
    --prsice ./PRSice \
    --base TOY_BASE_GWAS.assoc \
    --target TOY_TARGET_DATA \
    --thread 1 \
    --stat OR \
    --binary-target T
Rscript PRSice.R --dir . \
    --prsice ./PRSice \
    --base TOY_BASE_GWAS.assoc \
    --target TOY_TARGET_DATA \
    --thread 1 \
    --stat BETA \
    --beta \
    --binary-target F

参考:1. A guide to performing Polygenic Risk Score analyses

  1. GitHub - choishingwan/PRSice: A software package for calculating, applying, evaluating and plotting the results of polygenic risk scores https://github.com/choishingwan/PRSice/
  2. https://choishingwan.github.io/PRSice/step_by_step/
上一篇 下一篇

猜你喜欢

热点阅读