-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
94 lines (89 loc) · 5.78 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
include:
- project: "epi2melabs/ci-templates"
file: "wf-containers.yaml"
variables:
# chunk_size here forces multiple chunks even for test data which better exercises some channels
NF_WORKFLOW_OPTS: "--fastq test_data/fastq --reference_based_assembly --reference test_data/ref/reference.subseq.fa.gz --threads 4 --chunk_size 100000"
NF_IGNORE_PROCESSES: "deNovo"
CI_FLAVOUR: "new"
docker-run:
parallel:
matrix:
- MATRIX_NAME: [de-novo, amr, barcode04, mixed-species, reference-iso, de-novo-advanced_options, de-novo-bam,
bacteria-medaka-model]
TAG: [large_ram]
- MATRIX_NAME: [reference-based, check-model, sample-sheet]
TAG: [""]
tags:
- $TAG
rules:
# Reference-based assembly requires 16GB, de novo requires 32GB
- if: ($CI_COMMIT_BRANCH == null || $CI_COMMIT_BRANCH == "dev-template")
when: never
- if: $MATRIX_NAME == "de-novo"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 32GB \
--fastq test_data/fastq --threads 3 --chunk_size 100000"
NF_IGNORE_PROCESSES: "medakaVariant,medakaVariantHdf,makePerSampleReports"
- if: $MATRIX_NAME == "de-novo-bam"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 32GB \
--bam test_data/bam --threads 4 --chunk_size 100000 --override_basecaller_cfg [email protected]"
NF_IGNORE_PROCESSES: "medakaVariant,medakaVariantHdf,makePerSampleReports"
- if: $MATRIX_NAME == "de-novo-advanced_options"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 32GB \
--fastq test_data/fastq --threads 3 --chunk_size 100000 --flye_opts '--genome-size 25k'"
NF_IGNORE_PROCESSES: "medakaVariant,medakaVariantHdf,makePerSampleReports"
- if: $MATRIX_NAME == "reference-based"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 16GB \
--fastq test_data/fastq --reference_based_assembly --reference test_data/ref/reference.subseq.fa.gz --threads 4 --chunk_size 100000"
NF_IGNORE_PROCESSES: "deNovo,assemblyStats,runProkka,makePerSampleReports"
- if: $MATRIX_NAME == "check-model"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 16GB \
--fastq test_data/fastq --reference_based_assembly --reference test_data/ref/reference.subseq.fa.gz --threads 4 --chunk_size 100000"
NF_IGNORE_PROCESSES: "deNovo,assemblyStats,runProkka,makePerSampleReports"
- if: $MATRIX_NAME == "amr"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 32GB \
--fastq s3://ont-exd-int-s3-euwst1-epi2me-labs/wf-bacterial-genomes/test_data/isolates_fastq --sample_sheet test_data/isolates_sample_sheet.csv --threads 3 --chunk_size 100000 --isolates --client_fields test_data/client_fields.json --override_basecaller_cfg [email protected]"
NF_IGNORE_PROCESSES: "runProkka,medakaVariant,medakaVariantHdf,makePerSampleReports"
- if: $MATRIX_NAME == "sample-sheet"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 16GB \
--fastq test_data/fastq --reference_based_assembly --reference test_data/ref/reference.subseq.fa.gz --threads 4 --chunk_size 100000 \
--sample_sheet test_data/sample_sheet.csv"
NF_IGNORE_PROCESSES: "deNovo,assemblyStats,runProkka,makePerSampleReports"
- if: $MATRIX_NAME == "barcode04"
# isolates barcode04 only has 4 reads and flye will fail due to low coverage
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 32GB \
--fastq s3://ont-exd-int-s3-euwst1-epi2me-labs/wf-bacterial-genomes/test_data/isolates_fastq/barcode04 \
--threads 3 --chunk_size 100000 --override_basecaller_cfg [email protected]"
NF_IGNORE_PROCESSES: "alignReads,readStats,coverStats,splitRegions,\
medakaConsensus,medakaNetwork,medakaVariant,medakaVariantHdf,makeReport,runProkka,makePerSampleReports"
- if: $MATRIX_NAME == "mixed-species"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 32GB \
--fastq s3://ont-exd-int-s3-euwst1-epi2me-labs/wf-bacterial-genomes/test_data/isolates_fastq --sample_sheet test_data/isolates_mixed_sample_sheet.csv --threads 3 --chunk_size 100000 --isolates --override_basecaller_cfg [email protected]"
NF_IGNORE_PROCESSES: "runProkka,medakaVariant,medakaVariantHdf"
# serotyping
- if: $MATRIX_NAME == "reference-iso"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 16GB \
--fastq s3://ont-exd-int-s3-euwst1-epi2me-labs/wf-bacterial-genomes/wf-bacterial-genomes-demo/isolates_fastq/barcode02 --reference_based_assembly --reference test_data/ref/salmonella_reference.fa.gz --threads 4 --chunk_size 100000 --isolates --override_basecaller_cfg [email protected]"
NF_IGNORE_PROCESSES: "deNovo,runProkka"
- if: $MATRIX_NAME == "bacteria-medaka-model"
variables:
NF_WORKFLOW_OPTS: "-executor.\\$$local.memory 32GB \
--bam test_data/bam --threads 4 --chunk_size 100000 --override_basecaller_cfg [email protected]"
NF_IGNORE_PROCESSES: "runProkka,makePerSampleReports"
# reminder: update AUX_IMAGE_TAG if the aux container package versions are changed
release-prokka:
extends: .aux-container
variables:
AUX_IMAGE_NAME: "prokka"
AUX_IMAGE_ENVFILE: "environment_prokka.yaml"
AUX_IMAGE_TAG: "1.14.5"