Skip to content

Commit 214f782

Browse files
committed
fix components
1 parent d11cef7 commit 214f782

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

scripts/create_resources/process_datasets.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ param_list:
2020
- id: "mouse_brain_combined/rep2"
2121
input_sp: "$input_dir/10x_xenium/2023_10x_mouse_brain_xenium/rep2/dataset.zarr"
2222
input_sc: "$input_dir/allen_brain_cell_atlas/2023_yao_mouse_brain_scrnaseq_10xv2/dataset.h5ad"
23-
- id: "mouse_brain_combined/rep2"
24-
input_sp: "$input_dir/10x_xenium/2023_10x_mouse_brain_xenium/rep2/dataset.zarr"
23+
- id: "mouse_brain_combined/rep3"
24+
input_sp: "$input_dir/10x_xenium/2023_10x_mouse_brain_xenium/rep3/dataset.zarr"
2525
input_sc: "$input_dir/allen_brain_cell_atlas/2023_yao_mouse_brain_scrnaseq_10xv2/dataset.h5ad"
2626
2727
output_sc: "\$id/output_sc.h5ad"

src/api/comp_data_preprocessor.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ info:
88
This component processes a common single-cell and a common spatial transcriptomics
99
dataset for the benchmark.
1010
arguments:
11-
- name: "--input_ist"
11+
- name: "--input_sp"
1212
__merge__: file_common_ist.yaml
1313
direction: input
1414
required: true
15-
- name: "--input_scrnaseq"
15+
- name: "--input_sc"
1616
__merge__: file_common_scrnaseq.yaml
1717
direction: input
1818
required: true

src/data_processors/process_dataset/script.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66

77
### VIASH START
88
par = {
9-
"input_scrnaseq": "resources_test/common/2023_yao_mouse_brain_scrnaseq_10xv2/dataset.h5ad",
10-
"input_ist": "resources_test/common/2023_10x_mouse_brain_xenium_rep1/dataset.zarr",
9+
"input_sc": "resources_test/common/2023_yao_mouse_brain_scrnaseq_10xv2/dataset.h5ad",
10+
"input_sp": "resources_test/common/2023_10x_mouse_brain_xenium_rep1/dataset.zarr",
1111
"output_scrnaseq": "resources_test/task_ist_preprocessing/2023_yao_mouse_brain_scrnaseq_10xv2/dataset.h5ad",
1212
"output_ist": "resources_test/task_ist_preprocessing/2023_10x_mouse_brain_xenium_rep1/dataset.zarr"
1313
}
1414
### VIASH END
1515

1616
# Load the single-cell data
17-
adata = ad.read_h5ad(par["input_scrnaseq"])
17+
adata = ad.read_h5ad(par["input_sc"])
1818

1919
# Load the spatial data
20-
sdata = sd.read_zarr(par["input_ist"])
20+
sdata = sd.read_zarr(par["input_sp"])
2121

2222
# Subset the single-cell data to spatial genes
2323
genes_sp = []

src/datasets/loaders/allen_brain_cell_atlas/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@
161161
print(f"Output: {adata}")
162162

163163
# Write data
164-
adata.write_h5ad(par["output"])
164+
adata.write_h5ad(par["output"], compression="gzip")

0 commit comments

Comments
 (0)