stlearn.tl.cci.het.create_grids¶
-
stlearn.tl.cci.het.create_grids(adata: anndata._core.anndata.AnnData, num_row: int, num_col: int, radius: int = 1)¶ Generate screening grids across the tissue sample :param adata: :type adata: AnnData The data object to generate grids on :param num_row: :type num_row: int Number of rows :param num_col: :type num_col: int Number of columns :param radius: :type radius: int Radius to determine neighbours (default: 1, nearest)
- Returns
grids The individual grids defined by left and upper side
width Width of grids
height Height of grids