R/cyto_channels-helpers.R
cyto_channels_extract.Rd
cyto_channels_extract
will check whether the supplied channels or
marker names are valid for the
flowFrame
,
flowSet
,
GatingHierarchy
or
GatingSet
and return a vector of
valid channel names. cyto_channels_extract
is particularly useful for
determining which channel(s) are associated with particular marker(s).
cyto_channels_extract(x, channels, plot = FALSE)
x | an object of class
|
---|---|
channels | vector of channel and/or marker names (e.g. c("Alexa Fluor 700-A","CD8")). |
plot | logical indicating whether the channels will be used to construct
a plot, set to FALSE by default. If set to TRUE an additional check will be
performed to ensure that only 1 or 2 |
A vector of valid channel names.
Dillon Hammill, Dillon.Hammill@anu.edu.au
library(CytoExploreRData) # Load in samples fs <- Activation # Add samples to GatingSet gs <- GatingSet(fs) # Extract channels used for CD4 & CD8 cyto_channels_extract(gs, c("CD4", "CD8"))#> [1] "Alexa Fluor 700-A" "Alexa Fluor 488-A"