R/cyto_stats_compute-methods.R
cyto_stats_compute-flowFrame-method.Rd
Calculate and export flow cytometry statistics for a flowFrame.
# S4 method for flowFrame cyto_stats_compute(x, channels = NULL, trans = NULL, stat = "median", density_smooth = 1.5)
x | object of class |
---|---|
channels | names of of channels for which statistic should be calculated, set to all channels by default. |
trans | object of class
|
stat | name of the statistic to calculate, options include
|
density_smooth | smoothing parameter passed to
|
library(CytoRSuiteData) # Load in samples fs <- Activation # Apply compensation fs <- compensate(fs, fs[[1]]@description$SPILL) # Transform fluorescent channels trans <- estimateLogicle(fs[[4]], cyto_fluor_channels(fs)) fs <- transform(fs, trans) # Compute statistics cyto_stats_compute(fs[[4]], channels = c("Alexa Fluor 647-A", "7-AAD-A"), trans = trans, stat = "median" )#> Alexa Fluor 647-A 7-AAD-A #> Activation4.fcs 1635.418 405.3736#> count #> Activation1.fcs 50000