Calculates the number of cells positive for a target marker within a pre-defined radius around cells positive for a reference marker

number_of_cells_within_radius(
  sce_object,
  reference_marker,
  target_marker,
  radius = 20,
  column
)

Arguments

sce_object

SingleCellExperiment object in the form of the output of format_image_to_sce

reference_marker

Marker to be used for reference cells

target_marker

Marker to be used for target cells

radius

Radius around the reference cells

column

String specifying the column with the desired cell type annotations

Value

List of dataframes with the number of target cells of each of the reference cells