spatialdata_io.curio

Contents

spatialdata_io.curio#

spatialdata_io.curio(path)#

Read Curio formatted dataset.

This function reads the following files:

  • <dataset_id>_`'anndata.h5ad'`: Counts and metadata file.

  • <dataset_id>_`'cluster_assignment.txt'`: Cluster assignment file.

  • <dataset_id>_`'Metrics.csv'`: Metrics file.

  • <dataset_id>_`'variable_features_clusters.txt'`: Variable features clusters file.

  • <dataset_id>_`'variable_features_spatial_moransi.txt'`: Variable features Moran’s I file.

<dataset_id> is automatically inferred from the path.

Parameters:

path (str | Path) – Path to the directory containing the data.

Return type:

SpatialData

Returns:

: spatialdata.SpatialData