Skip to content

Commit f95e5a3

Browse files
committed
Workflow params (first preview)
Signed-off-by: Ben Sherman <[email protected]>
1 parent 2f4948f commit f95e5a3

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

main.nf

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,28 @@
55
*/
66

77
nextflow.preview.output = true
8+
nextflow.preview.params = true
89

910
/*
10-
* Default pipeline parameters. They can be overriden on the command line eg.
11+
* Default pipeline parameters. They can be overridden on the command line eg.
1112
* given `params.reads` specify on the run command line `--reads some_value`.
1213
*/
14+
params {
15+
/**
16+
* CSV file of FASTQ pairs to analyze.
17+
*/
18+
reads
1319

14-
params.reads = null
15-
params.transcriptome = null
16-
params.outdir = "results"
17-
params.multiqc = "$projectDir/multiqc"
20+
/**
21+
* FASTA file for the reference transcriptome.
22+
*/
23+
transcriptome
24+
25+
/**
26+
* Directory containing the configuration for MultiQC.
27+
*/
28+
multiqc = "$projectDir/multiqc"
29+
}
1830

1931
/*
2032
* import modules
@@ -32,7 +44,7 @@ workflow {
3244
===================================
3345
transcriptome: ${params.transcriptome}
3446
reads : ${params.reads}
35-
outdir : ${params.outdir}
47+
outdir : ${workflow.outputDir}
3648
""".stripIndent()
3749

3850
inputs_ch = channel.fromPath(params.reads)

nextflow.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
manifest {
1414
description = 'Proof of concept of a RNA-seq pipeline implemented with Nextflow'
1515
author = 'Paolo Di Tommaso'
16-
nextflowVersion = '>=23.10.0'
16+
nextflowVersion = '>=25.04.0'
1717
}
1818

1919
/*

0 commit comments

Comments
 (0)