1
0
Fork 0
mirror of https://github.com/MillironX/taxprofiler.git synced 2024-11-11 00:23:08 +00:00

Fix filtlong logs

This commit is contained in:
sofstam 2022-07-19 14:01:11 +02:00
parent 1ba6a08135
commit 526ed79763

View file

@ -12,7 +12,7 @@ workflow LONGREAD_PREPROCESSING {
main:
ch_versions = Channel.empty()
ch_multiqc_files = Channel.empty()
= Channel.empty()
if ( params.longread_qc_run_clip && !params.longread_qc_run_filter ) {
PORECHOP ( reads )
@ -30,6 +30,7 @@ workflow LONGREAD_PREPROCESSING {
ch_processed_reads = FILTLONG ( reads.map{ meta, reads -> [meta, [], reads ]} )
ch_versions = ch_versions.mix(FILTLONG.out.versions.first())
ch_multiqc_files = .mix( FILTLONG.out.log.collect{it[1]}.ifEmpty([]))
} else {
PORECHOP ( reads )
@ -45,16 +46,16 @@ workflow LONGREAD_PREPROCESSING {
ch_versions = ch_versions.mix(PORECHOP.out.versions.first())
ch_versions = ch_versions.mix(FILTLONG.out.versions.first())
ch_multiqc_files = ch_multiqc_files.mix( FILTLONG.out.log.collect{it[1]}.ifEmpty([]))
}
FASTQC_PROCESSED ( ch_processed_reads )
ch_multiqc_files = ch_multiqc_files.mix( FASTQC_PROCESSED.out.zip )
ch_multiqc_files = ch_multiqc_files.mix( FILTLONG.out.log.collect{it[1]}.ifEmpty([]))
= .mix( FASTQC_PROCESSED.out.zip )
emit:
reads = ch_processed_reads // channel: [ val(meta), [ reads ] ]
versions = ch_versions // channel: [ versions.yml ]
mqc = ch_multiqc_files
mqc =
}