Skip to content

Commit

Permalink
Merge branch 'CW-4181' into 'dev'
Browse files Browse the repository at this point in the history
demux output channel [CW-4181]

Closes CW-4181

See merge request epi2melabs/workflows/wf-basecalling!72
  • Loading branch information
mattdmem committed Jun 5, 2024
2 parents 65d5cc4 + 6a98cf8 commit 7babc4f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.2.1]
### Added
- Output channel for demuxed BAM files for downstream use.

## [v1.2.0]
### Added
- Support for `dorado demux` to demultiplex barcoded runs. Specify your `--barcode_kit` to activate demultiplexing.
Expand Down
7 changes: 5 additions & 2 deletions lib/signal/ingress.nf
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ process split_calls {
input:
tuple path(cram), path(crai)
output:
path("demuxed/*")
path("demuxed/*.bam")
shell:
"""
dorado demux --output-dir demuxed --no-classify ${cram}
Expand Down Expand Up @@ -457,12 +457,15 @@ workflow wf_dorado {
// │ └── reads.bam
// └── unclassified
// └── reads.bam
split_calls(pass)
barcode_bams = split_calls(pass)
} else {
barcode_bams = Channel.empty()
}

emit:
chunked_pass_crams = crams.pass
pass = pass
barcode_bams = barcode_bams
fail = fail
output_exts = output_exts
summary = summary
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ manifest {
description = 'Helper workflow for basecalling ONT reads.'
mainScript = 'main.nf'
nextflowVersion = '>=23.04.2'
version = '1.2.0'
version = '1.2.1'
}

epi2melabs {
Expand Down

0 comments on commit 7babc4f

Please sign in to comment.