From d40e65071923f99ef579269a44420c9ab5a023ca Mon Sep 17 00:00:00 2001 From: maxulysse Date: Fri, 11 Oct 2024 08:15:59 +0200 Subject: [PATCH 1/2] only one samplesheetToList --- .../utils_nfcore_rnaseq_pipeline/main.nf | 22 ------------------- workflows/rnaseq/main.nf | 6 ++--- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf b/subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf index 2aa411a68..74ff6c635 100644 --- a/subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf +++ b/subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf @@ -12,7 +12,6 @@ import groovy.json.JsonSlurper include { UTILS_NFSCHEMA_PLUGIN } from '../../nf-core/utils_nfschema_plugin' include { paramsSummaryMap } from 'plugin/nf-schema' -include { samplesheetToList } from 'plugin/nf-schema' include { completionEmail } from '../../nf-core/utils_nfcore_pipeline' include { completionSummary } from '../../nf-core/utils_nfcore_pipeline' include { imNotification } from '../../nf-core/utils_nfcore_pipeline' @@ -73,28 +72,7 @@ workflow PIPELINE_INITIALISATION { // validateInputParameters() - // - // Create channel from input file provided through params.input - // - - Channel - .fromList(samplesheetToList(params.input, "${projectDir}/assets/schema_input.json")) - .map { - meta, fastq_1, fastq_2 -> - if (!fastq_2) { - return [ meta.id, meta + [ single_end:true ], [ fastq_1 ] ] - } else { - return [ meta.id, meta + [ single_end:false ], [ fastq_1, fastq_2 ] ] - } - } - .groupTuple() - .map { - checkSamplesAfterGrouping(it) - } - .set{ ch_samplesheet } - emit: - samplesheet = ch_samplesheet versions = ch_versions } diff --git a/workflows/rnaseq/main.nf b/workflows/rnaseq/main.nf index 2ac6dcf86..84bedaeb6 100755 --- a/workflows/rnaseq/main.nf +++ b/workflows/rnaseq/main.nf @@ -121,10 +121,10 @@ workflow RNASEQ { } } .groupTuple() - .map { - checkSamplesAfterGrouping(it) + .map { samplesheet -> + checkSamplesAfterGrouping(samplesheet) } - .set{ ch_fastq } + .set { ch_fastq } // // Run RNA-seq FASTQ preprocessing subworkflow From 3989b243a05bb1454e5a8ad56a77b3bea19177fd Mon Sep 17 00:00:00 2001 From: maxulysse Date: Fri, 11 Oct 2024 08:17:15 +0200 Subject: [PATCH 2/2] update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d45d8e28..073ef14c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ Special thanks to the following for their contributions to the release: - [PR #1398](https://github.com/nf-core/rnaseq/pull/1398) - Bump pipeline version to 3.17.0dev - [PR #1401](https://github.com/nf-core/rnaseq/pull/1401) - Template update for nf-core/tools v3.0.1 +- [PR #1406](https://github.com/nf-core/rnaseq/pull/1406) - Keep only one samplesheetToList ### Parameters