ReadInputfrkn: Read fcs-files, flowframes, data tables or data frames

Description Usage Arguments Details Value See Also Examples

Description

modified readinput function from flowSOM for cases where data is not in fcs format but a data.table/frame

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
ReadInputfrkn(
  input,
  pattern = ".fcs",
  compensate = FALSE,
  spillover = NULL,
  transform = FALSE,
  toTransform = NULL,
  transformFunction = flowCore::logicleTransform(),
  scale = FALSE,
  scaled.center = TRUE,
  scaled.scale = TRUE,
  silent = FALSE
)

Arguments

input

a flowFrame, a flowSet or an array of paths to files or directories or a data table or data frame

pattern

if input is an array of file- or directorynames, select only files containing pattern

compensate

logical, does the data need to be compensated

spillover

spillover matrix to compensate with If NULL and compensate=TRUE, we will look for $SPILL description in fcs file.

transform

logical, does the data need to be transformed

toTransform

column names or indices that need to be transformed. If NULL and transform=TRUE, column names of $SPILL description in fcs file will be used.

transformFunction

Defaults to logicleTransform()

scale

logical, does the data needs to be rescaled

scaled.center

see scale

scaled.scale

see scale

silent

if TRUE, no progress updates will be printed

Details

Take some input and return flowSOM object containing a matrix with the preprocessed data (compensated, transformed, scaled)

Value

flowSOM object containing the data, which can be used as input for the BuildSOM function

See Also

scale,BuildSOM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Read from file
fileName <- system.file("extdata", "68983.fcs", package="flowSOM")
flowSOM.res <- ReadInputfrkn(fileName, compensate=TRUE,transform=TRUE,
                         scale=TRUE)

# Or read from flowFrame object
ff <- flowCore::read.FCS(fileName)
ff <- flowCore::compensate(ff,ff@description$SPILL)
ff <- flowCore::transform(ff,
                 flowCore::transformList(colnames(ff@description$SPILL),
                                 flowCore::logicleTransform()))
flowSOM.res <- ReadInput(ff,scale=TRUE)

ldvroditi/Franken documentation built on April 18, 2021, 4:54 p.m.