Skip to content

Commit

Permalink
add xenium
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahOuologuem committed Nov 11, 2024
1 parent ac41674 commit 9acc5d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions panpipes/funcs/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ def gen_load_spatial_jobs(caf, mode_dictionary = {}, load_raw=True):
spatial_filetype = None
else:
spatial_path = caf["spatial_path"][nn]
if caf['spatial_filetype'][nn]=="xenium":
spatial_filetype = caf['spatial_filetype'][nn]
visium_feature_bc_matrix = None
visium_fullres_image_file = None
visium_tissue_positions_file = None
visium_scalefactors_file = None
vpt_cell_by_gene = None
vpt_cell_metadata = None
vpt_cell_boundaries = None
if caf['spatial_filetype'][nn]=="vizgen":
visium_feature_bc_matrix = None
visium_fullres_image_file = None
Expand Down
4 changes: 3 additions & 1 deletion panpipes/python_scripts/make_spatialData_from_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ def check_dir_transform(infile_path, transform_file):
tissue_positions_file=args.tissue_positions_file,
scalefactors_file=args.scalefactors_file)


elif args.spatial_filetype =="xenium":
sdata = sd_io.xenium(path = args.spatial_infile)

L.info("Resulting SpatialData is:")
L.info(sdata)
#L.info("Creating MuData with .mod['spatial']")
Expand Down

0 comments on commit 9acc5d0

Please sign in to comment.