码迷,mamicode.com
首页 > 其他好文 > 详细

GWAS Simulation

时间:2016-10-05 07:19:27      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

comvert hmp to ped1, ped2, map file
SB1.ped, SB2.ped, SB.map

1, choose 20 markers for 30 times
(WD: /share/bioinfo/miaochenyong/GWAS/SB/20Markers-1To5Effect)
python ../choose_multi-markers.py SB.imputed.916.filtered.hmp 20 30 marker pheno

2, combine pheno, ped1, ped2 to intact ped file
python ../combinePed.py SB1.ped SB2.ped SB pheno 30

3, copy SB.map to 30 different SB-*.map
python CPmapTOmore.py

4, *map, *ped to *bed, *bim, *fam
python generatePLINKcmd.py > PLINK.cmd
chmod 777 PLINK.cmd
parallel -j 6 < PLINK.cmd

5, run gemma
python generateGemmaCmd.py > gemma.cmd
chmod 777 gemma.cmd
parallel -j 6 < gemma.cmd

 

Calculate FDR value:
(WD: /share/bioinfo/miaochenyong/GWAS/SB/20Markers-1To5Effect-FDR)
1, shuffle pheno1.txt to 100 pheno*.txt
python ../shufflePheno.py pheno3.txt 100 pheno-shuffled

2, combine pheno, ped1, ped2 to intact ped file
python ../combinePed.py SB1.ped SB2.ped SB-shuffle pheno-shuffled 100

3, copy SB.map to 10 different SB-shuffle*.map
python CPmapTOmore.py 100 SB-shuffle

4, *map, *ped to *bed, *bim, *fam
python ../generatePLINKcmd.py > PLINK.cmd
chmod 777 PLINK.cmd
parallel -j 10 < PLINK.cmd

5, run gemma
python ../generateGemmaCmd.py > gemma.cmd
chmod 777 gemma.cmd
parallel -j 10 < gemma.cmd

6, calsulate FDR
cd output
python ../../calculateFDR.py SB-shuffle- 100 results.txt


Calculate average Power:
(WD: /share/bioinfo/miaochenyong/GWAS/SB/20Markers-1To5Effect/output)
python ../../calPower.py SB- markers-new 30 /share/bioinfo/miaochenyong/GWAS/SB/20Markers-1To5Effect-FDR/output/results.txt SB-
python ../../calAveragePower.py

 

cmiao

UNL

beadle center

GWAS Simulation

标签:

原文地址:http://www.cnblogs.com/freemao/p/5931689.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!