Skip to content

Commit 7794c69

Browse files
authored
Merge pull request #1406 from maxulysse/improve_samplesheetToList
FIX: Keep only one samplesheetToList
2 parents 08dbcc9 + 141c15a commit 7794c69

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import groovy.json.JsonSlurper
1212

1313
include { UTILS_NFSCHEMA_PLUGIN } from '../../nf-core/utils_nfschema_plugin'
1414
include { paramsSummaryMap } from 'plugin/nf-schema'
15-
include { samplesheetToList } from 'plugin/nf-schema'
1615
include { completionEmail } from '../../nf-core/utils_nfcore_pipeline'
1716
include { completionSummary } from '../../nf-core/utils_nfcore_pipeline'
1817
include { 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

workflows/rnaseq/main.nf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)