Skip to contents

Cell pair colocalization or avoidance

Usage

cell_pair_localization(
  spe,
  method = NULL,
  distance = 0,
  density = FALSE,
  cell_type_A = NULL,
  cell_type_B = NULL,
  niter = 100,
  presence_matrix = NULL,
  threshold = NULL,
  title = NULL
)

Arguments

spe

SpatialExperiment

method

presence method

distance

distance in spot diameter

density

density plot

cell_type_A

celltype 1

cell_type_B

celltype 2

niter

permutations

presence_matrix

presence matrix if available

threshold

threshold for custom presence determination

title

adjust title of density plot

Value

presence/absence for each cell type