compile_fcs: Compile all .fcs files in a directory to a flowset

View source: R/01_prepare_data.R

compile_fcsR Documentation

Compile all .fcs files in a directory to a flowset

Description

A simple function to compile a directory of FCS files into a flowSet object using flowCore::read.flowSet(). Use the pattern argument to select only a subset of FCS files.

Usage

compile_fcs(
  data_dir,
  pattern = "\\.fcs",
  column.pattern = NULL,
  invert.pattern = FALSE
)

Arguments

data_dir

Directory containing the .fcs files

pattern

The pattern to use to find the files in the folder

column.pattern

An optional regular expression defining parameters we should keep when loading the file. The default is NULL.

invert.pattern

logical. By default, FALSE. If TRUE, inverts the regular expression specified in column.pattern. This is useful for indicating the channel names that we do not want to read. If column.pattern is set to NULL, this argument is ignored.

See Also

Other dataprep: convert_flowset(), prepare_data(), transform_asinh()

Examples

## Not run: 
fcs <- compile_fcs(data_dir = "_data/raw", pattern = "\\.fcs")

## End(Not run)

biosurf/cyCombine documentation built on May 23, 2024, 4:07 a.m.