scviva.pl.harreman.plot_interacting_cell_scores#
- scviva.pl.harreman.plot_interacting_cell_scores(adata, interactions=None, coords_obsm_key=None, test=None, only_sig_values=False, use_FDR=True, 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 spatial maps of interacting cell scores for selected gene pairs or metabolites.
- Parameters:
- adata
AnnData Must contain interacting cell statistics in:
uns['interacting_cell_results'][test]['gp'/'m'].- interactions
list|None Gene pairs or metabolites to plot.
- coords_obsm_key
str|None Key in
adata.obsmcontaining spatial coordinates.- test
Union[Literal['parametric'],Literal['non-parametric'],None] Determines which statistical results to load.
- only_sig_values
bool|None If True, plot only significant values (FDR or p-value).
- use_FDR
bool|None If
only_sig_values=True, choose FDR instead of raw p-values.- normalize_values
bool|None Apply per-interaction min–max normalization.
- sample_specific
bool|None Plot each sample separately, using
uns['sample_key'].- 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 the score intensity.
- colorbar
bool|None Show or hide the colorbar.
- swap_y_axis
bool|None Flip the y-axis for visualization conventions.
- adata