Description Usage Arguments Author(s) See Also Examples
Calculate and export flow cytometry statistics for a GatingSet.
1 2 3 4 |
x |
object of class
|
alias |
name(s) of the population(s) for which the statistic should be calculated. |
parent |
name(s) of the parent population(s) used calculate population frequencies. The frequency of alias in each parent will be returned as a percentage. |
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
|
save |
logical indicating whether statistical results should be saved to a csv file. |
Dillon Hammill, Dillon.Hammill@anu.edu.au
cyto_stats_compute,flowFrame-method
cyto_stats_compute,flowSet-method
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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | library(CytoRSuiteData)
# Load in samples
fs <- Activation
gs <- GatingSet(fs)
# Apply compensation
gs <- compensate(gs, fs[[1]]@description$SPILL)
# Transform fluorescent channels
trans <- estimateLogicle(gs[[4]], cyto_fluor_channels(gs))
gs <- transform(gs, trans)
# Gate using gate_draw
gt <- Activation_gatingTemplate
gating(gt, gs)
# Compute statistics
cyto_stats_compute(gs,
alias = "T Cells",
channels = c("Alexa Fluor 488-A", "PE-A"),
stat = "median",
save = FALSE
)
cyto_stats_compute(gs,
alias = "T Cells",
stat = "geo mean",
save = FALSE
)
cyto_stats_compute(gs,
alias = c("CD4 T Cells", "CD8 T Cells"),
stat = "count",
save = FALSE
)
cyto_stats_compute(gs,
alias = c("CD4 T Cells", "CD8 T Cells"),
parent = c("Live Cells", "T Cells"),
stat = "freq",
save = FALSE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.