cyto_channels: Extract channel names

Description Usage Arguments Value Author(s) See Also Examples

View source: R/cyto_channels-helpers.R

Description

Simply a wrapper around colnames to extract the channels associated with a flowFrame, flowSet or GatingSet.

Usage

1
cyto_channels(x, select = NULL, exclude = NULL, ...)

Arguments

x

object of class flowFrame, flowSet, GatingHierarchy or GatingSet.

select

vector of channel names to select.

exclude

vector of channel names to exclude.

...

additional arguments passed to grepl for character matching. For exact character string matching to override the default which ignores character case, set fixed to TRUE.

Value

vector of channel names.

Author(s)

Dillon Hammill, Dillon.Hammill@anu.edu.au

See Also

cyto_fluor_channels

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Load in CytoExploreRData to access data
library(CytoExploreRData)

# Activation flowSet
fs <- Activation

# Activation GatingSet
gs <- GatingSet(fs)

# flowFrame
cyto_channels(fs[[1]])

# flowSet
cyto_channels(fs)

# GatingHierarchy
cyto_channels(gs[[1]])

# GatingSet - exclude FSC & SSC channels
cyto_channels(gs, exclude = c("FSC","SSC"))

DillonHammill/CytoExploreR documentation built on July 9, 2020, 1:53 a.m.