Skip to contents

Turns the algorithm argument of clusterGeneSets() – a registered name, a gsClusterMethod, or a bare function – into a gsClusterMethod.

Usage

getClusterMethod(algorithm)

Arguments

algorithm

A registered method name, a gsClusterMethod, or a function following the cluster-method contract (see clusterMethod()).

Value

A gsClusterMethod.

Examples

getClusterMethod("louvain")
#> <gsClusterMethod> louvain
#>   Seurat::FindClusters, original Louvain (algorithm 1)
#>   requires: Seurat