diff --git a/nextflow.config b/nextflow.config index 93dd7cd..eb58592 100644 --- a/nextflow.config +++ b/nextflow.config @@ -98,7 +98,12 @@ profiles { cbrain { process{ - publishDir = [path: {"./results_rbx/$sid/$task.process"}, mode: 'copy'] - } + if(params.output_dir) { + publishDir = [path: {"$params.output_dir/$sid/$task.process"}, mode: 'copy'] + } + else{ + publishDir = [path: {"./results_tractometry/$sid/$task.process"}, mode: 'copy'] + } + } } }