R/number_of_cells_within_radius.R
number_of_cells_within_radius.Rd
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 )
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 |
List of dataframes with the number of target cells of each of the reference cells