Takes in a singlecellexperiment object from format_image_to_sce, splits the image into specified sections and plots the different combinations of markers within the image segments.
image_splitter( sce_object, number_of_splits, plot = FALSE, cut_labels = TRUE, colour_vector = NULL, x_position_min = NULL, x_position_max = NULL, y_position_min = NULL, y_position_max = NULL, column = "Cell.Type" )
sce_object | SingleCellExperiment object in the form of the output of format_image_to_sce |
---|---|
number_of_splits | Number specifying the number of segments (e.g. 2 = 2x2, 3 = 3x3) |
plot | Specifies whether the splitted images should be printed in a pdf |
cut_labels | - specifies whether to plot where the image had been segmented |
colour_vector | List of colors. If specified, the colours will be used for plotting. If NULL, colors will be generated automatically |
x_position_min | Integer used to specify the minimum x boundary to be splitted |
x_position_max | Integer used to specify the maximum x boundary to be splitted |
y_position_min | Integer used to specify the minimum y boundary to be splitted |
y_position_max | Integer used to specify the maximum y boundary to be splitted |
column | String specifying which column the colouring should be based on |
A list of data.frames is returned