GWAS Simulation

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

时间: 2024-10-27 14:17:36

GWAS Simulation的相关文章

Simulation.Lab.Software.SimLab.Composer.2015.v6.1.MACOSX 1CD

CA Spectrum Linux VM 10.01.00.00.103 Linux 2DVD  Tahoe Design HYDROFLO v3.0.0.4 1CD  CA Spectrum Windows VM 10.01.00.00.103 Win64 2DVD  Delcam Exchange 2016 R2 CR 8.3.1005 Win64 1CD  Delcam PowerSHAPE 2016 SP2 Update only 1CD  ESI Group VA One 2015.0

spec2006中精确的simulation points执行点

使用测试集spec2006测试cpu性能时,如果完全跑完所有程序,需要数周甚至数月,周期非常长,想得到实验结果,黄花菜都凉了!现在比较认可的做法是从simulation point开始运行,那么如何生成它呢? 使用simpoints工具,自己从头到尾跑一遍生成BBV,再寻找simpoints: 使用前人的现有的simpoints结果,spec2006_simpoints,来源于http://www.freewebs.com/gkofwarf/simpoints.htm,作者信息,该文档包含21个

【DataStructure】One of queue usage: Simulation System

Statements: This blog was written by me, but most of content  is quoted from book[Data Structure with Java Hubbard] [Description] This simulationillustrates objectoriented programming(OOP). Java objects are instantiated to represent all the interacti

Simulation.java

package EPON; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.concurrent.Semaphore; public class Simulation { public static int ONUNUMBER = 32; public static final int CYCLENUMBER = 10000; publi

An example of how to do a simulation by LAMMPS

The polymer chain of 100 atoms was specially prepared in MATLAB. The atom's Z coordinate does not varies much, all of them are within 2 ?. The distance between atoms is about 1.5 ?. Basically, the chain goes from left upper to right lower corner of t

NS Simulation Basic

这个网站上的一系列讲解NS2的内容真的是深入浅出,看完立刻豁然开朗.所以就接连转了几篇. Scheduling Events那篇里的例子特别好,看完就懂了. http://www.mathcs.emory.edu/~cheung/Courses/558-old/Syllabus/90-NS/ NS Simulation Basic Common NS classes The following figure shows the most commonly used NS classes in w

Configure Pi as simulation hardware for Simulink

1. Only version not older than R2013 supports Raspberry Pi. First, download support package in Matlab: http://www.mathworks.cn/matlabcentral/fx_files/40313/5/raspberrypi.zip 2. Open raspberrypi.mlpkginstall in Matlab, and just follow the instructions

dipole antenna simulation by CST

CST偶极子天线仿真,半波振子天线 一.本文使用CST仿真频率为1GHz的偶极子天线,使用2013版本.仿真的步骤为 1.选择一个CST的天线工程模板 2.设置好默认的单位 3.设置背景的材料(空气腔等) 4.建模,画出天线的结构 5.设置频率 6.设置边界条件 7.定义激励 8.远场设置 9.设置远场结果分析的模板 10.选择合适的求解器 11.分析结果 二.具体实现. 1.新建工程,依次选择Microwave&RF->Antennas--->wire--->Integral

NS Simulation: Scheduling Events (examples inside)

NS Simulation: Scheduling Events Simulation time A similation system (such as NS) must have a built-in simulation clock - it represents the "clock" in the real world. You can examine (read) the value of the simulation clock by using the now comm