cyto_group_by: Group a flowSet or GatingSet by experiment variables

Description Usage Arguments Value Author(s) Examples

View source: R/cyto-helpers.R

Description

Group a flowSet or GatingSet by experiment variables

Usage

1
cyto_group_by(x, group_by = "all")

Arguments

x

an object of class flowSet or GatingSet.

group_by

names of cyto_details variables to use for merging, set to "all" to group all samples in x. The order of the grouping can be controlled by specifying the factor levels in a list (e.g. list(Treatment = c("Stim-A","Stim-C","Stim-B", "Stim-D"))).

Value

a named list of flowSet or GatingSet objects respectively.

Author(s)

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

Examples

1
2
3
4
5
6
7
8
9
# Load in CytoExploreRData to access data
library(CytoExploreRData)

# Group flowSet by Treatment
cyto_group_by(Activation, "Treatment")

# Group GatingSet by Treatment and OVAConc
gs <- GatingSet(Activation)
cyto_group_by(gs, c("Treatment", "OVAConc"))

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