cyto_channels: Extract channel names

View source: R/cyto_channels-helpers.R

cyto_channelsR Documentation

Extract channel names

Description

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

Usage

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


# 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 March 2, 2023, 7:34 a.m.