svgbit.plot.hotspot_colocalization_map#

svgbit.plot.hotspot_colocalization_map(dataset: svgbit.core.STDataset.STDataset, genes: list, save_path: Optional[Union[str, pathlib.Path]] = None, he_image: Optional[Union[str, pathlib.Path, PIL.Image.Image]] = None, s: float = 4, dpi: float = 300, colors: Optional[list] = None) matplotlib.figure.Figure[source]#

Draw hotspot expression for multiple genes.

Parameters
datasetSTDataset

A STDataset with hotspot estimation finished.

genesstr

Which genes to draw.

save_pathstr or pathlib.Path, default None

Heatmap save path. If None, plot will not save.

he_imagestr, pathlib.Path or PIL.Image.Image, default None

H&E image of tissue. If None is given (default), distribution map will not show tissue picture.

sfloat, default 4

Spot size.

dpifloat, default 300

DPI for saved figure.

colorslist, default None

A list for spot colors. If None, auto generate colors.

Returns
figmatplotlib.figure.Figure

A matplotlib.figure.Figure plot.