gs_update_channels: Update the channel information of a GatingSet (c++ part)

Description Usage Arguments Value Examples

View source: R/merge_GatingSet.R

Description

It updates the channels stored in gates,compensations and transformations based on given mapping between the old and new channel names.

Usage

1

Arguments

gs

a GatingSet object

map

data.frame contains the mapping from old (case insensitive) to new channel names Note: Make sure to remove the '<' or '>' characters from 'old' name because the API tries to only look at the raw channel name so that the gates with both prefixed and non-prefixed names could be updated.

all

logical whether to update the flow data as well

Value

when 'all' is set to TRUE, it returns a new GatingSet but it still shares the same underling c++ tree structure with the original GatingSet otherwise it returns nothing (less overhead.)

Examples

1
2
3
4
5
6
7
8
## Not run: 
  ##this will update both "Qdot 655-A" and "<Qdot 655-A>"
 gs <- gs_update_channels(gs, map = data.frame(old = c("Qdot 655-A")
                                         , new = c("QDot 655-A")
                                         )
                     )  

## End(Not run)

flowWorkspace documentation built on Nov. 8, 2020, 8:08 p.m.