lynx.plot.netVisual_circle

lynx.plot.netVisual_circle(matrix_df, min_threshold=None, edge_width_max=10, vertex_size_max=50, show_labels=True, edge_color='#606060', colors=None, figsize=(10, 10), use_sender_colors=True, curve_strength=0.15, adjust_text=False, title='Cell-Cell Communication Network', edge_legend_label='Interaction\nstrength', n_edge_legend_levels=5, show_celltype_legend=True)[source]

# Reference: https://github.com/Starlitnightly/omicverse

Circular network visualization (similar to CellChat’s circle plot) Uses sender cell type colors as edge gradient colors

Parameters:

matrix_dfpd.DataFrame

Interaction matrix (rows: sender type, columns: receiver type)

titlestr

Plot title

edge_width_maxfloat

Maximum edge width

vertex_size_maxfloat

Maximum vertex size

show_labelsbool

Whether to show cell type labels

edge_colorstr

Edge color (used when use_sender_colors=False)

figsizetuple

Figure size

use_sender_colorsbool

Whether to use different colors for different sender cell types (default: True)

curve_strengthfloat

Strength of the curve (0 = straight, higher = more curved)

adjust_textbool

Whether to use adjust_text library to prevent label overlapping (default: False)

edge_legend_labelstr

Title for the edge width legend

n_edge_legend_levelsint

Number of discrete levels in the edge width legend

show_celltype_legendbool

Whether to show the bottom cell-type color legend (default: True)