cyto_select: Select samples based on experiment variables

View source: R/cyto-helpers.R

cyto_selectR Documentation

Select samples based on experiment variables

Description

Select samples based on experiment variables

Usage

cyto_select(x, ...)

Arguments

x

object of class flowSet or GatingSet.

...

named list containing experimental variables to be used to select samples or named arguments containing the levels of the variables to select. See below examples for use cases. Selected samples can be excluded by setting exclude to TRUE.

Value

flowSet or GatingSet restricted to samples which meet the designated selection criteria.

Author(s)

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

Examples


# Load in CytoExploreRData to access data
library(CytoExploreRData)

# Look at experiment details
cyto_details(Activation)

# Select Stim-C samples with 0 and 500 nM OVA concentrations
fs <- cyto_select(Activation,
  Treatment = "Stim-C",
  OVAConc = c(0, 500)
)

# Select Stim-A and Stim-C treatment groups
fs <- cyto_select(
  Activation,
  list("Treatment" = c("Stim-A", "Stim-C"))
)

# Exclude Stim-D treatment group
fs <- cyto_select(Activation,
  Treatment = "Stim-D",
  exclude = TRUE
)

DillonHammill/CytoExploreR documentation built on March 2, 2023, 7:34 a.m.