Skip to contents

Image Conversion for Direct Export of Samples

Usage

ImageConversion(x, n_resolution = 100, selected_markers = NULL, output = NULL)

Arguments

x

A TockyPrepData object

n_resolution

The number of bins to be used. The default is 100, i.e. the resolution of output images is 100 x 100.

selected_markers

A character vector with the length two for defining marker data to be converted into 2D images.

output

A character to specify the output directory.

Value

An updated TockyPrepData object. In addition, the function exports image data as numpy array files, which are to be used for TockyMLPy analysis and TockyCNN model construction.

Examples

if (FALSE) { # \dontrun{
x <- ImageConversion(x, n_resolution = 100)
} # }