runScranSNN | R Documentation |
Perform SNN graph clustering on a
SingleCellExperiment object, with graph
construction by buildSNNGraph
and graph clustering by
"igraph" package.
runScranSNN(
inSCE,
useReducedDim = "PCA",
useAssay = NULL,
useAltExp = NULL,
altExpAssay = "counts",
altExpRedDim = NULL,
clusterName = "cluster",
k = 14,
nComp = 10,
weightType = "jaccard",
algorithm = c("louvain", "leiden", "walktrap", "infomap", "fastGreedy", "labelProp",
"leadingEigen"),
BPPARAM = BiocParallel::SerialParam(),
seed = 12345,
...
)
inSCE |
A SingleCellExperiment object. |
useReducedDim |
A single |
useAssay |
A single |
useAltExp |
A single |
altExpAssay |
A single |
altExpRedDim |
A single |
clusterName |
A single |
k |
An |
nComp |
An |
weightType |
A single |
algorithm |
A single |
BPPARAM |
A |
seed |
Random seed for reproducibility of results. Default |
... |
Other optional parameters passed to the |
Different graph based clustering algorithms have diverse sets of parameters that users can tweak. The help information can be found here:
for "louvain"
, see function help
cluster_louvain
for "leiden"
, see function help
cluster_leiden
for "walktrap"
, see function help
cluster_walktrap
for "infomap"
, see function help
cluster_infomap
for "fastGreedy"
, see function help
cluster_fast_greedy
for "labelProp"
, see function help
cluster_label_prop
for "leadingEigen"
, see function help
cluster_leading_eigen
The Scran SNN building method can work on specified nComp
components.
When users specify input matrix by useAssay
or useAltExp
+
altExpAssay
, the method will generate nComp
components and use
them all. When specifying useReducedDim
or useAltExp
+
altExpRedDim
, this function will subset the top nComp
components and pass them to the method.
The input SingleCellExperiment object with
factor
cluster labeling updated in
colData(inSCE)[[clusterName]]
.
Aaron Lun and et. al., 2016
data("mouseBrainSubsetSCE")
mouseBrainSubsetSCE <- runScranSNN(mouseBrainSubsetSCE,
useReducedDim = "PCA_logcounts")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.