View source: R/Seurat-function.R
| RunGLMPCA | R Documentation | 
Run GLMPCA (generalized version of principal components analysis)
RunGLMPCA(object, ...)
## S3 method for class 'Seurat'
RunGLMPCA(
  object,
  assay = NULL,
  slot = "counts",
  features = NULL,
  L = 5,
  fam = c("poi", "nb", "nb2", "binom", "mult", "bern"),
  rev.gmlpca = FALSE,
  ndims.print = 1:5,
  nfeatures.print = 30,
  reduction.name = "glmpca",
  reduction.key = "GLMPC_",
  verbose = TRUE,
  seed.use = 11,
  ...
)
## S3 method for class 'Assay'
RunGLMPCA(
  object,
  assay = NULL,
  slot = "counts",
  features = NULL,
  L = 5,
  fam = c("poi", "nb", "nb2", "binom", "mult", "bern"),
  rev.gmlpca = FALSE,
  ndims.print = 1:5,
  nfeatures.print = 30,
  reduction.key = "GLMPC_",
  verbose = TRUE,
  seed.use = 11,
  ...
)
## Default S3 method:
RunGLMPCA(
  object,
  assay = NULL,
  slot = "counts",
  features = NULL,
  L = 5,
  fam = c("poi", "nb", "nb2", "binom", "mult", "bern"),
  rev.gmlpca = FALSE,
  ndims.print = 1:5,
  nfeatures.print = 30,
  reduction.key = "GLMPC_",
  verbose = TRUE,
  seed.use = 11,
  ...
)
| object | An object. This can be a Seurat object, an assay object, or a matrix-like object. | 
| ... | Additional arguments to be passed to the glmpca function. | 
| assay | A character string specifying the assay to be used for the analysis. Default is NULL. | 
| slot | A character string specifying the slot name to be used for the analysis. Default is "counts". | 
| features | A character vector specifying the features to be used for the analysis. Default is NULL, which uses all variable features. | 
| L | An integer specifying the number of components to be computed. Default is 5. | 
| fam | A character string specifying the family of the generalized linear model to be used. Currently supported values are "poi", "nb", "nb2", "binom", "mult", and "bern". Default is "poi". | 
| rev.gmlpca | A logical value indicating whether to perform reverse GLMPCA (i.e., transpose the input matrix) before running the analysis. Default is FALSE. | 
| ndims.print | An integer vector specifying the dimensions (number of components) to print in the output. Default is 1:5. | 
| nfeatures.print | An integer specifying the number of features to print in the output. Default is 30. | 
| reduction.name | A character string specifying the name of the reduction to be stored in the Seurat object. Default is "glmpca". | 
| reduction.key | A character string specifying the prefix for the column names of the basis vectors. Default is "GLMPC_". | 
| verbose | A logical value indicating whether to print verbose output. Default is TRUE. | 
| seed.use | An integer specifying the random seed to be used. Default is 11. | 
pancreas_sub <- RunGLMPCA(object = pancreas_sub)
CellDimPlot(pancreas_sub, group.by = "CellType", reduction = "glmpca")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.