cyto_group_by: Group a flowSet or GatingSet by experiment variables

View source: R/cyto-helpers.R

cyto_group_byR Documentation

Group a flowSet or GatingSet by experiment variables

Description

Group a flowSet or GatingSet by experiment variables

Usage

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


# 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 March 2, 2023, 7:34 a.m.