readTemplateBySection: readTemplateBySection

Description Usage Arguments Value Examples

View source: R/readTemplate.R

Description

Read separate sections from virtual template (in jpeg) into R. One image has to be provided per spatial cluster.

Usage

1
readTemplateBySection(pathToJpegFolder, plot = TRUE)

Arguments

pathToJpegFolder

Path to the folder containin jpeg images. The number of virtual cells will be determined by the size of the picture.

plot

Boolean indicating whether to return the computed template colored by spatial sections. Default: TRUE.

Value

A virtual map data.frame containing the virtual cell coordinates, assigned spatial cluster (based on the file name), and cluster color

Examples

1
virtualTemplate <- readTemplateBySection(pathToJpeg)

aertslab/ScoMAP documentation built on Oct. 8, 2021, 1:15 a.m.