spateo.io.starmap

IO functions for STARmap technology.

Functions

read_starmap_as_anndata(→ anndata.AnnData)

Read STARmap data directory as AnnData.

read_starmap_positions_as_dataframe(→ pandas.DataFrame)

Read STARmap cell positions npz as dataframe.

read_starmap(→ anndata.AnnData)

Read STARmap data as AnnData.

Module Contents

spateo.io.starmap.read_starmap_as_anndata(data_dir: str) anndata.AnnData[source]

Read STARmap data directory as AnnData.

Parameters:
data_dir

Path to directory containing STARmap files.

Returns:

AnnData of cell x genes.

spateo.io.starmap.read_starmap_positions_as_dataframe(path: str) pandas.DataFrame[source]

Read STARmap cell positions npz as dataframe.

Parameters:
path

Path to file

Returns:

DataFrame containing cell positions.

spateo.io.starmap.read_starmap(data_dir: str) anndata.AnnData[source]

Read STARmap data as AnnData.

Parameters:
data_dir

Path to directory containing STARmap files.