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

Add cli parameter option for output folder to address #4

parent 6905cdca
2 merge requests!16Develop,!11Resolve "Create output directory option"
Pipeline #3156 passed with stage
in 18 seconds
......@@ -12,6 +12,7 @@ params.genomeLocation = params.genome ? params.genomes[ params.genome ].loc ?: f
params.expectCells = 10000
params.forceCells = 0
params.version = '3.0.2'
params.outDir = "$baseDir/output"
// Define regular variables
designLocation = Channel
......@@ -28,10 +29,11 @@ refLocation = Channel
expectCells = params.expectCells
forceCells = params.forceCells
version = params.version
outDir = params.outDir
process checkDesignFile {
publishDir "$baseDir/output", mode: 'copy'
publishDir "$outDir/${task.process}", mode: 'copy'
input:
......@@ -78,7 +80,7 @@ forceCells302 = forceCells
process count211 {
tag "count211-$sample"
publishDir "$baseDir/output", mode: 'copy'
publishDir "$outDir/${task.process}", mode: 'copy'
input:
......@@ -109,7 +111,7 @@ process count211 {
process count301 {
tag "count301-$sample"
publishDir "$baseDir/output", mode: 'copy'
publishDir "$outDir/${task.process}", mode: 'copy'
input:
......@@ -140,7 +142,7 @@ process count301 {
process count302 {
tag "count302-$sample"
publishDir "$baseDir/output", mode: 'copy'
publishDir "$outDir/${task.process}", 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