Skip to content

Commit a623b6b

Browse files
authored
Enforce unique bracken outputs (#45)
1 parent 60fc38a commit a623b6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.nf

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ workflow {
4343
mash_sketch_summary(mash_sketch.out).map{ it -> it[1] }.collectFile(keepHeader: true, sort: { it.text }, name: "mash_sketch_summary.csv", storeDir: "${params.outdir}/mash_sketch_summary")
4444

4545
kraken2(ch_fastq.combine(ch_kraken2_db))
46-
bracken(kraken2.out.combine(ch_bracken_db).combine(parse_sample_sheet.out).combine(ch_taxonomic_levels))
46+
bracken(kraken2.out.combine(ch_bracken_db).combine(parse_sample_sheet.out).combine(ch_taxonomic_levels).unique{ it -> [it[0], it[4]] })
4747

4848
abundance_top_n(bracken.out)
4949

0 commit comments

Comments
 (0)