Takes in a vector or radii and calculates the average intensity of a target marker using average_intensity function. It plots the intensity level as a line graph
plot_average_intensity(sce_object, reference_marker, target_marker, radii)
sce_object | SingleCellExperiment object in the form of the output of format_image_to_sce |
---|---|
reference_marker | String specifying the reference marker |
target_marker | String specifying the marker to calculate its average intensity |
radii | Vector of integers specifying the search radius around reference cells |
A plot is returned
plot_average_intensity(SPIAT::formatted_image, reference_marker="CD8", target_marker="CD4", c(30, 35, 40, 45, 50, 75, 100))