spatialdata_io.cosmx

Contents

spatialdata_io.cosmx#

spatialdata_io.cosmx(path, dataset_id=None, transcripts=True, imread_kwargs=mappingproxy({}), image_models_kwargs=mappingproxy({}))#

Read Cosmx Nanostring data.

This function reads the following files:

  • <dataset_id>_`'exprMat_file.csv'`: Counts matrix.

  • <dataset_id>_`'metadata_file.csv'`: Metadata file.

  • <dataset_id>_`'fov_positions_file.csv'`: Field of view file.

  • 'CellComposite': Directory containing the images.

  • 'CellLabels': Directory containing the labels.

Parameters:
Return type:

SpatialData

Returns:

: spatialdata.SpatialData