Commit 945eeb5
committed
Move self-contained channel construction into PIPELINE_INITIALISATION
Part of #1029: params used only to build a channel, with no other logic
depending on how that channel is constructed, should be built once in
PIPELINE_INITIALISATION and threaded down as explicit arguments rather
than workflows/ampliseq.nf reaching into global params directly.
Moves 9 such channels (metadata, report_template/css/logo/abstract,
pplace_sheet's initial value, expected_sequences/abundances,
metadata_category) through PIPELINE_INITIALISATION -> NFCORE_AMPLISEQ ->
AMPLISEQ via take:/emit:. Behavior is unchanged; this is a pure plumbing
refactor covered by the existing nf-test snapshot suite.
Adds a second test case to tests/default.nf.test for --report_abstract
and --metadata_category, the two params among these that weren't
exercised by any existing test profile.
Deliberately out of scope (left for follow-up): the ~90 remaining
scalar params.X reads in workflows/ampliseq.nf, the 6 per-classifier
reference-taxonomy channels (entangled with catalog-download logic),
and params.X reaches inside subworkflows/local and modules/local.1 parent 7b7658e commit 945eeb5
4 files changed
Lines changed: 128 additions & 37 deletions
File tree
- subworkflows/local/utils_nfcore_ampliseq_pipeline
- tests
- workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
| |||
41 | 52 | | |
42 | 53 | | |
43 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
44 | 64 | | |
45 | 65 | | |
46 | 66 | | |
| |||
251 | 271 | | |
252 | 272 | | |
253 | 273 | | |
254 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
255 | 285 | | |
256 | 286 | | |
257 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 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 | + | |
43 | 89 | | |
44 | 90 | | |
45 | 91 | | |
| |||
124 | 170 | | |
125 | 171 | | |
126 | 172 | | |
127 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
128 | 183 | | |
129 | 184 | | |
130 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 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 | + | |
66 | 93 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
127 | 136 | | |
128 | 137 | | |
129 | 138 | | |
| |||
134 | 143 | | |
135 | 144 | | |
136 | 145 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 206 | + | |
| 207 | + | |
229 | 208 | | |
230 | 209 | | |
231 | 210 | | |
| |||
1113 | 1092 | | |
1114 | 1093 | | |
1115 | 1094 | | |
1116 | | - | |
| 1095 | + | |
1117 | 1096 | | |
1118 | 1097 | | |
1119 | 1098 | | |
| |||
1221 | 1200 | | |
1222 | 1201 | | |
1223 | 1202 | | |
1224 | | - | |
1225 | | - | |
| 1203 | + | |
| 1204 | + | |
1226 | 1205 | | |
1227 | 1206 | | |
1228 | 1207 | | |
| |||
0 commit comments