stereo.algorithm.regulatory_network_inference.PlotRegulatoryNetwork.spatial_scatter_by_regulon#
- PlotRegulatoryNetwork.spatial_scatter_by_regulon(network_res_key='regulatory_network_inference', reg_name=None, dot_size=None, palette='CET_L4', width=None, height=None, vmin=None, vmax=None, **kwargs)[source]#
Plot genes of one regulon on a 2D map
- Parameters:
network_res_key (
str
) – the key which specifies inference regulatory network result in data.tl.result, defaults to ‘regulatory_network_inference’reg_name (
Optional
[str
]) – specify the regulon you want to draw, defaults to None, if none, will select randomly.dot_size (
Optional
[int
]) – marker size, defaults to Nonepalette (
str
) – Color theme, defaults to ‘CET_L4’height (
Optional
[int
]) – height of drawingwidth (
Optional
[int
]) – width of drawingvmin (
Optional
[float
]) – The value representing the lower limit of the color scale. Values smaller than vmin are plotted with the same color as vmin.vmax (
Optional
[float
]) – The value representing the lower limit of the color scale. Values smaller than vmin are plotted with the same color as vmin.reorganize_coordinate –
if the data is merged from several slices, whether to reorganize the coordinates of the obs(cells), if set it to a number, like 2, the coordinates will be reorganized to 2 columns on coordinate system as below:
data1 data2data3 data4data5 …… …if set it to
False
, the coordinates will not be changed.horizontal_offset_additional – the additional offset between each slice on horizontal direction while reorganizing coordinates.
vertical_offset_additional – the additional offset between each slice on vertical direction while reorganizing coordinates.
- Returns:
matplotlib.figure