-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_example.sh
More file actions
43 lines (36 loc) · 1.09 KB
/
run_example.sh
File metadata and controls
43 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
bed="example/example"
phenoFile="example/phenotypes.txt"
covarFile="example/covariates.txt"
kinship="example/example.kinship"
bgen="example/example.bgen"
sample="example/example.sample"
outDir="example/output"
mkdir -p ${outDir}
## step 0: generating HDF5 file from data (optional step)
convert-to-hdf5 \
--out ${outDir}/master \
--bed ${bed}
## step 1: run model fitting (step 1) on genotypes and phenotypes
quickdraws-step-1 \
--out ${outDir}/qd \
--bed ${bed} \
--phenoFile ${phenoFile} \
--covarFile ${covarFile} \
--kinship ${kinship} \
--hdf5 ${outDir}/master.hdf5
# step 2: get association stats for SNPs in bgen file
quickdraws-step-2 \
--out ${outDir}/qd \
--bed ${bed} \
--out_step1 ${outDir}/qd \
--covarFile ${covarFile} \
--unrel_sample_list example/unrelated_FID_IID.txt
quickdraws-step-2 \
--out ${outDir}/qd_imputed \
--bgen ${bgen} \
--sample ${sample} \
--out_step1 ${outDir}/qd \
--calibrationFile ${outDir}/qd.calibration \
--covarFile ${covarFile} \
--unrel_sample_list example/unrelated_FID_IID.txt