fg_feat_cumsum {flowGraph} | R Documentation

## Converts cell counts into cumulated cell counts.

### Description

Converts the cell counts in a flowGraph object into cumulated cell counts; this is optional and can be done only for there is more than one threshold for one or more markers. This should also only be ran when initializing a flowGraph object as converting back and forth is computationally expensive. If the user is interested in seeing non- and cumulated counts, we recommend keeping two flowGraph objects, one for each version. This function simply converts e.g. the count of A+ or A++ into the sum of count of A+, A++, and A+++ or A++, and A+++.

### Usage

    fg_feat_cumsum(fg, no_cores)

### Arguments

`fg` | flowGraph object.
`no_cores` | An integer indicating how many cores to parallelize on.

### Details

`fg_feat_cumsum` returns the given flowGraph object with an adjusted count feature. As in our example,

### Value

flowGraph object with cumulated counts.

### See Also

`flowGraph-class` `Matrix`

### Examples

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

     fg <- flowGraph:::fg_feat_cumsum(fg, no_cores=no_cores)

[Package flowGraph version 1.2.0 Index]