Hi!
I want two flags which each should trigger the publication of files with different endings:
process {
withLabel: "fastqc" {
if (params.fastqcrawout != false){
publishDir = [
path: { "${params.out}/fastqcraw" },
mode: "copy",
pattern: "*fastqc.zip"
]
}
if (params.fastqcout != false){
publishDir = [
path: { "${params.out}/fastqc" },
mode: "copy",
pattern: "*.html"
]
}
}
}
The issue is now obviously that if I use both flags, the second publishDir overwrites the first one. Is there any possibility solve this issue in the config file, like appending to the first one or something?
Thanks in advance!