Skip to content

Commit 7c6eb52

Browse files
committed
Consistent order of process directives
1 parent ea5069e commit 7c6eb52

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

main.nf

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ if (!bamindex) {
4545
output:
4646
file 'bamfile.bai' into bamfile_index
4747

48-
module 'bioinfo-tools'
49-
module "$params.modules.samtools"
50-
5148
executor choose_executor()
5249
queue 'core'
5350
time params.runtime.simple
5451

52+
module 'bioinfo-tools'
53+
module "$params.modules.samtools"
54+
5555
when: 'indexbam' in workflowSteps
5656

5757
script:
@@ -74,15 +74,15 @@ process manta {
7474

7575
publishDir params.outdir, mode: 'copy'
7676

77-
module 'bioinfo-tools'
78-
module "$params.modules.manta"
79-
8077
errorStrategy { task.exitStatus == 143 ? 'retry' : 'terminate' }
8178
time { params.runtime.caller * 2**(task.attempt-1) }
8279
maxRetries 3
8380
queue 'core'
8481
cpus 4
8582

83+
module 'bioinfo-tools'
84+
module "$params.modules.manta"
85+
8686
when: 'manta' in workflowSteps
8787

8888
script:
@@ -112,13 +112,13 @@ if (!params.fastq) {
112112
output:
113113
file 'fastq.fq.gz' into fastq
114114

115-
module 'bioinfo-tools'
116-
module "$params.modules.samtools"
117-
118115
executor choose_executor()
119116
queue 'core'
120117
time params.runtime.simple
121118

119+
module 'bioinfo-tools'
120+
module "$params.modules.samtools"
121+
122122
when: 'fastq' in workflowSteps
123123

124124
script:
@@ -320,13 +320,13 @@ process snpEff {
320320

321321
publishDir params.outdir, mode: 'copy'
322322

323-
module 'bioinfo-tools'
324-
module "$params.modules.snpeff"
325-
326323
executor choose_executor()
327324
queue 'core'
328325
time params.runtime.simple
329326

327+
module 'bioinfo-tools'
328+
module "$params.modules.snpeff"
329+
330330
when: 'snpeff' in workflowSteps
331331

332332
script:

0 commit comments

Comments
 (0)