tirank.LoadData.load_st_data

tirank.LoadData.load_st_data(path_to_st_floder, savePath)[source]

Loads spatial transcriptomics (ST) data from a 10x Visium folder.

Uses scanpy.read_visium() to load the data.

Parameters:
  • path_to_st_floder (str) – The file path to the directory containing the 10x Visium output (e.g., ‘spatial’, ‘filtered_feature_bc_matrix.h5’).

  • savePath (str) – The main project directory path to save the loaded AnnData object as ‘anndata.pkl’.

Returns:

The loaded AnnData object.

Return type:

sc.AnnData