SSNResolution.Rd
Identify optimal cluster resolution of scale-free shared nearest neighbor network (SNN)
SSNResolution(
object,
graph,
target.purity = 0.7,
start.res = 0.5,
step.size = 0.05,
target.level = "global",
max.iter = 100,
verbose = F
)
Seurat object
name of SNN graph in `object`.
Target purity to find resolution for.
Initial resolution to begin optimization with. Default is 0.5.
Step size between consecutive resolutions to test. Default is 0.05.
Specify whether `target.purity` is achieved at "global" level [i.e., median(purity)] or at "cluster" level. Default is "global".
Maximum number of iterations. If `max.iter` is reached, non-optimal resolution may be returned.
Show progress. Default is T.
optimal cluster resolution