diff --git a/main.nf b/main.nf index f585d53..dffaf2e 100755 --- a/main.nf +++ b/main.nf @@ -5,6 +5,8 @@ */ +nextflow.preview.output = true + /* * Default pipeline parameters. They can be overriden on the command line eg. * given `params.foo` specify on the run command line `--foo some_value`. @@ -37,3 +39,13 @@ log.info """\ RNASEQ( params.transcriptome, read_pairs_ch ) MULTIQC( RNASEQ.out, params.multiqc ) } + +output { + directory params.outdir + mode 'copy' + fastqc { + index { + path 'index.csv' + } + } +} diff --git a/modules/fastqc/main.nf b/modules/fastqc/main.nf index 57c0477..8399248 100644 --- a/modules/fastqc/main.nf +++ b/modules/fastqc/main.nf @@ -1,9 +1,7 @@ -params.outdir = 'results' process FASTQC { tag "FASTQC on $sample_id" conda 'bioconda::fastqc=0.12.1' - publishDir params.outdir, mode:'copy' input: tuple val(sample_id), path(reads) diff --git a/modules/multiqc/main.nf b/modules/multiqc/main.nf index 865f7b4..259b8ad 100644 --- a/modules/multiqc/main.nf +++ b/modules/multiqc/main.nf @@ -1,8 +1,6 @@ -params.outdir = 'results' process MULTIQC { conda 'bioconda::multiqc=1.25' - publishDir params.outdir, mode:'copy' input: path '*' @@ -11,6 +9,9 @@ process MULTIQC { output: path 'multiqc_report.html', emit: report + publish: + report >> 'multiqc' + script: """ cp $config/* . diff --git a/modules/rnaseq.nf b/modules/rnaseq.nf index 2f607c1..b8f45df 100644 --- a/modules/rnaseq.nf +++ b/modules/rnaseq.nf @@ -16,4 +16,4 @@ workflow RNASEQ { emit: QUANT.out | concat(FASTQC.out) | collect -} \ No newline at end of file +}