View source: R/cluster_fcbFlowFrame.R
cluster_fcbFlowFrame | R Documentation |
This function allows you to calculate the probability of a cell originating from a given population using either gaussian mixture modeling or jenks natural breaks classification
cluster_fcbFlowFrame( fcbFlowFrame, channel, levels, opt = "mixture", dist = NULL, subsample = 3000, trim = 0, ret.model = TRUE, updateProgress = NULL )
fcbFlowFrame |
a fcbFlowFrame object with barcoded flowframe and uptake flowframe post deskewing (at least one barcodes slot filled) |
channel |
The name (string) of the channel to be clustered |
levels |
integer, the number of barcoding intensities present in the vector |
opt |
string, either "mixture" (default) for gaussian mixture modeling, or "fisher" for fisher-jenks natural breaks optimization |
dist |
string in c("Normal, Skew.normal, Tdist"), passed to mixsmsn |
subsample |
Integer, number of cells to subsample, defaults to 10,000 |
trim |
numberic between 0, 1; used to trim the upper and lower extremes to exlcude outliers (eg. trim = 0.01 exludes most extreme 1% of data) |
ret.model |
Option to retain the model for deskewing |
updateProgress |
used in reactive context (shiny) to return progress information to GUI |
a fcbFlowFrame with deskewed barcodes slot and clustering slot with a matrix of probabilities, with ncol = levels, and nrow = legnth(vec). If gaussian mixture modeling is used the probailities correspond to the probability of the cell originaiting that level under the distrubtion specified by the mixture model If jenks natural breaks optimization is used, the probability is estimated empirically based on a histogram
deskew_fcbFlowFrame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.