as_flowFrame: Convert a matrix to a flowFrame object

View source: R/fcs_io.R

as_flowFrameR Documentation

Convert a matrix to a flowFrame object

Description

This function converts a matrix to a flowFrame object, taking care of properly setting parameters and keywords in the resulting object

Usage

as_flowFrame(exprs.m, source.frame = NULL)

Arguments

exprs.m

The data matrix. Parameter names will be taken from colnames(exprs.m), but see also the description of the source.flowFrame parameter

source.flowFrame

If a flowFrame object is supplied, the function will copy matching names and descriptions keywords from it (e.g. $P1S in the source.flowFrame is copied to $P1S of the new flowFrame etc.). Extra columns present in exprs.m are preserved (i.e. if source.flowFrame doesn't contain $P1S the original version is preserved). Note that this in general only useful in simple cases where both the data matrix and the flowFrame represent the same data, and have the same column ordering, and you are interested in copy things like parameter names and descriptions. You will probably introduce errors and inconsistencies in the resulting flowFrame object if that is not the case. A number of extra optional columns (such as $CYT) will also be copied if present

Value

Returns a flowFrame object


ParkerICI/premessa documentation built on Sept. 16, 2022, 3:06 p.m.