fortify_fs {ggcyto} | R Documentation

## Fortify a model into flowSet object

### Description

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

### Usage

    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

    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)

[Package ggcyto version 1.15.2 Index]