read_maps: Read an inForm segmentation map file.

Description Usage Arguments Details Value See Also Examples

View source: R/read_maps.R

Description

Reads an inForm 'binary_seg_maps.tif“ file and returns a named list of images. The names reflect the content of the individual images. Possible names are Nucleus, Cytoplasm, Membrane, Object, TissueClassMap, and ProcessRegionImage; not every image file will include all names.

Usage

1
read_maps(map_path)

Arguments

map_path

Path to the map file or a cell seg data file in the same directory.

Details

Images are oriented to match the coordinates in a cell seg data file, i.e. (0, 0) at the top left and the row corresponding to Y and column corresponding to X.

Value

A named list of images, one for each map in the source file.

See Also

Other file readers: get_field_info, list_cell_seg_files, read_cell_seg_data, read_components

Examples

1
2
3
4
5
path <- system.file("extdata", "sample",
                   "Set4_1-6plex_[16142,55840]_binary_seg_maps.tif",
                   package = "phenoptr")
maps <- read_maps(path)
names(maps)

PerkinElmer/phenoptr documentation built on May 30, 2019, 8:01 a.m.