fg_extract_phenotypes {flowGraph} | R Documentation

## Extracts a set of phenotypes from a flowGraph object.

### Description

Extracts or removes a specified set of phenotypes from a flowGraph object.

### Usage

    fg_extract_phenotypes(fg, phenotypes)

### Arguments

`fg` | flowGraph object.
`phenotypes` | A string vector of phenotype or cell population name labels.

### Details

The `summary` in `fg` will not be modified; we recommend users recalculate them.

### Value

flowGraph object.

### See Also

`flowGraph-class` `fg_get_feature_desc` `fg_merge` `fg_extract_samples` `fg_merge_samples`

### Examples

     no_cores <- 1
     data(fg_data_pos30)
     fg0 <- flowGraph(fg_data_pos30$count, class=fg_data_pos30$meta$class,
                     prop=FALSE, specenr=FALSE,
                     no_cores=no_cores)
     fg_get_feature_desc(fg0)

     fg <- fg_extract_phenotypes(fg0, fg_get_graph(fg0)$v$phenotype[1:10])
     fg_get_feature_desc(fg)

[Package flowGraph version 1.2.0 Index]