mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Implement publish_results parameter
This commit is contained in:
parent
1dc47e7cd3
commit
86d6daf9de
1 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
nextflow.preview.dsl = 2
|
||||
def MODULE = "fastqc"
|
||||
params.fastqc_publish_dir = "${params.out_dir}/$MODULE"
|
||||
params.publish_dir = MODULE
|
||||
params.publish_results = "default"
|
||||
|
||||
process FASTQC {
|
||||
input:
|
||||
|
@ -11,10 +12,14 @@ process FASTQC {
|
|||
path "*.zip", emit: report // e.g. for MultiQC later
|
||||
path "*.version.txt", emit: version
|
||||
|
||||
container "docker.pkg.github.com/nf-core/$module"
|
||||
container "docker.pkg.github.com/nf-core/$MODULE"
|
||||
conda "${moduleDir}/environment.yml"
|
||||
|
||||
publishDir "${params.fastqc_publish_dir}/$name", mode: params.publish_dir_mode
|
||||
publishDir "${params.out_dir}/${params.publish_dir}/$name",
|
||||
mode: params.publish_dir_mode,
|
||||
saveAs: { filename ->
|
||||
if(params.publish_results == "none") null
|
||||
else filename }
|
||||
|
||||
script:
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue