insitupy.spatialdata.read_spatialdata#
- insitupy.spatialdata.read_spatialdata(path, verbose=True, strict=False)#
Read an InSituPy-dialect SpatialData zarr store into an InSituData or InSituExperiment.
Thin convenience wrapper around
spatialdata.read_zarr+convert_from_spatialdata(). Matches theinsitupy.ioreader convention (read_xenium,read_visium, …) rather than auto-detecting the on-disk format insideInSituData.read()/InSituExperiment.read().- Parameters:
path (
str|PathLike|Path) – Path to a SpatialData.zarrstore written byconvert_to_spatialdata().verbose (
bool(default:True)) – If True, log progress for each modality.
- Returns:
The reconstructed object(s), with no backing project directory - call
.saveas(path)to persist as a.insitupyproject before.save()can be used.- Return type: