Skip to content

Commit eed65a5

Browse files
Backport #915 to 2.0.x (#918)
1 parent eefcc7b commit eed65a5

File tree

511 files changed

+1024
-1020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

511 files changed

+1024
-1020
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# openpipelines 2.0.0-rc.2
22

3+
## BUG FIXES
4+
5+
* `annotate/popv`: fix popv raising `ValueError` when an accelerator (e.g. GPU) is unavailable (PR #918, backported from PR #915).
6+
37
## MINOR CHANGES
48

59
* `dataflow/split_h5mu`: Optimize resource usage of the component (PR #917, backported from PR #913).

src/annotate/popv/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def main(par, meta):
173173
save_path_trained_models=temp_dir,
174174
# hardcoded values
175175
cl_obo_folder=cl_obo_folder,
176-
accelerator='cuda' if use_gpu else None
176+
accelerator='cuda' if use_gpu else 'cpu'
177177
)
178178
method_kwargs = {}
179179
if 'scanorama' in par['methods']:

src/annotate/popv/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_popv_with_other_layer(run_component, tmp_path):
4343
"--input", tmp_path / "input.h5mu",
4444
"--reference", reference_file,
4545
"--output", "output.h5mu",
46-
"--methods", "rf;svm;knn_on_scanorama"
46+
"--methods", "rf;svm;knn_on_scanorama;knn_on_scvi"
4747
])
4848

4949
def test_popv_with_non_overlapping_cells(run_component, tmp_path):

target/executable/annotate/celltypist/.config.vsh.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ build_info:
394394
output: "target/executable/annotate/celltypist"
395395
executable: "target/executable/annotate/celltypist/celltypist"
396396
viash_version: "0.9.0"
397-
git_commit: "686217bf7f7dadccb6d8a730b953d8124da01c58"
397+
git_commit: "110cb5de582bb6fb0f8f8301faf3accca016b93b"
398398
git_remote: "https://github.com/openpipelines-bio/openpipeline"
399-
git_tag: "2.0.0-rc.1-1-g686217bf7f"
399+
git_tag: "2.0.0-rc.1-2-g110cb5de58"
400400
package_config:
401401
name: "openpipeline"
402402
version: "dev"

target/executable/annotate/celltypist/celltypist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,9 +596,9 @@ RUN pip install --upgrade pip && \
596596
597597
LABEL org.opencontainers.image.authors="Jakub Majercik, Weiwei Schultz"
598598
LABEL org.opencontainers.image.description="Companion container for running component annotate celltypist"
599-
LABEL org.opencontainers.image.created="2024-11-27T14:19:07Z"
599+
LABEL org.opencontainers.image.created="2024-11-27T15:31:12Z"
600600
LABEL org.opencontainers.image.source="https://github.com/openpipelines-bio/openpipeline"
601-
LABEL org.opencontainers.image.revision="686217bf7f7dadccb6d8a730b953d8124da01c58"
601+
LABEL org.opencontainers.image.revision="110cb5de582bb6fb0f8f8301faf3accca016b93b"
602602
LABEL org.opencontainers.image.version="2.0.0-rc.2"
603603
604604
VIASHDOCKER

target/executable/annotate/onclass/.config.vsh.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ build_info:
336336
output: "target/executable/annotate/onclass"
337337
executable: "target/executable/annotate/onclass/onclass"
338338
viash_version: "0.9.0"
339-
git_commit: "686217bf7f7dadccb6d8a730b953d8124da01c58"
339+
git_commit: "110cb5de582bb6fb0f8f8301faf3accca016b93b"
340340
git_remote: "https://github.com/openpipelines-bio/openpipeline"
341-
git_tag: "2.0.0-rc.1-1-g686217bf7f"
341+
git_tag: "2.0.0-rc.1-2-g110cb5de58"
342342
package_config:
343343
name: "openpipeline"
344344
version: "dev"

target/executable/annotate/onclass/onclass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,9 @@ RUN pip install --upgrade pip && \
561561
562562
LABEL org.opencontainers.image.authors="Jakub Majercik"
563563
LABEL org.opencontainers.image.description="Companion container for running component annotate onclass"
564-
LABEL org.opencontainers.image.created="2024-11-27T14:19:06Z"
564+
LABEL org.opencontainers.image.created="2024-11-27T15:31:11Z"
565565
LABEL org.opencontainers.image.source="https://github.com/openpipelines-bio/openpipeline"
566-
LABEL org.opencontainers.image.revision="686217bf7f7dadccb6d8a730b953d8124da01c58"
566+
LABEL org.opencontainers.image.revision="110cb5de582bb6fb0f8f8301faf3accca016b93b"
567567
LABEL org.opencontainers.image.version="2.0.0-rc.2"
568568
569569
VIASHDOCKER

target/executable/annotate/popv/.config.vsh.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,9 @@ build_info:
351351
output: "target/executable/annotate/popv"
352352
executable: "target/executable/annotate/popv/popv"
353353
viash_version: "0.9.0"
354-
git_commit: "686217bf7f7dadccb6d8a730b953d8124da01c58"
354+
git_commit: "110cb5de582bb6fb0f8f8301faf3accca016b93b"
355355
git_remote: "https://github.com/openpipelines-bio/openpipeline"
356-
git_tag: "2.0.0-rc.1-1-g686217bf7f"
356+
git_tag: "2.0.0-rc.1-2-g110cb5de58"
357357
package_config:
358358
name: "openpipeline"
359359
version: "dev"

target/executable/annotate/popv/popv

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,9 @@ RUN cd /opt && git clone --depth 1 https://github.com/YosefLab/PopV.git
561561
562562
LABEL org.opencontainers.image.authors="Matthias Beyens, Robrecht Cannoodt"
563563
LABEL org.opencontainers.image.description="Companion container for running component annotate popv"
564-
LABEL org.opencontainers.image.created="2024-11-27T14:19:06Z"
564+
LABEL org.opencontainers.image.created="2024-11-27T15:31:11Z"
565565
LABEL org.opencontainers.image.source="https://github.com/openpipelines-bio/openpipeline"
566-
LABEL org.opencontainers.image.revision="686217bf7f7dadccb6d8a730b953d8124da01c58"
566+
LABEL org.opencontainers.image.revision="110cb5de582bb6fb0f8f8301faf3accca016b93b"
567567
LABEL org.opencontainers.image.version="2.0.0-rc.2"
568568
569569
VIASHDOCKER
@@ -1481,7 +1481,7 @@ def main(par, meta):
14811481
save_path_trained_models=temp_dir,
14821482
# hardcoded values
14831483
cl_obo_folder=cl_obo_folder,
1484-
accelerator='cuda' if use_gpu else None
1484+
accelerator='cuda' if use_gpu else 'cpu'
14851485
)
14861486
method_kwargs = {}
14871487
if 'scanorama' in par['methods']:

target/executable/annotate/random_forest_annotation/.config.vsh.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ build_info:
355355
output: "target/executable/annotate/random_forest_annotation"
356356
executable: "target/executable/annotate/random_forest_annotation/random_forest_annotation"
357357
viash_version: "0.9.0"
358-
git_commit: "686217bf7f7dadccb6d8a730b953d8124da01c58"
358+
git_commit: "110cb5de582bb6fb0f8f8301faf3accca016b93b"
359359
git_remote: "https://github.com/openpipelines-bio/openpipeline"
360-
git_tag: "2.0.0-rc.1-1-g686217bf7f"
360+
git_tag: "2.0.0-rc.1-2-g110cb5de58"
361361
package_config:
362362
name: "openpipeline"
363363
version: "dev"

0 commit comments

Comments
 (0)