spatialdata_io.visium_hd#
- spatialdata_io.visium_hd(path, dataset_id=None, filtered_counts_file=True, bin_size=None, fullres_image_file=None, load_all_images=False, imread_kwargs=mappingproxy({}), image_models_kwargs=mappingproxy({}), anndata_kwargs=mappingproxy({}))#
Read 10x Genomics Visium HD formatted dataset.
See also
- Parameters:
path (str | Path) – Path to directory containing the 10x Genomics Visium HD output.
dataset_id (str | None (default:
None
)) – Unique identifier of the dataset. IfNone
, it tries to infer it from the file name of the feature slice file.filtered_counts_file (bool (default:
True
)) – It sets the value ofcounts_file
to'filtered_feature_bc_matrix.h5'
(whenTrue
) or to'raw_feature_bc_matrix.h5'
(whenFalse
).bin_size (int | list[int] | None (default:
None
)) – When specified, load the data of a specific bin size, or a list of bin sizes. By default, it loads all the available bin sizes.fullres_image_file (str | Path | None (default:
None
)) – Path to the full-resolution image. By default the image is searched in the'microscope_image'
directory.load_all_images (bool (default:
False
)) – IfFalse
, load only the full resolution, high resolution and low resolution images. IfTrue
, also the following images:'spatial/cytassist_image.tiff'
.imread_kwargs (Mapping[str, Any] (default:
mappingproxy({})
)) – Keyword arguments forimageio.imread()
.image_models_kwargs (Mapping[str, Any] (default:
mappingproxy({})
)) – Keyword arguments forspatialdata.models.Image2DModel
.anndata_kwargs (Mapping[str, Any] (default:
mappingproxy({})
)) – Keyword arguments foranndata.read_h5ad()
.
- Return type:
SpatialData
- Returns:
: SpatialData object for the Visium HD data.