phlower.pl.nxdraw_group

phlower.pl.nxdraw_group(adata: AnnData, graph_name: str | None = None, layout_name: str | None = None, group_name: str = 'group', show_edges: bool = True, show_legend: bool = True, 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'], legend_loc='center left', bbox_to_anchor=(1, 0.5), markerscale=1, label=True, labelsize=10, labelstyle='text', directed=False, edge_color='gray', legend_col=1, ax=None, **args)

networkx plot groups

Parameters

adata: AnnData

an Annodata object

graph_name: str

graph_name of the starts ends connected graph

layout_name: str

layout name show the graph

group_name: str

the group name of the node

show_edges: bool

show edges or not

show_legend: bool

show legend or not

color_palette: list

the color palette of the group, default is sns.color_palette(cc.glasbey, n_colors=50).as_hex()

legend_loc: str

the location of the legend

bbox_to_anchor: tuple

the bbox_to_anchor of the legend

markerscale: float

the scale of the marker

label: bool

show label or not

labelsize: float

the size of the label

labelstyle: str

the style of the label

directed: bool

show directed graph or not

edge_color: str

the color of the edge

legend_col: int

the number of the legend column

ax: matplotlib.axes

the axes of the plot