anndict.utils.process_gene_counts#
- anndict.utils.process_gene_counts(file_path, box_size, step_size, platform=None)[source]#
Processes the gene counts from the CSV file.
- Parameters:
- file_path
str The path to the CSV file.
- box_size
int The size of the box.
- step_size
int The step size.
- platform
Literal['Merscope','Xenium'] (default:None) The platform type.
- file_path
- Return type:
tuple[csr_matrix,array,list[list[int]]]- Returns:
A tuple containing the sparse matrix, unique genes, and list of top-left coordinates of each box.