get_field_info: Read information about a field from a component image file.

Description Usage Arguments Details Value See Also Examples

View source: R/read_components.R

Description

Find the location, size and magnification of an inForm field by inspecting a component_data.tif file.

Usage

1

Arguments

path

Path to the component_data.tif file.

Details

The field location is determined from the coordinates in the file name. The field size and magnification are read from TIFF tags in the file.

Limited to 1x1 fields due to limitations in the tiff package. Install the PerkinElmer fork of the tiff package to remove this limitation.

Value

A named list with values

location

The physical (x, y) location of the top-left corner of the field on the source slide, in microns.

field_size

The physical (width, height) of the field, in microns.

image_size

The (width, height) of the field image, in pixels.

microns_per_pixel

The size of each pixel, in microns.

See Also

Other file readers: list_cell_seg_files, read_cell_seg_data, read_components, read_maps

Examples

1
2
3
4
5
6
if (require('phenoptrExamples')) {
  path <- system.file('extdata', 'samples',
    'Set4_1-6plex_[16142,55840]_component_data.tif',
    package='phenoptrExamples')
  get_field_info(path)
}

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