Skip to content

Commit 973b7d3

Browse files
Fix neigbors_leiden_umap stub (#1026)
1 parent 257ced6 commit 973b7d3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
* Bump viash to 0.9.4. This adds support for nextflow versions starting major version 25.01 and fixes an issue where an integer being passed to a argument with `type: double` resulted in an error (PR #1016).
2020

21+
* Fix running `neigbors_leiden_umap` workflow with `-stub` enabled (PR #1026).
22+
2123
# openpipelines 2.1.0
2224

2325
## BREAKING CHANGES

src/workflows/multiomics/neighbors_leiden_umap/main.nf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ workflow run_wf {
55
main:
66
output_ch = input_ch
77
| map {id, state ->
8-
assert (state.leiden_resolution.isEmpty() || state.obs_cluster?.trim()):
9-
"When leiden_resolution is set, obs_cluster must also be defined."
8+
if (!workflow.stubRun) {
9+
assert (state.leiden_resolution.isEmpty() || state.obs_cluster?.trim()):
10+
"When leiden_resolution is set, obs_cluster must also be defined."
11+
}
1012
[id, state]
1113
}
1214
| map {id, state ->

0 commit comments

Comments
 (0)