Description Usage Arguments Details Value Functions Author(s) See Also Examples
View source: R/Fluidigm-methods.R
Remove, or flag wells that are outliers in discrete or continuous space.
1 2 3 | mast_filter(sc, groups = NULL, filt_control = NULL, apply_filter = TRUE)
burdenOfFiltering(sc, groups, byGroup = FALSE, filt_control = NULL)
|
sc |
The |
groups |
An optional |
filt_control |
The |
apply_filter |
|
byGroup |
in the case of |
The function filters wells that don't pass filtering criteria described in filt_control.
filt_control is a list with named elements nOutlier
(minimum nmber of outlier cells for a cell to be filtered [default = 2]
sigmaContinuous
(the z-score outlier threshold for the continuous part of the signal) [default = 7]
and sigmaProportion
(the z-score outlier threshold for the discrete part of the signal) [default = 7].
If groups
is provided, the filtering is calculated within each level of the group, then combined again as output.
A filtered result
burdenOfFiltering
: plot the proportions of wells are filtered due to different criteria
Andrew McDavid
burdenOfFiltering
1 2 3 4 5 6 7 8 9 | data(vbetaFA)
## Split by 'ncells', apply to each component, then recombine
vbeta.filtered <- mast_filter(vbetaFA, groups='ncells')
## Returned as boolean matrix
was.filtered <- mast_filter(vbetaFA, apply_filter=FALSE)
## Wells filtered for being discrete outliers
head(subset(was.filtered, pctout))
burdenOfFiltering(vbetaFA, groups='ncells', byGroup=TRUE)
burdenOfFiltering(vbetaFA, groups='ncells')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.