Skip to content

Commit

Permalink
Merge pull request #66 from ramsainanduri/mosdepth_bug
Browse files Browse the repository at this point in the history
Fixed mosdepth input channel bug when bedfile is not provided
  • Loading branch information
ramsainanduri authored Apr 5, 2024
2 parents dce1800 + 1d02941 commit d8a3ff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Initial release of genomic-medicine-sweden/skierfe, created with the [nf-core](h

- Fix input file validation [#67](https://github.com/genomic-medicine-sweden/skierfe/pull/67)
- Fix BCFTools merge module inputs [#43](https://github.com/genomic-medicine-sweden/skierfe/pull/43)
- Fix Mosdepth input channel when run without a bed file [#66](https://github.com/genomic-medicine-sweden/skierfe/pull/66)

### `Dependencies`

Expand Down
2 changes: 1 addition & 1 deletion workflows/skierfe.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ch_extra_snfs = params.extra_snfs ? Channel.fromSamplesheet('extra_snfs'
ch_extra_gvcfs = params.extra_gvcfs ? Channel.fromSamplesheet('extra_gvcfs', immutable_meta: false) : Channel.empty()
ch_tandem_repeats = params.tandem_repeats ? Channel.fromPath(params.tandem_repeats).collect() : Channel.value([])
ch_bed = params.bed ? Channel.fromPath(params.bed).map{ [ it.getSimpleName(), it]}.collect() : Channel.empty()
ch_input_bed = params.bed ? Channel.fromPath(params.bed).map{ [ it.getSimpleName(), it]}.collect() : Channel.value([])
ch_input_bed = params.bed ? Channel.fromPath(params.bed).map{ [ it.getSimpleName(), it]}.collect() : Channel.value([[],[]])

// This should be able to in schema?
if (params.split_fastq < 250 & params.split_fastq > 0 ) { exit 1, '--split_fastq must be 0 or >= 250'}
Expand Down

0 comments on commit d8a3ff2

Please sign in to comment.