cyto_markers_extract: Extract marker names for certain channels

Description Usage Arguments Value Author(s) Examples

View source: R/cyto_channels-helpers.R

Description

cyto_markers_extract will check whether the supplied channels or marker names are valid for the flowFrame, flowSet, GatingHierarchy or GatingSet and return a vector of marker names. The name of the channel will be returned if there is no associated marker found.

Usage

1

Arguments

x

an object of class flowFrame, flowSet, GatingHierarchy or GatingSet.

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 channels are supplied.

Value

A vector of marker names.

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(CytoExploreRData)

# Load in samples
fs <- Activation

# Add samples to GatingSet
gs <- GatingSet(fs)

# Extract markers used for PE-A and Alexa Fluor 488-A
cyto_markers_extract(gs, c("Alexa Fluor 488-A","PE-A"))

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