-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnextflow.config
173 lines (159 loc) · 6.15 KB
/
nextflow.config
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
params {
outdir = 'results'
input_vcf_fn = "$launchDir/input_vcfs.tsv"
input_subpop_fn = "$launchDir/input_subpops.tsv"
samples_included = ''
meta = ''
test = false
}
// As of version 22.08.0-edge the use Conda recipes specified using the conda
// directive needs to be enabled explicitly by setting the option shown below in
// the pipeline configuration file
conda.enabled = true
env {
TMPDIR="/tmp"
}
profiles{
standard {
executor
{
name = 'local'
queueSize = 35
cpus = 15
pollInterval = '30 sec'
}
process {
// conda = "/local/projects-t3/toconnor_grp/bing.guo/miniconda3/envs/empirical"
errorStrategy = {task.attempt < 5 ? 'retry': 'finish'}
maxRetries = 5
cpus = 1
memory = '5 GB'
cache = 'lenient' // NFS report inconsistent file timestamp for unmodified file; lenient mode of caching can avoid this problem.
withName: "SEQARRAY_VCF_TO_GDS" {
// moimix/seqarray is installed in the `empirical` environment
// conda = "/local/chib/toconnor_grp/bing/mambaforge/envs/moimix"
cpus = 15
memory = {def mem = 20 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "R_MOIMIX_FWS" {
// moimix is installed in the `empirical` environment
// conda = "/local/chib/toconnor_grp/bing/mambaforge/envs/moimix"
memory = {def mem = 20 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "CALL_ISORELATE" {
cpus = 2
memory = {def mem = 10 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "BEAGLE_IMPUTE" {
cpus = 6
}
withName: "BCFTOOLS_CONCAT" {
cpus = 15
}
}
}
sge {
executor {
name = 'sge'
queueSize = 200
pollInterval = '30 sec'
}
process {
// conda = "/local/projects-t3/toconnor_grp/bing.guo/miniconda3/envs/empirical"
errorStrategy = { sleep(Math.pow(2 , task.attempt) * 20 as long); return task.attempt < 5 ? 'retry': 'finish'}
maxRetries = 5
cpus = 5
memory = '30 GB'
cache = 'lenient' // NFS report inconsistent file timestamp for unmodified file; lenient mode of caching can avoid this problem.
queue = "threaded.q"
penv = "thread"
clusterOptions = "-P toconnor-lab -cwd -V"
// For faster testing
withName: "R_MOIMIX_FWS" {
conda = "/local/chib/toconnor_grp/bing/mambaforge/envs/moimix"
}
withName: "SEQARRAY_VCF_TO_GDS" {
conda = "/local/chib/toconnor_grp/bing/mambaforge/envs/moimix"
cpus = 20
memory = {def mem = 20 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "CALL_ISORELATE" {
cpus = 10
memory = {def mem = 20 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "BEAGLE_IMPUTE" {
cpus = 6
}
// In this step, calculaing xirs stats requires quite a lot memory
withName: "PROC_DIST_NE"{
memory = {def mem = 30 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "RUN_IBDNE" {
cpus = 6
memory = {def mem = 10 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "DEPLOID_PHASE_POLYCLONAL" {
cpus = 3
memory = {def mem = 5 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
}
}
hq {
executor {
name = 'hq'
queueSize = 200
pollInterval = '30 sec'
}
process {
conda = "/autofs/chib/toconnor_grp/bing/mambaforge/envs/empirical"
errorStrategy = { sleep(Math.pow(2 , task.attempt) * 20 as long); return task.attempt < 5 ? 'retry': 'finish'}
maxRetries = 5
cpus = 5
memory = '15 GB'
cache = 'lenient' // NFS report inconsistent file timestamp for unmodified file; lenient mode of caching can avoid this problem.
// For faster testing
withName: "R_MOIMIX_FWS" {
conda = "/local/chib/toconnor_grp/bing/mambaforge/envs/moimix"
}
withName: "SEQARRAY_VCF_TO_GDS" {
conda = "/local/chib/toconnor_grp/bing/mambaforge/envs/moimix"
cpus = 20
memory = {def mem = 20 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "CALL_ISORELATE" {
cpus = 10
memory = {def mem = 20 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "BEAGLE_IMPUTE" {
cpus = 6
}
// In this step, calculaing xirs stats requires quite a lot memory
withName: "PROC_DIST_NE"{
memory = {def mem = 30 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "RUN_IBDNE" {
cpus = 6
memory = {def mem = 10 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
withName: "DEPLOID_PHASE_POLYCLONAL" {
cpus = 3
memory = {def mem = 5 * 2 ** task.attempt; mem > 300 ? '300 GB' : "$mem GB"}
}
}
}
}
manifest {
name = 'posseleff_empirical'
author = 'Bing Guo'
homePage = 'https://github.com/posseleff_empirical'
description = 'Nextflow IBD analyses pipeline'
mainScript = 'main.nf'
nextflowVersion = '>=22.10.0'
version = '0.2'
}
trace {
enabled = true
overwrite=true
file = "${params.outdir}/pipeline_trace.txt"
fields = 'task_id,hash,name,status,exit,realtime,%cpu,rss,workdir'
}