scran
C++ library for basic single-cell RNA-seq analyses
|
Walktrap clustering on a shared nearest-neighbor graph. More...
#include <ClusterSnnGraph.hpp>
Classes | |
struct | Defaults |
Default parameter settings. More... | |
struct | Results |
Result of the igraph Walktrap community detection algorithm. More... | |
Public Member Functions | |
ClusterSnnGraphWalktrap & | set_steps (int s=Defaults::steps) |
Results | run (const BuildSnnGraph::Results &store) const |
Results | run (const igraph::Graph &graph, const igraph_real_t *weights) const |
Walktrap clustering on a shared nearest-neighbor graph.
This applies Walktrap clustering on a shared nearest neighbor graph. See here for more details on the Walktrap algorithm.
|
inline |
s | Number of steps of the random walk. |
ClusterSnnGraphWalktrap
object.
|
inline |
Run the Walktrap community detection algorithm on a shared nearest-neighbor graph constructed from knncolle::Base
object.
store | SNN graph built by BuildSnnGraph::run() . |
Results
object containing the clustering results for all cells.
|
inline |
Run the Walktrap community detection algorithm on a pre-constructed shared nearest-neighbor graph as a Graph
object.
graph | An existing igraph::Graph object, typically built by BuildSnnGraph::Results::to_igraph() . |
weights | Pointer to an array of weights of length equal to the number of edges in graph . |
Results
object containing the clustering results for all cells.