-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsaige_step1_spGRMforNULLModel.wdl
89 lines (73 loc) · 2.24 KB
/
saige_step1_spGRMforNULLModel.wdl
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version 1.0
workflow saige_null_sGRM {
input {
File bedfile
File bimfile
File famfile
File phenofile
File spGRMfile
File spGRMSamplefile
String output_prefix
String phenoCol
String traitType
String invNormalize
String sampleIDCol
String covariatesList
String qCovarColList
}
call null {
input : phenofile = phenofile, bedfile = bedfile, bimfile = bimfile, famfile = famfile, spGRMfile = spGRMfile, spGRMSamplefile= spGRMSamplefile, output_prefix=output_prefix, phenoCol=phenoCol, traitType=traitType, invNormalize=invNormalize, sampleIDCol=sampleIDCol, covariatesList=covariatesList, qCovarColList=qCovarColList
}
output {
File modelfile = null.modelfile
File vrfile = null.vrfile
}
}
task null {
input {
File bedfile
File bimfile
File famfile
File spGRMfile
File spGRMSamplefile
File phenofile
String output_prefix
String phenoCol
String traitType
String invNormalize
String sampleIDCol
String covariatesList
String qCovarColList
}
command <<<
set -euo pipefail
/usr/bin/time -o ~{output_prefix}.runinfo.txt -v step1_fitNULLGLMM.R \
--bedFile=~{bedfile} \
--bimFile=~{bimfile} \
--famFile=~{famfile} \
--phenoFile=~{phenofile} \
--outputPrefix=~{output_prefix} \
--sparseGRMFile=~{spGRMfile} \
--sparseGRMSampleIDFile=~{spGRMSamplefile} \
--traitType=~{traitType} \
--phenoCol=~{phenoCol} \
--sampleIDColinphenoFile=~{sampleIDCol} \
--covarColList=~{covariatesList} \
--qCovarColList=~{qCovarColList} \
--LOCO=FALSE \
--useSparseGRMtoFitNULL=TRUE \
--isCateVarianceRatio=TRUE \
--nThreads=1 \
--minCovariateCount=10 \
--relatednessCutoff=0.05 \
--invNormalize=~{invNormalize}
>>>
output {
File modelfile = output_prefix + ".rda"
File vrfile = output_prefix + ".varianceRatio.txt"
File runinfofile = output_prefix + ".runinfo.txt"
}
runtime {
docker: "dx://saige:/SAIGE_GENE/docker_images/saige_1.0.9.tar.gz"
}
}