Skip to content

Commit

Permalink
add a parser for raw/filtered results
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalmeida committed Mar 25, 2024
1 parent 8d396d5 commit bb8d909
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions subworkflows/local/kallisto_bustools.nf
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,23 @@ workflow KALLISTO_BUSTOOLS {

ch_versions = ch_versions.mix(KALLISTOBUSTOOLS_COUNT.out.versions)

// get raw/filtered counts
ch_raw_counts = KALLISTOBUSTOOLS_COUNT.out.count.map{ meta, kb_dir ->
if (file("${kb_dir.toUriString()}/counts_unfiltered").exists()) {
[meta, file("${kb_dir.toUriString()}/counts_unfiltered")]
}
}
ch_filtered_counts = KALLISTOBUSTOOLS_COUNT.out.count.map{ meta, kb_dir ->
if (file("${kb_dir.toUriString()}/counts_filtered").exists()) {
[meta, file("${kb_dir.toUriString()}/counts_filtered")]
}
}

emit:
ch_versions
counts = KALLISTOBUSTOOLS_COUNT.out.count
raw_counts = KALLISTOBUSTOOLS_COUNT.out.raw_counts
filtered_counts = KALLISTOBUSTOOLS_COUNT.out.filtered_counts
txp2gene = txp2gene.collect()
counts = KALLISTOBUSTOOLS_COUNT.out.count
raw_counts = ch_raw_counts
filtered_counts = ch_filtered_counts
txp2gene = txp2gene.collect()

}

0 comments on commit bb8d909

Please sign in to comment.