diff --git a/workflow/main.nf b/workflow/main.nf index 43933ba559205017eec4bb3f8ceb701e460dd95d..78f6fa56f23398fcc19532c76102202f4e58209c 100755 --- a/workflow/main.nf +++ b/workflow/main.nf @@ -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: