troutpy.pp.create_grid_squares#
- troutpy.pp.create_grid_squares(sdata, layer='transcripts', square_size=50)#
Generate a grid of square polygons covering the transcript space.
- Parameters:
- Return type:
- Returns:
- ShapesModel
Grid of square polygons covering the transcript bounding box.
- numpy.ndarray
Array of shape
(N, 2)with the[x, y]centroid coordinates of each square.