File tree Expand file tree Collapse file tree 2 files changed +26
-26
lines changed
methods_cell_type_annotation/moscot
methods_transcript_assignment/baysor Expand file tree Collapse file tree 2 files changed +26
-26
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3- import numpy as np
4- import anndata as ad
5- import scanpy as sc
6-
7- import moscot as mt
8- from moscot .problems .space import MappingProblem
9-
10- ## VIASH START
11- par = {
12- 'input_spatial_normalized_counts' : 'resources_test/task_ist_preprocessing/mouse_brain_combined/spatial_normalized_counts.h5ad' ,
13- 'input_scrnaseq_reference' : 'resources_test/task_ist_preprocessing/mouse_brain_combined/scrnaseq_reference.h5ad' ,
14- 'output' : 'spatial_with_celltypes.h5ad' ,
15- 'celltype_key' : 'cell_type' ,
16- 'alpha' : 0.8 ,
17- 'epsilon' : 0.01 ,
18- 'tau' : 1.0 ,
19- 'rank' : 5000 ,
20- 'mapping_mode' : 'max' ,
21- }
22- meta = {
23- 'name' : 'moscot' ,
24- }
25- ## VIASH END
26-
273# --- Fix for CuDNN version mismatch ------------------------------------------
284# JAX wheels (e.g. jax[cuda12]) come with their own CUDA/cuDNN libraries.
295# However, some systems set LD_LIBRARY_PATH to point to an older system-wide
4824print ("devices:" , jax .devices (), flush = True )
4925print ("LD_LIBRARY_PATH:" , os .environ .get ("LD_LIBRARY_PATH" ), flush = True )
5026
27+ import numpy as np
28+ import anndata as ad
29+ import scanpy as sc
30+
31+ import moscot as mt
32+ from moscot .problems .space import MappingProblem
33+
34+ ## VIASH START
35+ par = {
36+ 'input_spatial_normalized_counts' : 'resources_test/task_ist_preprocessing/mouse_brain_combined/spatial_normalized_counts.h5ad' ,
37+ 'input_scrnaseq_reference' : 'resources_test/task_ist_preprocessing/mouse_brain_combined/scrnaseq_reference.h5ad' ,
38+ 'output' : 'spatial_with_celltypes.h5ad' ,
39+ 'celltype_key' : 'cell_type' ,
40+ 'alpha' : 0.8 ,
41+ 'epsilon' : 0.01 ,
42+ 'tau' : 1.0 ,
43+ 'rank' : 5000 ,
44+ 'mapping_mode' : 'max' ,
45+ }
46+ meta = {
47+ 'name' : 'moscot' ,
48+ }
49+ ## VIASH END
50+
5151
5252# Optional parameter check: For this specific annotation method the par['input_spatial_normalized_counts'] and par['input_scrnaseq_reference'] are required
5353assert par ['input_spatial_normalized_counts' ] is not None , 'Spatial input is required for this annotation method.'
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ engines:
7676 # (commands can be retrieved from `viash run src/methods_transcript_assignment/baysor/config.vsh.yaml -- ---dockerfile`)
7777 - type : docker
7878 image : python:3.11.13-bookworm
79+ __merge__ :
80+ - /src/base/setup_spatialdata_partial.yaml
7981 setup :
8082 - type : apt
8183 packages : procps
@@ -84,9 +86,7 @@ engines:
8486 - openproblems-bio/core#subdirectory=packages/python/openproblems
8587 - type : python
8688 packages :
87- # TODO: Add merge with setup_spatialdata_partial.yaml and solve anndata version conflict differently
8889 - sopa[baysor]
89- - anndata>=0.12.0
9090 - type : docker
9191 run :
9292 - wget https://github.com/kharchenkolab/Baysor/releases/download/v0.7.1/baysor-x86_x64-linux-v0.7.1_build.zip
You can’t perform that action at this time.
0 commit comments