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.
tuneParameters(srt, resolution = numeric(), N = integer(), spc)
A list of ggplot2 objects, each representing a UMAP plot generated with a different combination of resolution and N parameters.
Seurat object, the input data object to be analyzed.
numeric vector, a vector of resolution values to be tested in Seurat::FindClusters()
.
integer vector, a vector of values indicating the number of top differential genes to be used for matching in matchCellMarker2()
.
character, the species parameter for the matchCellMarker2()
function, specifying the organism.