1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-22 14:49:55 +00:00

Fix publishing of log files of rpreprocessing steps

This commit is contained in:
James Fellows Yates 2022-12-15 10:35:06 +01:00
parent 578081df2e
commit 88589fbc53

View file

@ -61,10 +61,17 @@ process {
].join(' ').trim() ].join(' ').trim()
ext.prefix = { "${meta.id}_${meta.run_accession}" } ext.prefix = { "${meta.id}_${meta.run_accession}" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/fastp" }, path: { "${params.outdir}/fastp" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.fastq.gz', pattern: '*.fastq.gz',
enabled: params.save_preprocessed_reads enabled: params.save_preprocessed_reads
],
[
path: { "${params.outdir}/fastp" },
mode: params.publish_dir_mode,
pattern: '*.{log,html,json}'
]
] ]
} }
@ -82,10 +89,17 @@ process {
].join(' ').trim() ].join(' ').trim()
ext.prefix = { "${meta.id}_${meta.run_accession}" } ext.prefix = { "${meta.id}_${meta.run_accession}" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/fastp" }, path: { "${params.outdir}/fastp" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.fastq.gz', pattern: '*.fastq.gz',
enabled: params.save_preprocessed_reads enabled: params.save_preprocessed_reads
],
[
path: { "${params.outdir}/fastp" },
mode: params.publish_dir_mode,
pattern: '*.{log,html,json}'
]
] ]
} }
@ -98,10 +112,17 @@ process {
].join(' ').trim() ].join(' ').trim()
ext.prefix = { "${meta.id}_${meta.run_accession}" } ext.prefix = { "${meta.id}_${meta.run_accession}" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/adapterremoval" }, path: { "${params.outdir}/adapterremoval" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.fastq.gz', pattern: '*.fastq.gz',
enabled: params.save_preprocessed_reads enabled: params.save_preprocessed_reads
],
[
path: { "${params.outdir}/adapterremoval" },
mode: params.publish_dir_mode,
pattern: '*.settings'
]
] ]
} }
@ -117,20 +138,34 @@ process {
].join(' ').trim() ].join(' ').trim()
ext.prefix = { "${meta.id}_${meta.run_accession}" } ext.prefix = { "${meta.id}_${meta.run_accession}" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/adapterremoval" }, path: { "${params.outdir}/adapterremoval" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.fastq.gz', pattern: '*.fastq.gz',
enabled: params.save_preprocessed_reads enabled: params.save_preprocessed_reads
],
[
path: { "${params.outdir}/adapterremoval" },
mode: params.publish_dir_mode,
pattern: '*.settings'
]
] ]
} }
withName: PORECHOP_PORECHOP { withName: PORECHOP_PORECHOP {
ext.prefix = { "${meta.id}_${meta.run_accession}" } ext.prefix = { "${meta.id}_${meta.run_accession}" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/porechop" }, path: { "${params.outdir}/porechop" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.fastq.gz', pattern: '*.fastq.gz',
enabled: params.save_preprocessed_reads enabled: params.save_preprocessed_reads
],
[
path: { "${params.outdir}/porechop" },
mode: params.publish_dir_mode,
pattern: '*.log'
]
] ]
} }
@ -143,10 +178,17 @@ process {
.join(' ').trim() .join(' ').trim()
ext.prefix = { "${meta.id}_${meta.run_accession}_filtered" } ext.prefix = { "${meta.id}_${meta.run_accession}_filtered" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/filtlong" }, path: { "${params.outdir}/filtlong" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.{fastq.gz,log}', pattern: '*.fastq.gz',
enabled: params.save_preprocessed_reads enabled: params.save_preprocessed_reads
],
[
path: { "${params.outdir}/filtlong" },
mode: params.publish_dir_mode,
pattern: '*.log'
]
] ]
} }
@ -240,10 +282,17 @@ process {
].join(' ').trim() ].join(' ').trim()
ext.prefix = { "${meta.id}-${meta.run_accession}" } ext.prefix = { "${meta.id}-${meta.run_accession}" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/bbduk/" }, path: { "${params.outdir}/bbduk/" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.{fastq.gz,log}', pattern: '*.{fastq.gz,log}',
enabled: params.save_complexityfiltered_reads enabled: params.save_complexityfiltered_reads
],
[
path: { "${params.outdir}/bbduk/" },
mode: params.publish_dir_mode,
pattern: '*.log'
]
] ]
} }
@ -255,10 +304,17 @@ process {
].join(' ').trim() ].join(' ').trim()
ext.prefix = { "${meta.id}-${meta.run_accession}" } ext.prefix = { "${meta.id}-${meta.run_accession}" }
publishDir = [ publishDir = [
[
path: { "${params.outdir}/prinseqplusplus/" }, path: { "${params.outdir}/prinseqplusplus/" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*{_good_out.fastq.gz,_good_out_R1.fastq.gz,_good_out_R2.fastq.gz,log}', pattern: '*{_good_out.fastq.gz,_good_out_R1.fastq.gz,_good_out_R2.fastq.gz}',
enabled: params.save_complexityfiltered_reads enabled: params.save_complexityfiltered_reads
],
[
path: { "${params.outdir}/prinseqplusplus/" },
mode: params.publish_dir_mode,
pattern: '*.log'
]
] ]
} }
@ -318,7 +374,7 @@ process {
publishDir = [ publishDir = [
path: { "${params.outdir}/bracken/" }, path: { "${params.outdir}/bracken/" },
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
pattern: '*.{txt}' pattern: '*.txt'
] ]
} }