R/utilities.R
setThreads.RdSet the number of threads to use for parallel processing in Seurat
setThreads(n = NULL, verbose = TRUE)The default is one thread. Calling setThreads() without
specifying n selects half the available cores. This setting
applies to supported C++ kernels in NormalizeData,
FindVariableFeatures, ScaleData, SCTransform,
RunPCA, FindNeighbors, FindClusters, and
CCA/RPCA integration. RunUMAP also passes this setting to the
uwot backend. Support depends on the input type, backend, and arguments;
not every stage of these functions can be run in parallel.
Note that this thread setting is separate from plan.