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

get_field_info(path)

Arguments

path

Path to the component_data.tif file.

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.

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.

See also

Other file readers: list_cell_seg_files, read_cell_seg_data, read_components, read_maps

Examples

if (require('phenoptrExamples')) { path <- system.file('extdata', 'samples', 'Set4_1-6plex_[16142,55840]_component_data.tif', package='phenoptrExamples') get_field_info(path) }
#> Loading required package: phenoptrExamples
#> $image_size #> [1] 1868 1400 #> #> $microns_per_pixel #> [1] 0.4981226 #> #> $field_size #> [1] 930.4929 697.3716 #> #> $location #> [1] 15676.75 55491.31 #>