tuneParameters {easybio} | R Documentation |
Optimize Resolution and Gene Number Parameters for Cell Type Annotation
Description
This function tunes the resolution
parameter in Seurat::FindClusters()
and the number of top differential genes (N
) to obtain different cell type annotation results. The function generates UMAP plots for each parameter combination, allowing for a comparison of how different settings affect the clustering and annotation.
Usage
tuneParameters(srt, resolution = numeric(), N = integer(), spc)
Arguments
srt |
Seurat object, the input data object to be analyzed. |
resolution |
numeric vector, a vector of resolution values to be tested in |
N |
integer vector, a vector of values indicating the number of top differential genes to be used for matching in |
spc |
character, the species parameter for the |
Value
A list of ggplot2 objects, each representing a UMAP plot generated with a different combination of resolution and N parameters.