View source: R/morphology_corr_earth.R
morphology_corr.earth | R Documentation |
Corrects morphology using multivariate adaptive regression splines as implemented in the earth pacakge
morphology_corr.earth( fcb, uptake, ret.model = FALSE, what = c("x", "x + se"), nfold = 1, ncross = 0, channel, predictors = c("FSC-A", "SSC-A"), subsample = 30000, updateProgress = NULL, ... )
fcb |
the barcoded dataframe, post compensation and preprocessing |
uptake |
Optional: a dataframe consisting of all cells barcoded with a single level of the barcoding dye |
channel |
The name (string) of the channel to be corrected, ie. the column name in 'fcb_df' |
predictors |
The vector of channel names to be used to build the regression model |
subsample |
Integer, number of cells to sample (with replacement) for the morphology correction, defaults to 10,000. |
updateProgress |
used in reactive context (shiny) to return progress information to GUI#' |
a tibble/data.frame with the selected channel corrected for fsc and ssc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.