paramSweep | R Documentation |
Performs pN-pK parameter sweeps on a 10,000-cell subset of a pre-processed Seurat object. Will use all cells if Seurat object contains less than 10,000 cells. Results are fed into 'summarizeSweep' and 'find.pK' functions during optimal pK parameter selection workflow. Parameters tested: pN = 0.05-0.3, pK = 0.0005-0.3.
sweep.list <- paramSweep(seu, PCs, sct=FALSE)
seu |
A fully-processed Seurat object (i.e., After NormalizeData, FindVariableGenes, ScaleData, RunPCA, and RunTSNE have all been performed). |
PCs |
Number of statistically-significant principal components (e.g., as estimated from PC elbow plot) |
sct |
Logical representing whether SCTransform was used during original Seurat object pre-processing (default = FALSE). |
num.cores |
Number of cores to use for parallelization, default=1. |
List of pANN vectors for every pN and pK combination. Output also contains pANN information for artificial doublets.
sweep.list <- paramSweep(seu, PCs = 1:10, sct=FALSE)
sweep.stats <- summarizeSweep(sweep.list, GT = FALSE)
bcmvn <- find.pK(sweep.stats)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.