tiff_to_mtx {FCSlib}R Documentation

Transformation of multiple-image TIFF files or arrays into a matrix

Description

Transforms multiple-image TIFF files or 3D arrays into 2D matrices with a user-specified number of columns

Usage

tiff_to_mtx(data, columns)

Arguments

data

A character string indicating the name of a TIFF file or a 3D array

columns

The number of columns of the resulting matrix

Details

Creates a matrix with a user-specified number of columns and a number of rows equal to the total amount of points in 'data' divided by 'columns'.

Value

A matrix

Author(s)

Alejandro Linares

See Also

binMatrix

Examples


### Please navigate to
### (https://github.com/FCSlib/FCSlib/tree/master/Sample%20Data)
### to find this sample data

x <- readFileTiff("Example_file_name.tif")
class(x); dim(x)

x.m <- tiff_to_mtx(data = x, columns = 64)
class(x.m); dim(x.m)


[Package FCSlib version 1.3.0 Index]