multiple_images_with_immune_rings.Rd
Generate a set of images with different immune ring properties. The default values for the arguments give an example of multiple image simulation which enable an automatic multiple image simulation without the specification of any argument.
A data frame or SpatialExperiment
class object with
locations of points representing background cells. Further cell types will
be simulated based on this background sample. The data.frame or the
spatialCoords()
of the SPE object should have colnames including
"Cell.X.Positions" and "Cell.Y.Positions". By default use the internal
bg1
background image.
Numeric Vector. The size of the cluster. If numeric, all simulated images have the same cluster size. If vector, images with a range of different cluster sizes will be simulated. The size should not exceed the limit of the image sides.
Number. Choose from one of the following pre-designed shapes (1,2 or 3). The pre-designed shape contains information of the cell names of the cluster, the infiltration cell types, the proportions of infiltration, the cluster size, the ring width, the proportions of infiltrated cells into immune rings and the cluster centre locations. In order to simulate a set of images, use the arguments below to specify the ranges of the properties. The predefined cell types can not be changed, while users can change them manually after the simulation.
Numeric Vector. The degree of infiltration. If numeric, all simulated images have the same infiltration degree. If vector, images with a range of different infiltration proportions will be simulated.
Numeric Vector. The width of the immune ring. If numeric, all simulated images have the same ring width. If vector, images with a range of different ring widths will be simulated.
Numeric or Vector. The X location of the cluster center offset. If numeric, all simulated images have the same center X location. If vector, images with a range of different center locations will be simulated.
Numeric or Vector of the same length of cluster_loc_x
.
The Y location of the cluster center offset.
Numeric or Vector. The degree of tumour infiltration in the region of immune rings.
Boolean Whether plot the simulated images or not.Default is TRUE.
String Vector specifying the order of the cell cateories to be plotted. Default is NULL - the cell categories under the "Cell.Type" column would be used for plotting.
String Vector specifying the order of the colours that
correspond to the plot_categories
arg. Default is NULL - the predefined
colour vector would be used for plotting.
A list of spe objects
multiple_background_images
for simulating multiple
mixed background images, and multiple_images_with_clusters
for simulating multiple images with clusters.
Other simulate multiple images functions:
multiple_background_images()
,
multiple_images_with_clusters()