cyto_channel_check-flowFrame-method: Check Supplied Channels - flowFrame Method

Description Usage Arguments Value Author(s) Examples

Description

cyto_channel_check will check whether the supplied channels are valid for the supplied flowFrame.

Usage

1
2
## S4 method for signature 'flowFrame'
cyto_channel_check(x, channels, plot = TRUE)

Arguments

x

an object of class flowFrame.

channels

vector of channel names (e.g. c("PE-A","APC-A")) or marker names.

plot

logical indicating whether the channels will be used to construct a plot, set to TRUE by default to accept 1 or 2 channels.

Value

vector of valid channel names.

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
library(CytoRSuiteData)

# Add samples to flowSet
fs <- Activation

# Assign marker names
chnls <- c(
  "PE-A",
  "Alexa Fluor 488-A",
  "Alexa Fluor 700-A",
  "Alexa Fluor 647-A",
  "7-AAD-A"
)
markers <- c("Va2", "CD8", "CD4", "CD44", "CD69")
names(markers) <- chnls
markernames(fs) <- markers

cyto_channel_check(fs[[1]],
  channels = c("CD4", "CD8"),
  plot = TRUE
)

cyto_channel_check(fs[[1]],
  channels = c("CD4", "CD8", "CD44", "CD69"),
  plot = FALSE
)

DillonHammill/cytoSuite documentation built on March 7, 2019, 10:09 a.m.