File tree Expand file tree Collapse file tree
data_processors/process_dataset
datasets/loaders/allen_brain_cell_atlas Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2727output_sc: "\$ id/output_sc.h5ad"
Original file line number Diff line number Diff line change 88 This component processes a common single-cell and a common spatial transcriptomics
99 dataset for the benchmark.
1010arguments :
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
Original file line number Diff line number Diff line change 66
77### VIASH START
88par = {
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
2323genes_sp = []
Original file line number Diff line number Diff line change 161161print (f"Output: { adata } " )
162162
163163# Write data
164- adata .write_h5ad (par ["output" ])
164+ adata .write_h5ad (par ["output" ], compression = "gzip" )
You can’t perform that action at this time.
0 commit comments