GetChannels: GetChannels

View source: R/0_FlowSOM.R

GetChannelsR Documentation

GetChannels

Description

Get channel names for an array of markers, given a flowFrame or a FlowSOM object. As available in "name". grep is used to look for the markers. Other regex can be added.

Usage

GetChannels(object, markers, exact = TRUE)

Arguments

object

The flowFrame or the FlowSOM object of interest

markers

Vector with markers or channels of interest. Also accepts the index of the marker found in the object.

exact

If TRUE (default), the grep pattern will be extended to start with ^\\Q and end with \\E$, so only exact matches are possible.

Value

Corresponding channel names

See Also

GetMarkers

Examples


   # Read the flowFrame
   fileName <- system.file("extdata", "68983.fcs", package = "FlowSOM")
   ff <- flowCore::read.FCS(fileName)
   GetChannels(ff, c("FSC-A", "CD3", "FITC-A"))
   GetMarkers(ff, c("FSC-A", "CD3", "FITC-A"))


SofieVG/FlowSOM documentation built on Feb. 1, 2024, 11:33 a.m.