-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmodules.config
More file actions
125 lines (116 loc) · 4.04 KB
/
Copy pathmodules.config
File metadata and controls
125 lines (116 loc) · 4.04 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
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
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Config file for defining DSL2 per module options and publishing paths
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Available keys to override module options:
ext.args = Additional arguments appended to command in module.
ext.args2 = Second set of arguments appended to command in module (multi-tool modules).
ext.args3 = Third set of arguments appended to command in module (multi-tool modules).
ext.prefix = File name prefix for output files.
----------------------------------------------------------------------------------------
*/
process {
publishDir = [
path: { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
withName: 'MULTIQC' {
ext.args = { params.multiqc_title ? "--title \"$params.multiqc_title\"" : '' }
publishDir = [
path: { "${params.outdir}/multiqc" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
withName: 'STAGEFILES' {
publishDir = [
enabled: false
]
}
withName: 'NUMORPHINTENSITY' {
publishDir = [
path: { "${params.outdir}/numorphintensity/" },
mode: params.publish_dir_mode,
pattern: 'results/**/*',
saveAs: { filename ->
if (filename.equals('versions.yml')) {
null
} else {
filename.replaceFirst("^results/", "${meta.id}/")
}
}
]
}
withName: 'NUMORPHALIGN' {
publishDir = [
path: { "${params.outdir}/numorphalign/" },
mode: params.publish_dir_mode,
pattern: 'results/**/*',
saveAs: { filename ->
if (filename.equals('versions.yml')) {
null
} else {
filename.replaceFirst("^results/", "${meta.id}/")
}
}
]
}
withName: 'NUMORPHSTITCH' {
publishDir = [
path: { "${params.outdir}/numorphstitch/" },
mode: params.publish_dir_mode,
pattern: 'results/**/*',
saveAs: { filename ->
if (filename.equals('versions.yml')) {
null
} else {
filename.replaceFirst("^results/", "${meta.id}/")
}
}
]
}
withName: 'NUMORPHRESAMPLE' {
publishDir = [
path: { "${params.outdir}/numorphresample/" },
mode: params.publish_dir_mode,
pattern: 'results/**/*',
saveAs: { filename ->
if (filename.equals('versions.yml')) {
null
} else {
filename.replaceFirst("^results/", "${meta.id}/")
}
}
]
}
withName: 'NUMORPHREGISTER' {
publishDir = [
path: { "${params.outdir}/numorphregister/" },
mode: params.publish_dir_mode,
pattern: 'results/**/*',
saveAs: { filename ->
if (filename.equals('versions.yml')) {
null
} else {
filename.replaceFirst("^results/", "${meta.id}/")
}
}
]
}
withName: 'NUMORPH3DUNET' {
publishDir = [
path: { "${params.outdir}/numorph3dunet/" },
mode: params.publish_dir_mode,
pattern: 'results/*',
saveAs: { filename ->
if (filename.equals('versions.yml')) {
null
}
else {
filename.replaceFirst("^results/", "${meta.id}/")
}
}
]
}
}