Documentation Index
Fetch the complete documentation index at: https://mintlify.com/satijalab/seurat-wrappers/llms.txt
Use this file to discover all available pages before exploring further.
RunGLMPCA() runs GLM-PCA on the raw count data in a Seurat object, avoiding the statistical artifacts introduced by normalizing sparse count matrices before PCA.
Syntax
Parameters
A Seurat object. Must have counts in the
counts slot.Number of dimensions (latent factors) to return.
Assay to use. Defaults to the active default assay.
Features to use for GLM-PCA. Defaults to variable features set on the object.
Name for the resulting DimReduc object.
Prefix for the column names of the GLM-PCA embedding.
Print progress messages.
Additional parameters passed to
glmpca::glmpca().Returns
A Seurat object with a new DimReduc object stored underreduction.name containing:
- Cell embeddings (factors)
- Feature loadings
- Standard deviations (L2 norms of factors)
glmpca result metadata (excluding factors/loadings) is stored in the DimReduc misc slot.
Examples
Do not call
NormalizeData() or use normalized data before RunGLMPCA(). The function reads from the counts slot and performs its own statistical normalization internally.