phlower.pl.nxdraw_harmonic

phlower.pl.nxdraw_harmonic(adata: AnnData, graph_name: str | None = None, evector_name: str | None = None, title: str = '', dims: List[V] = [0, 1], node_size: float = 1, show_center=True, with_potential='u', edge_cell_types=None, show_legend=True, markerscale=1, ax=None, color_palette=['#d60000', '#8c3bff', '#018700', '#00acc6', '#97ff00', '#ff7ed1', '#6b004f', '#ffa52f', '#573b00', '#005659', '#0000dd', '#00fdcf', '#a17569', '#bcb6ff', '#95b577', '#bf03b8', '#645474', '#790000', '#0774d8', '#fdf490', '#004b00', '#8e7900', '#ff7266', '#edb8b8', '#5d7e66', '#9ae4ff', '#eb0077', '#a57bb8', '#5900a3', '#03c600', '#9e4b00', '#9c3b4f', '#cac300', '#708297', '#00af89', '#8287ff', '#5d363b', '#380000', '#fdbfff', '#bde6bf', '#db6d01', '#93b8b5', '#e452ff', '#2f5282', '#c36690', '#54621f', '#c49e72', '#038287', '#69e680', '#802690'], seed=2022, **args)

plot holes from eigen decomposition of L1

Parameters

adata: AnnData

an Annodata object

graph_name: str

key of the graph in adata.uns, default is None

evector_name: str

eigen vector of L1

title: str

title of the plot

dims: list

the dimension of the eigen vector to plot

node_size: int

the size of the node

show_center: bool

whether to show the center of the hole

with_potential: str

use potential to flip the evector or not

edge_cell_types: list

cell types to plot

show_legend: bool

whether to show legend

markerscale: float

scale of the marker

ax: matplotlib axis

the axis to plot

color_palette: list

color palette to use default is sns.color_palette(cc.glasbey, n_colors=50).as_hex()

seed: int

random seed