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.
ALRAChooseKPlot() produces three diagnostic plots used to select the rank k for ALRA imputation. It requires RunALRA() to have been called first with k.only = TRUE to compute the singular value decomposition and store it in the object’s tool slot.
Syntax
Parameters
A Seurat object on which
RunALRA(object, k.only = TRUE) has been run. The function reads singular values, spacings, and p-values from Tool(object, slot = 'RunALRA').Starting index for the singular value spacing and p-value plots. Defaults to
floor(k / 2) where k is the automatically selected rank. Use a smaller value to see more of the spectrum.If
TRUE, combines all three plots into a single figure using CombinePlots(). If FALSE, returns a named list of three separate ggplot objects: spectrum, spacings, and pvals.Returns
Whencombine = TRUE (default): a combined ggplot object showing all three panels side by side.
When combine = FALSE: a named list with three ggplot objects:
spectrum— singular values s_i vs index, with a vertical line at the selected kspacings— consecutive differences s_i - s_, with a vertical line at k+1pvals— p-values for each spacing, with a vertical line at k+1
Examples
See Also
RunALRA()— Run ALRA imputation- ALRA method guide