Skip to contents

Generates a heatmap of cell pair localization ratios and p-values as asterisks as well as a correlation heatmap of scores and correlation probabilities as asterisks between all cell types found after deconvolution

Usage

localization_heatmap(
  spe,
  method,
  distance = 0,
  correlation = TRUE,
  localization = TRUE,
  matrix = FALSE,
  presence_matrix = NULL
)

Arguments

spe

SpatialExperiment object

method

deconvolution method

distance

size area of interest

correlation

correlation heatmap based on scores

localization

colocalization and avoidance heatmap

matrix

return colocalization, avoidance, correlation matrices separately

presence_matrix

manually input a presence matrix´

Value

cell pair localization heatmap and correlation heatmap