1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-27 03:49:54 +00:00

MultiQC optimisations for DIAMOND and Falco

This commit is contained in:
James Fellows Yates 2023-04-20 15:57:57 +02:00
parent 0ed110c529
commit 1eb951715f
2 changed files with 7 additions and 3 deletions

View file

@ -37,8 +37,7 @@ run_modules:
sp:
diamond:
contents: "diamond v"
num_lines: 10
fn_re: ".*.diamond.log$"
fastqc/data:
fn_re: ".*(fastqc|falco)_data.txt$"
fastqc/zip:

View file

@ -270,7 +270,12 @@ workflow TAXPROFILER {
ch_multiqc_files = ch_multiqc_files.mix(CUSTOM_DUMPSOFTWAREVERSIONS.out.mqc_yml.collect())
if ( params.preprocessing_qc_tool == 'falco' ) {
ch_multiqc_files = ch_multiqc_files.mix(FALCO.out.txt.collect{it[1]}.ifEmpty([]))
// only mix in files acutally used by MultiQC
ch_multiqc_files = ch_multiqc_files.mix(FALCO.out.txt
.map { meta, reports -> reports }
.flatten()
.filter { path -> path.name.endsWith('_data.txt')}
.ifEmpty([]))
} else {
ch_multiqc_files = ch_multiqc_files.mix(FASTQC.out.zip.collect{it[1]}.ifEmpty([]))
}