igraphClustering: igraphClustering

Description Usage Arguments Value Examples

View source: R/clustering.R

Description

A function to perform igraph clustering

Usage

1
2
3
4
5
6
7
igraphClustering(
  sce,
  metadata = "SNF_W",
  method = c("louvain", "walktrap", "spinglass", "optimal", "leading_eigen",
    "label_prop", "fast_greedy", "edge_betweenness"),
  ...
)

Arguments

sce

A singlecellexperiment object

metadata

indicates the meta data name of affinity matrix to virsualise

method

A character indicates the method for finding communities from igraph. Default is louvain clustering.

...

Other inputs for the igraph functions

Value

A vector indicates the membership (clustering) results

Examples

1
2
3
4
data(sce_control_subset, package = "CiteFuse")
sce_control_subset <- CiteFuse(sce_control_subset)
SNF_W_louvain <- igraphClustering(sce_control_subset,
method = "louvain")

CiteFuse documentation built on April 14, 2021, 6 p.m.