Skip to content

Commit

Permalink
added krona plots to the emit block and added check for uncompressed …
Browse files Browse the repository at this point in the history
…kraken2 db
  • Loading branch information
ctuni committed Oct 28, 2024
1 parent 0192830 commit a6f5c6b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions subworkflows/local/phylogenetic_qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ workflow PHYLOGENETIC_QC{
ch_multiqc_files = Channel.empty()
ch_versions = Channel.empty()
//
// MODULE: Untar kraken2_db
// MODULE: Untar kraken2_db or read it as it is if not compressed
//
UNTAR_KRAKEN2_DB ( [ [:], params.kraken2_db ])
ch_kraken2_db = UNTAR_KRAKEN2_DB.out.untar.map { it[1] }
if (params.kraken2_db.endsWith('.gz')) {
UNTAR_KRAKEN2_DB ( [ [:], params.kraken2_db ])
ch_kraken2_db = UNTAR_KRAKEN2_DB.out.untar.map { it[1] }
ch_versions = ch_versions.mix(UNTAR.out.versions)
} else {
ch_kraken2_db = Channel.value([[:], file(params.kraken2_db, checkIfExists: true)])
}

//
// MODULE: Perform kraken2
Expand All @@ -46,4 +51,5 @@ workflow PHYLOGENETIC_QC{
emit:
versions = ch_versions
mqc = ch_multiqc_files
krona_plots = KRONA_KTIMPORTTAXONOMY.out.html.collect()
}

0 comments on commit a6f5c6b

Please sign in to comment.