View source: R/imageProcessing.R
spatial_sample_visualization | R Documentation |
Plots for each sample, an image of each segmented cell colored by user specified features
spatial_sample_visualization( seg_path, celltypes, cell2rgb, samplename, background = "black", outpath = "~/", file_prefix = "", cont_field = "", contvals = NULL )
seg_path |
string of full path to cell segmentation map |
celltypes |
a list of cell labels with names of the list corresponding to cellid |
cell2rgb |
a dictionary that matches discrete cell label to a rgb code |
samplename |
string name of SMI sample |
background |
(default "black") background color ("black" or "white") |
outpath |
(default = "~/") string path to output directory |
file_prefix |
(default = "") string prefix of file |
cont_field |
the celltype for which the coloring is continuous, not discrete. names must correspond to cellid |
contvals |
list of the hexcolors corresponding to each cell to be plotted on continuous scale |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.