Description Usage Arguments Value
View source: R/pipe-preprocess.R
If the data is passed in TPM form, the data is first transformed to logTPM. Low quality cells are then removed. They are a filtered according to a cutoff for the number of genes detected. Next, low quality genes are removed. These are filtered according to a cutoff for their avg. expression values across all cells. Finally, the data is centered such that the average expression of each gene across all cells is 0. Note: The standard deviation is left as is – rather than being normalised to equal 1 – since s.d. values are very skewed due to how sparse the scRNA data is (many 0s).
1 2 3 | preprocess(mat, pipeName = "preprocess", cachePath = ".",
logTransform = TRUE, complexity.cutoff = 3000, genes.cutoff = 4,
centering = TRUE)
|
mat |
matrix of vars. by. obs. (in TPM or logTPM). |
pipeName |
a job ID, a name for the project/pipeline. Defaults to function name. |
cachePath |
passed to |
logTransform |
if TRUE, apply |
complexity.cutoff |
if a numeric value, apply |
genes.cutoff |
if a numeric value, apply |
centering |
if TRUE, apply |
if all steps are run, return a centered, log-transformed matrix consisting of only high-quality – user-defined – cells and genes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.