File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
298285workflow {
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
You can’t perform that action at this time.
0 commit comments