fortify_fs: Fortify a model into flowSet object

Description Usage Arguments Value Examples

View source: R/fortify_fs.R

Description

The method provides a universe interface to convert a generic R object into a flowSet useful for ggcyto

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
fortify_fs(model, data, ...)

## S3 method for class 'flowSet'
fortify_fs(model, data, ...)

## Default S3 method:
fortify_fs(model, data, ...)

## S3 method for class 'flowFrame'
fortify_fs(model, data, ...)

## S3 method for class 'GatingSetList'
fortify_fs(model, data, ...)

## S3 method for class 'GatingSet'
fortify_fs(model, data, ...)

Arguments

model

flow object(flowFrame or GatingSet) to be converted to flowSet. when it is a GatingSet, it must contain the subset information stored as 'subset' attribute.

data

original dataset, if needed

...

other arguments passed to methods

Value

a flowSet/ncdfFlowSet object

Examples

1
2
3
4
5
6
7
8
data(GvHD)
fr <- GvHD[[1]]
fortify_fs(fr)

dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))
attr(gs, "subset") <- "CD4"
fortify_fs(gs)

ggcyto documentation built on Nov. 8, 2020, 5:30 p.m.