Skip to content

Commit 6aab3c0

Browse files
committed
Fix spanorm install, config, and test input
1 parent 3d8c6df commit 6aab3c0

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/methods_normalization/spanorm/config.vsh.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
__merge__: /src/api/comp_method_normalization.yaml
22

33
name: spanorm
4-
label: "Spatially-aware normalisation for spatial transcriptomics data"
4+
label: "SpaNorm normalization"
55
summary: "Spatially-aware normalisation for spatial transcriptomics data"
66
description: "Spatially-aware normalisation for spatial transcriptomics data"
77
links:
88
documentation: "https://github.com/openproblems-bio/task_ist_preprocessing"
99
repository: "https://github.com/bhuvad/SpaNorm/tree/master"
1010
references:
11-
doi: "https://doi.org/10.1101/2024.05.31.596908"
11+
doi: "10.1101/2024.05.31.596908"
1212

1313
resources:
1414
- type: r_script
@@ -19,7 +19,7 @@ engines:
1919
image: openproblems/base_r:1.0.0
2020
setup:
2121
- type: r
22-
bioc: SpaNorm, zellkonverter
22+
bioc: [SpaNorm, zellkonverter]
2323
- type: native
2424

2525
runners:

src/methods_normalization/spanorm/script.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ library(SingleCellExperiment)
33
library(SpatialExperiment)
44
library(zellkonverter)
55

6+
## VIASH START
67
par <- list(
7-
"input" = 'resources_test/task_ist_preprocessing/mouse_brain_combined/spatial_aggregated_counts.h5ad',
8+
"input_spatial_aggregated_counts" = 'resources_test/task_ist_preprocessing/mouse_brain_combined/spatial_aggregated_counts.h5ad',
89
"output" = 'tmp/spatial_spanormed_counts.h5ad'
910
)
11+
## VIASH END
1012

11-
sce <- readH5AD(par$input)
13+
sce <- readH5AD(par$input_spatial_aggregated_counts)
1214
sce <- as(sce, "SpatialExperiment")
1315

1416
centroid_x <- colData(sce)$centroid_x

0 commit comments

Comments
 (0)