From 0f31f2824fa07c915c83fadda2d34dac617b25e4 Mon Sep 17 00:00:00 2001 From: FELIXANTOINE Date: Thu, 4 Jul 2024 12:53:02 -0400 Subject: [PATCH] Removed errors concerning test data and emit on multiple channels --- conf/test.config | 2 +- .../local/utils_nfcore_postprocessing_pipeline/main.nf | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/conf/test.config b/conf/test.config index 12db1a9..67a6359 100644 --- a/conf/test.config +++ b/conf/test.config @@ -22,7 +22,7 @@ params { // Input data // TODO nf-core: Specify the paths to your test data on nf-core/test-datasets // TODO nf-core: Give any required params for the test so that command line flags are not needed - input = params.pipelines_testdata_base_path + 'viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv' + //input = params.pipelines_testdata_base_path + 'viralrecon/samplesheet/samplesheet_test_illumina_amplicon.csv' // Genome references genome = 'R64-1-1' diff --git a/subworkflows/local/utils_nfcore_postprocessing_pipeline/main.nf b/subworkflows/local/utils_nfcore_postprocessing_pipeline/main.nf index a5d76c8..7cdfaa6 100644 --- a/subworkflows/local/utils_nfcore_postprocessing_pipeline/main.nf +++ b/subworkflows/local/utils_nfcore_postprocessing_pipeline/main.nf @@ -91,13 +91,14 @@ workflow PIPELINE_INITIALISATION { meta: tuple(it.familyId, [size: it.size, sequencingType: it.sequencingType]) files: tuple(it.familyId, file("${it.file}*")) } - .set { sampleFile } + .set { sampleChannel} emit: - samplesheet = sampleFile + sampleFiles = sampleChannel.files + sampleMeta = sampleChannel.meta versions = ch_versions - sampleFile.meta | view{"Meta: $it"} - sampleFile.files | view{"files: $it"} + sampleMeta | view{"Meta: $it"} + sampleFiles | view{"files: $it"} // // Create channel from input file provided through params.input //