From 5619352aeca70100d25191d0feccb349e1783a5d Mon Sep 17 00:00:00 2001 From: "Carson J. Miller" Date: Tue, 23 Jul 2024 12:22:04 -0700 Subject: [PATCH] Add tests/nextflow.config --- tests/nextflow.config | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tests/nextflow.config diff --git a/tests/nextflow.config b/tests/nextflow.config new file mode 100644 index 00000000..478cf7d1 --- /dev/null +++ b/tests/nextflow.config @@ -0,0 +1,64 @@ +params { + // Base directory for nf-core/modules test data + modules_testdata_base_path = 's3://ngi-igenomes/testdata/nf-core/modules/' + + // Base directory for nf-core/fetchngs test data + pipelines_testdata_base_path = 's3://ngi-igenomes/testdata/nf-core/pipelines/fetchngs/1.15.0/' + + max_cpus = 4 + max_memory = '12.GB' + time = '2.h' +} + +// Impose sensible resource limits for testing +process { + withName: BOWTIE2_PHIX_REMOVAL_ALIGN { + cpus = 1 + memory = 12.GB + time = 2.h + } + + withName: CENTRIFUGE_CENTRIFUGE { + cpus = 1 + memory = 12.GB + time = 2.h + } + + withName: BOWTIE2_ASSEMBLY_ALIGN { + cpus = 1 + memory = 12.GB + time = 2.h + } + + withName: METABAT2_JGISUMMARIZEBAMCONTIGDEPTHS { + cpus = 1 + memory = 12.GB + time = 2.h + } + + withName: QUAST_BINS { + cpus = 1 + memory = 12.GB + time = 2.h + } + + withName: METABAT2_METABAT2 { + cpus = 1 + memory = 12.GB + time = 2.h + } +} + +// Impose same minimum Nextflow version as the pipeline for testing +manifest { + nextflowVersion = '!>=23.04.0' +} + +// Disable all Nextflow reporting options +timeline { enabled = false } +report { enabled = false } +trace { enabled = true } +dag { enabled = false } + +// Load modules test_data.config +includeConfig 'https://github.com/nf-core/modules/raw/master/tests/config/test_data.config'