omicverse.pl.cpdb_chord¶
- omicverse.pl.cpdb_chord(adata, interaction_edges, celltype_key, count_min=50, nodecolor_dict=None, fontsize=12, padding=80, radius=100, save='chord.svg', rotation=0, bg_color='#ffffff', bg_transparancy=1.0)[source]¶
Create a chord diagram visualization of CellPhoneDB 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 annotationcount_min (default:
50) – Minimum interaction count threshold (50)nodecolor_dict (default:
None) – Custom color mapping for cell types (None, uses default)fontsize (default:
12) – Font size for labels (12)padding (default:
80) – Padding around chord diagram (80)radius (default:
100) – Radius of the chord diagram (100)save (default:
'chord.svg') – File path to save SVG output (‘chord.svg’)rotation (default:
0) – Rotation angle for the diagram (0)bg_color (default:
'#ffffff') – Background color (‘#ffffff’)bg_transparancy (default:
1.0) – Background transparency (1.0)
- Returns:
OpenChord figure object
- Return type:
fig