powered by
Compute NMF embeddings for single-cell dataset, and store them in the Seurat data structure. They can be used as an alternative to PCA for downstream analyses.
runNMF( obj, assay = "RNA", slot = "data", k = 10, new.reduction = "NMF", seed = 123, L1 = c(0, 0), hvg = NULL, center = FALSE, scale = FALSE )
Returns a Seurat object with a new dimensionality reduction (NMF)
A seurat object
Get data matrix from this assay
Get data matrix from this slot (=layer)
Number of components for low-dim representation
Name of new dimensionality reduction
Random seed
L1 regularization term for NMF
Which genes to use for the reduction
Whether to center the data matrix
Whether to scale the data matrix
data(sampleObj) sampleObj <- runNMF(sampleObj, k=8)
Run the code above in your browser using DataLab