File tree Expand file tree Collapse file tree 3 files changed +4
-25
lines changed
subworkflows/local/utils_nfcore_rnaseq_pipeline Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Special thanks to the following for their contributions to the release:
1717- [ PR #1398 ] ( https://github.com/nf-core/rnaseq/pull/1398 ) - Bump pipeline version to 3.17.0dev
1818- [ PR #1401 ] ( https://github.com/nf-core/rnaseq/pull/1401 ) - Template update for nf-core/tools v3.0.1
1919- [ PR #1405 ] ( https://github.com/nf-core/rnaseq/pull/1405 ) - Fix bad variable name in subworkflow
20+ - [ PR #1406 ] ( https://github.com/nf-core/rnaseq/pull/1406 ) - Keep only one samplesheetToList
2021
2122### Parameters
2223
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import groovy.json.JsonSlurper
1212
1313include { UTILS_NFSCHEMA_PLUGIN } from ' ../../nf-core/utils_nfschema_plugin'
1414include { paramsSummaryMap } from ' plugin/nf-schema'
15- include { samplesheetToList } from ' plugin/nf-schema'
1615include { completionEmail } from ' ../../nf-core/utils_nfcore_pipeline'
1716include { completionSummary } from ' ../../nf-core/utils_nfcore_pipeline'
1817include { imNotification } from ' ../../nf-core/utils_nfcore_pipeline'
@@ -71,28 +70,7 @@ workflow PIPELINE_INITIALISATION {
7170 //
7271 validateInputParameters()
7372
74- //
75- // Create channel from input file provided through params.input
76- //
77-
78- Channel
79- .fromList(samplesheetToList(params. input, " ${ projectDir} /assets/schema_input.json" ))
80- .map {
81- meta, fastq_1, fastq_2 ->
82- if (! fastq_2) {
83- return [ meta. id, meta + [ single_end :true ], [ fastq_1 ] ]
84- } else {
85- return [ meta. id, meta + [ single_end :false ], [ fastq_1, fastq_2 ] ]
86- }
87- }
88- .groupTuple()
89- .map {
90- checkSamplesAfterGrouping(it)
91- }
92- .set{ ch_samplesheet }
93-
9473 emit :
95- samplesheet = ch_samplesheet
9674 versions = ch_versions
9775}
9876
Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ workflow RNASEQ {
121121 }
122122 }
123123 .groupTuple()
124- .map {
125- checkSamplesAfterGrouping(it )
124+ .map { samplesheet ->
125+ checkSamplesAfterGrouping(samplesheet )
126126 }
127- .set{ ch_fastq }
127+ .set { ch_fastq }
128128
129129 //
130130 // Run RNA-seq FASTQ preprocessing subworkflow
You can’t perform that action at this time.
0 commit comments