build_flowset_from_df: Build a flowSet from a data.frame

Description Usage Arguments Value Examples

View source: R/flowR.R

Description

Build a flowSet from a data.frame

Usage

1
2
3
4
5
6
build_flowset_from_df(
  df,
  origin = NULL,
  chanel_col = setdiff(names(df), c("name", "subset")),
  sample_col = "name"
)

Arguments

df

data.frame with a column sample_col containing sample names and columns with flow variables.

origin

flowSet from which to retrieve flowFrames description and parameters slots. Ignored if NULL.

chanel_col

Names of df's columns to be used as flow variables

sample_col

Name of df's column containing sample names

Value

a flowSet

Examples

1
2
3
4
5
6
7
8
## Not run: 
utils::data("GvHD", package = "flowCore")
gs <- GatingSet(GvHD)
samples <- flowWorkspace::sampleNames(gs)[1:3]
df <- get_data_gs(gs = gs, sample = samples, subset = "root", Ncells = 1000)
fs <- build_flowset_from_df(df = df, origin = gs@data)
pData(fs)
## End(Not run)

VoisinneG/flowR documentation built on June 1, 2021, 6:42 p.m.