bin2cell.grid_image
- bin2cell.grid_image(adata, val, log1p=False, mpp=2, sigma=None, save_path=None)
Create an image of a specified
valacross the array coordinate grid. Orientation matches the morphology image and spatial coordinates.Input
- adata
AnnData 2um bin VisiumHD object. Should have array coordinates evaluated by calling
b2c.check_array_coordinates().- val
str .obscolumn or variable name to visualise.- log1p
bool, optional (default:False) Whether to log1p-transform the values in the image.
- mpp
float, optional (default: 2) Microns per pixel of the output image.
- sigma
floatorNone, optional (default:None) If not
None, will run the final image throughskimage.filters.gaussian()with the provided sigma value.- save_path
filepathorNone, optional (default:None) If specified, will save the generated image to this path (e.g. for StarDist use). If not provided, will return image.
- adata