Skip to content
Snippets Groups Projects
Commit 991c35f4 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Add run name param

parent 771a4f0b
2 merge requests!53Develop,!40Resolve "Organize output folders"
......@@ -4,6 +4,7 @@
// Note - $baseDir is the location of this workflow file main.nf
// Define Input variables
params.name = "run"
params.fastq = "$baseDir/../test_data/*.fastq.gz"
params.designFile = "$baseDir/../test_data/design.csv"
params.genome = 'GRCh38-3.0.0'
......@@ -36,6 +37,7 @@ if (params.astrocyte) {
params.genomeLocationFull = params.genomeLocation+params.genome
// Define regular variables
name = params.name
designLocation = Channel
.fromPath(params.designFile)
.ifEmpty { exit 1, "design file not found: ${params.designFile}" }
......@@ -55,7 +57,7 @@ outDir = params.outDir
process checkDesignFile {
publishDir "$outDir/${task.process}", mode: 'copy'
publishDir "$outDir/${task.process}/$name", mode: 'copy'
input:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment