updateChannels {flowWorkspace} | R Documentation

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

### Description

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

### Usage

    updateChannels(gs, map, all = TRUE)

### 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

    ## Not run:
      ##this will update both "Qdot 655-A" and "<Qdot 655-A>"
     gs <- updateChannels(gs, map = data.frame(old = c("Qdot 655-A")
                                             , new = c("QDot 655-A")
                                             )
                         )

    ## End(Not run)

[Package flowWorkspace version 3.30.2 Index]