scviva.pl.harreman.plot_ct_interacting_cell_scores#
- scviva.pl.harreman.plot_ct_interacting_cell_scores(adata, deconv_adata=None, cell_type_pair=None, interactions=None, coords_obsm_key=None, test=None, agg_only=False, normalize_values=False, sample_specific=False, s=None, vmin=None, vmax=None, figsize=(10, 10), cmap='Reds', colorbar=True, swap_y_axis=False)[source]#
Plot cell-type–specific interacting cell scores across spatial coordinates.
For gene pairs or metabolites.
- Parameters:
- adata
AnnData AnnData containing per-cell-type interaction scores.
- deconv_adata
AnnData|None If provided, interaction results are copied from this object into
adata.- cell_type_pair
list|None Cell type pairs to visualize - tuple: (“T cell”, “Macrophage”) - string: “T cell” (matches any pair containing this cell type)
- interactions
list|None Gene pairs or metabolites to visualize.
- coords_obsm_key
str|None Key for spatial coordinates in
obsm.- test
Union[Literal['parametric'],Literal['non-parametric'],None] Statistical test used during computation.
- agg_only
bool|None Whether to plot only aggregated per-cell-type interactions.
- normalize_values
bool|None Apply min–max normalization to each column.
- sample_specific
bool|None Plot one figure per sample.
- s
float|None Dot size.
- vmin
float|None Color scale limits; percentiles allowed.
- vmax
float|None Color scale limits; percentiles allowed.
- figsize
tuple|None Figure size.
- cmap
str|None Colormap for plotting.
- colorbar
bool|None Whether to display the colorbar.
- swap_y_axis
bool|None Flip y-axis orientation.
- adata