Skip to content

Commit c6edfb0

Browse files
committed
Fix Nextflow 26 workflow parsing
1 parent 6bc49d8 commit c6edfb0

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

main.nf

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ nextflow.enable.dsl = 2
1212

1313
// All parameter defaults are defined in nextflow.config
1414

15-
// Validate
16-
if (!params.genome_index) { error "Provide --genome_index (HISAT2 index prefix)" }
17-
if (!params.gtf) { error "Provide --gtf (gene annotation GTF)" }
18-
19-
/*
20-
* Read samplesheet: sample_id, fastq_1, fastq_2, condition
21-
*/
22-
Channel
23-
.fromPath(params.samplesheet)
24-
.splitCsv(header: true)
25-
.map { row -> tuple(row.sample_id, file(row.fastq_1), file(row.fastq_2), row.condition) }
26-
.set { reads_ch }
27-
2815
/*
2916
* STEP 1: FastQC on raw reads
3017
*
@@ -296,6 +283,17 @@ process MULTIQC {
296283
* WORKFLOW
297284
*/
298285
workflow {
286+
if (!params.genome_index) { error "Provide --genome_index (HISAT2 index prefix)" }
287+
if (!params.gtf) { error "Provide --gtf (gene annotation GTF)" }
288+
289+
/*
290+
* Read samplesheet: sample_id, fastq_1, fastq_2, condition
291+
*/
292+
reads_ch = Channel
293+
.fromPath(params.samplesheet)
294+
.splitCsv(header: true)
295+
.map { row -> tuple(row.sample_id, file(row.fastq_1), file(row.fastq_2), row.condition) }
296+
299297
// Raw QC
300298
FASTQC_RAW(reads_ch)
301299

0 commit comments

Comments
 (0)