omicverse.pl.cpdb_network¶
- omicverse.pl.cpdb_network(adata, interaction_edges, celltype_key, nodecolor_dict=None, count_min=50, source_cells=None, target_cells=None, edgeswidth_scale=1, nodesize_scale=1, figsize=(4, 4), title='', fontsize=12, ax=None, return_graph=False)[source]¶
Create a circular network plot of CellPhoneDB cell-cell interactions.
- Parameters:
adata (
AnnData) – Annotated data object with cell type informationinteraction_edges (
DataFrame) – DataFrame with SOURCE, TARGET, and COUNT columnscelltype_key (
str) – Column name for cell type annotationnodecolor_dict (default:
None) – Custom color mapping for cell types (None, uses default)count_min (default:
50) – Minimum interaction count threshold (50)source_cells (default:
None) – List of source cell types to include (None, uses all)target_cells (default:
None) – List of target cell types to include (None, uses all)edgeswidth_scale (
int(default:1)) – Scale factor for edge widths (1)nodesize_scale (
int(default:1)) – Scale factor for node sizes (1)figsize (
tuple(default:(4, 4))) – Figure dimensions as (width, height) ((4,4))title (
str(default:'')) – Plot title (‘’)fontsize (
int(default:12)) – Font size for labels (12)ax (default:
None) – Existing matplotlib axes object (None)return_graph (
bool(default:False)) – Whether to return NetworkX graph object (False)
- Returns:
matplotlib.axes.Axes object or NetworkX graph if return_graph=True
- Return type:
ax