forked from epi2me-labs/wf-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
502 lines (459 loc) · 29 KB
/
.gitlab-ci.yml
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
# Include shared CI
include:
- project: "epi2melabs/ci-templates"
file: "wf-containers.yaml"
variables:
# We'll use the single-file case for these runs
NF_WORKFLOW_OPTS: "--fastq test_data/reads.fastq.gz"
TEST_CMD: "bash test/run_ingress_test.sh"
S3_TEST_DATA: "s3://ont-exd-int-s3-euwst1-epi2me-labs/wf-template/cw-1019/test_data"
CI_FLAVOUR: "new"
PYTEST_CONTAINER_NAME: "wf-common"
PYTEST_CONTAINER_CONFIG_KEY: "common_sha="
# Remove this block in downstream templates
singularity-run:
tags: [] # no need for big ram
# end
docker-run:
# Remove this directive in downstream templates
tags: [] # no need for big ram
# Define a 1D job matrix to inject a variable named MATRIX_NAME into
# the CI environment, we can use the value of MATRIX_NAME to determine
# which options to apply as part of the rules block below
# NOTE There is a slightly cleaner way to define this matrix to include
# the variables, but it is broken when using long strings! See CW-756
parallel:
matrix:
# TODO: do we really need to run all from s3?
- MATRIX_NAME: [
"single-file", "single-file-s3", "single-file-chunk", "single-file-s3-chunk",
"case01", "case01-s3", "case01-chunk", "case01-single-chunk",
"case02", "case02-s3", "case02-no-fastcat_stats", "case02-no-fastcat_stats-s3", "case02-no-fastcat_stats-chunk", "case02-no-fastcat_stats-s3-chunk", "case02-per-read-stats",
"case03", "case03-s3",
"case04", "case04-s3",
"case05", "case05-s3",
"case06", "case06-s3",
"case07", "case07-s3",
"case08", "case08-s3", "case08-unclassified", "case08-unclassified-s3",
"case09", "case09-s3",
"case10", "case10-s3",
"case11", "case11-s3",
"case12", "case12-s3", "case12-unclassified", "case12-unclassified-s3",
"case13", "case13-s3",
"case14",
"case15",
"case16",
"case16-nonexisting-client-fields",
"case17",
"mutateParams",
"xam-single-file", "xam-single-file-s3",
"xam-case01", "xam-case01-s3",
"xam-case02", "xam-case02-s3",
"xam-case02-no-bamstats",
# TODO: need more fastq chunk tests for BAM?
"xam-case02-return_fastq", "xam-case02-return_fastq-chunks", "xam-case02-per_read_stats",
"xam-case03", "xam-case03-s3",
"xam-case03-sample_sheet",
"xam-case03-keep_unaligned-sample_sheet",
"xam-case03-keep_unaligned-sample_sheet-return_fastq",
"xam-case03-barcode02", # test_data/xam_ingress/case03/barcode02 contains only uBAM
"xam-case03-barcode02-keep_unaligned",
"xam-case04", "xam-case04-s3",
"xam-case05", "xam-case05-s3",
"xam-case06", "xam-case06-s3",
"xam-case07", "xam-case07-s3",
"xam-case08", "xam-case08-s3",
"xam-case08-skip",
"xam-case09", "xam-case09-s3",
"xam-case10", "xam-case10-s3",
"xam-case11", "xam-case11-s3",
# test RG DS parsing
"xam-case12", "xam-case12-s3",
"xam-case13", "xam-case13-s3",
"xam-case14", "xam-case14-s3",
]
rules:
# NOTE As we're overriding the rules block for the included docker-run
# we must redefine this CI_COMMIT_BRANCH rule to prevent docker-run
# being incorrectly scheduled for "detached merge request pipelines" etc.
- if: ($CI_COMMIT_BRANCH == null || $CI_COMMIT_BRANCH == "dev-template")
when: never
- if: $MATRIX_NAME == "single-file"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/reads.fastq.gz"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/reads.fastq.gz fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "single-file-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/reads.fastq.gz"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/reads.fastq.gz fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "single-file-chunk"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/reads.fastq.gz --fastq_chunk 1"
AFTER_NEXTFLOW_CMD: $TEST_CMD -c 1 test_data/reads.fastq.gz fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "single-file-s3-chunk"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/reads.fastq.gz --fastq_chunk 1"
AFTER_NEXTFLOW_CMD: $TEST_CMD -c 1 $S3_TEST_DATA/reads.fastq.gz fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case01"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case01"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case01 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case01-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case01"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case01 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case01-chunk"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case01 --fastq_chunk 1"
AFTER_NEXTFLOW_CMD: $TEST_CMD -c 1 test_data/fastq_ingress/case01 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case01-single-chunk"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case01 --fastq_chunk 9"
AFTER_NEXTFLOW_CMD: $TEST_CMD -c 9 test_data/fastq_ingress/case01 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case02"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case02"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case02 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case02-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case02"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case02 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case02-no-fastcat_stats"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case02 --wf.fastcat_stats false"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case02 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case02-no-fastcat_stats-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case02 --wf.fastcat_stats false"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case02 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case02-no-fastcat_stats-chunk"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case02 --wf.fastcat_stats false --fastq_chunk 1"
AFTER_NEXTFLOW_CMD: $TEST_CMD -c 1 test_data/fastq_ingress/case02 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case02-no-fastcat_stats-s3-chunk"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case02 --wf.fastcat_stats false --fastq_chunk 1"
AFTER_NEXTFLOW_CMD: $TEST_CMD -c 1 $S3_TEST_DATA/fastq_ingress/case02 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case02-per-read-stats"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case02 --wf.per_read_stats true"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case02 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case03"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case03"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Input directory '.*' cannot contain target files (ending in '.fastq' / '.fastq.gz' / '.fq' / '.fq.gz') and also sub-directories with such files."
- if: $MATRIX_NAME == "case03-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case03"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Input directory '.*' cannot contain target files (ending in '.fastq' / '.fastq.gz' / '.fq' / '.fq.gz') and also sub-directories with such files."
- if: $MATRIX_NAME == "case04"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case04"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case04 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case04-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case04"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case04 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case05"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case05 --sample_sheet test_data/fastq_ingress/case05/sample_sheet.csv"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case05 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case05-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case05 --sample_sheet $S3_TEST_DATA/fastq_ingress/case05/sample_sheet.csv"
AFTER_NEXTFLOW_CMD: $TEST_CMD -s $S3_TEST_DATA/fastq_ingress/case05/sample_sheet.csv $S3_TEST_DATA/fastq_ingress/case05 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case06"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case06 --sample_sheet test_data/fastq_ingress/case06/sample_sheet.csv"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case06 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case06-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case06 --sample_sheet $S3_TEST_DATA/fastq_ingress/case06/sample_sheet.csv"
AFTER_NEXTFLOW_CMD: $TEST_CMD -s $S3_TEST_DATA/fastq_ingress/case06/sample_sheet.csv $S3_TEST_DATA/fastq_ingress/case06 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case07"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case07 --sample_sheet test_data/fastq_ingress/case07/sample_sheet.csv"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case07 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case07-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case07 --sample_sheet $S3_TEST_DATA/fastq_ingress/case07/sample_sheet.csv"
AFTER_NEXTFLOW_CMD: $TEST_CMD -s $S3_TEST_DATA/fastq_ingress/case07/sample_sheet.csv $S3_TEST_DATA/fastq_ingress/case07 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case08"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case08"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case08 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case08-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case08"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case08 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case08-unclassified"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case08 --analyse_unclassified"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case08 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case08-unclassified-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case08 --analyse_unclassified"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case08 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case09"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case09"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case09 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case09-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case09"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case09 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case10"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case10"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Input directory '.*' cannot contain more than one level of sub-directories with target files (ending in '.fastq' / '.fastq.gz' / '.fq' / '.fq.gz')."
- if: $MATRIX_NAME == "case10-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case10"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Input directory '.*' cannot contain more than one level of sub-directories with target files (ending in '.fastq' / '.fastq.gz' / '.fq' / '.fq.gz')."
- if: $MATRIX_NAME == "case11"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case11 --sample_sheet test_data/fastq_ingress/case11/sample_sheet.csv"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Invalid sample sheet: values in 'alias' column not unique"
- if: $MATRIX_NAME == "case11-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case11 --sample_sheet $S3_TEST_DATA/fastq_ingress/case11/sample_sheet.csv"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Invalid sample sheet: values in 'alias' column not unique"
- if: $MATRIX_NAME == "case12"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case12"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Input directory '.*' must contain either target files (ending in '.fastq' / '.fastq.gz' / '.fq' / '.fq.gz') or sub-directories containing such files."
- if: $MATRIX_NAME == "case12-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case12"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Input directory '.*' must contain either target files (ending in .*) or sub-directories containing such files (no more than one layer deep)."
- if: $MATRIX_NAME == "case12-unclassified"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case12 --analyse_unclassified"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case12 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case12-unclassified-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case12 --analyse_unclassified"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case12 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case13"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case13"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case13 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case13-s3"
variables:
NF_WORKFLOW_OPTS: "--fastq $S3_TEST_DATA/fastq_ingress/case13"
AFTER_NEXTFLOW_CMD: $TEST_CMD $S3_TEST_DATA/fastq_ingress/case13 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case14"
variables:
NF_WORKFLOW_OPTS: "--fastq 'test_data/fastq_ingress/case14/reads01 space.fastq'"
AFTER_NEXTFLOW_CMD: "$TEST_CMD 'test_data/fastq_ingress/case14/reads01 space.fastq' fastq $$PWD/$$CI_PROJECT_NAME"
- if: $MATRIX_NAME == "case15"
variables:
NF_WORKFLOW_OPTS: "--fastq 'test_data/fastq_ingress/case 15'"
AFTER_NEXTFLOW_CMD: "$TEST_CMD 'test_data/fastq_ingress/case 15' fastq $$PWD/$$CI_PROJECT_NAME"
- if: $MATRIX_NAME == "case16"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case16 --sample_sheet test_data/fastq_ingress/case16/sample_sheet.csv --client_fields test_data/fastq_ingress/case16/client_fields.json"
AFTER_NEXTFLOW_CMD: >
$TEST_CMD test_data/fastq_ingress/case16 fastq $$PWD/$$CI_PROJECT_NAME
&& grep "Dwight" $$PWD/$$CI_PROJECT_NAME/wf-template-report.html
- if: $MATRIX_NAME == "case16-nonexisting-client-fields"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case16 --sample_sheet test_data/fastq_ingress/case16/sample_sheet.csv --client_fields test_data/fastq_ingress/case16/client_fields_not_there.json"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/fastq_ingress/case16 fastq $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "case17"
variables:
NF_WORKFLOW_OPTS: "--fastq test_data/fastq_ingress/case17 --sample_sheet test_data/fastq_ingress/case17/sample_sheet.csv --client_fields test_data/fastq_ingress/case17/client_fields.json"
AFTER_NEXTFLOW_CMD: >
$TEST_CMD test_data/fastq_ingress/case17 fastq $$PWD/$$CI_PROJECT_NAME
&& grep "ERROR: Client info is not correctly formatted" $$PWD/$$CI_PROJECT_NAME/wf-template-report.html
- if: $MATRIX_NAME == "mutateParams"
variables:
NF_WORKFLOW_OPTS: "--fastq no_reads.gz --mutate_fastq test_data/reads.fastq.gz"
# now the cases for xam_ingress
- if: $MATRIX_NAME == "xam-single-file"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-single-file-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case01"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case01"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Found mixed headers in (u)BAM files of sample 'case01'."
- if: $MATRIX_NAME == "xam-case01-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case01"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Found mixed headers in (u)BAM files of sample 'case01'."
- if: $MATRIX_NAME == "xam-case02"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case02"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case02-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case02"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case02-no-bamstats"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case02 --wf.bamstats false"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case02-return_fastq"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case02 --wf.return_fastq"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case02-return_fastq-chunks"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case02 --wf.return_fastq --fastq_chunk 1"
AFTER_NEXTFLOW_CMD: $TEST_CMD -c 1 test_data/xam_ingress/case02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case02-per_read_stats"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case02 --wf.return_fastq --wf.per_read_stats"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case03"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case03"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Found mixed headers in (u)BAM files of sample 'barcode03'."
- if: $MATRIX_NAME == "xam-case03-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case03"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Found mixed headers in (u)BAM files of sample 'barcode03'."
- if: $MATRIX_NAME == "xam-case03-keep_unaligned"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case03 --wf.keep_unaligned"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Found mixed headers in (u)BAM files of sample 'barcode03'."
- if: $MATRIX_NAME == "xam-case03-sample_sheet"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case03 --sample_sheet test_data/xam_ingress/case03/sample_sheet.csv"
AFTER_NEXTFLOW_CMD: >
$TEST_CMD test_data/xam_ingress/case03 bam $$PWD/$$CI_PROJECT_NAME
&& grep "Input directory 'barcode03' was found, but sample sheet '.*' has no such entry." .nextflow.log
- if: $MATRIX_NAME == "xam-case03-keep_unaligned-sample_sheet"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case03 --sample_sheet test_data/xam_ingress/case03/sample_sheet.csv --wf.keep_unaligned"
AFTER_NEXTFLOW_CMD: >
$TEST_CMD test_data/xam_ingress/case03 bam $$PWD/$$CI_PROJECT_NAME
&& grep "Input directory 'barcode03' was found, but sample sheet '.*' has no such entry." .nextflow.log
- if: $MATRIX_NAME == "xam-case03-keep_unaligned-sample_sheet-return_fastq"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case03 --sample_sheet test_data/xam_ingress/case03/sample_sheet.csv --wf.keep_unaligned --wf.return_fastq"
AFTER_NEXTFLOW_CMD: >
$TEST_CMD test_data/xam_ingress/case03 bam $$PWD/$$CI_PROJECT_NAME
&& grep "Input directory 'barcode03' was found, but sample sheet '.*' has no such entry." .nextflow.log
- if: $MATRIX_NAME == "xam-case03-barcode02"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case03/barcode02"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case03/barcode02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case03-barcode02-keep_unaligned"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case03/barcode02 --wf.keep_unaligned"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case03/barcode02 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case04"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case04"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Found mixed headers in (u)BAM files of sample 'case04'."
- if: $MATRIX_NAME == "xam-case04-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case04"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Found mixed headers in (u)BAM files of sample 'case04'."
- if: $MATRIX_NAME == "xam-case05"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case05/"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case05 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case05-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case05/"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case05 bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case06"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case06/"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case06/ bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case06-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case06/"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case06/ bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case07"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case07/"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case07/ bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case07-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case07/"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case07/ bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case08"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case08/reads.ubam --wf.keep_unaligned"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case08/reads.ubam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case08-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case08/reads.ubam --wf.keep_unaligned"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case08/reads.ubam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case08-skip"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case08/reads.ubam --wf.keep_unaligned false"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case08/reads.ubam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case09"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case09/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case09/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case09-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case09/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case09/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case10"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case10/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case10/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case10-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case10/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case10/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case11"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case11/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case11/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case11-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case11/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case11/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case12"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case12/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case12/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case12-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case12/reads.bam"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case12/reads.bam bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case13"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case13/"
AFTER_NEXTFLOW_CMD: $TEST_CMD test_data/xam_ingress/case13/ bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case13-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case13/"
AFTER_NEXTFLOW_CMD: $TEST_CMD ${S3_TEST_DATA}/xam_ingress/case13/ bam $$PWD/$$CI_PROJECT_NAME
- if: $MATRIX_NAME == "xam-case14"
variables:
NF_WORKFLOW_OPTS: "--bam test_data/xam_ingress/case14/"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Your input data contains reads basecalled with more than one basecaller model."
- if: $MATRIX_NAME == "xam-case14-s3"
variables:
NF_WORKFLOW_OPTS: "--bam ${S3_TEST_DATA}/xam_ingress/case14/"
ASSERT_NEXTFLOW_FAILURE: "1"
ASSERT_NEXTFLOW_FAILURE_REXP: "Your input data contains reads basecalled with more than one basecaller model."