300a2111 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/clustering.R
\name{igraphClustering}
\alias{igraphClustering}
|
233354bd |
\title{igraphClustering}
|
300a2111 |
\usage{
igraphClustering(
sce,
metadata = "SNF_W",
|
62c6f300 |
method = c("louvain", "leiden", "walktrap", "spinglass", "optimal", "leading_eigen",
|
300a2111 |
"label_prop", "fast_greedy", "edge_betweenness"),
...
)
}
\arguments{
\item{sce}{A singlecellexperiment object}
|
c3e74dcc |
\item{metadata}{indicates the meta data name of affinity matrix
to virsualise}
|
300a2111 |
|
7fe9b86b |
\item{method}{A character indicates the method for finding communities
from igraph. Default is louvain clustering.}
|
300a2111 |
\item{...}{Other inputs for the igraph functions}
}
|
233354bd |
\value{
A vector indicates the membership (clustering) results
}
|
300a2111 |
\description{
A function to perform igraph clustering
}
|
c3e74dcc |
\examples{
|
d26d5e3f |
data(sce_control_subset, package = "CiteFuse")
|
7d0ee522 |
sce_control_subset <- CiteFuse(sce_control_subset)
|
c3e74dcc |
SNF_W_louvain <- igraphClustering(sce_control_subset,
method = "louvain")
}
|