scran
C++ library for basic single-cell RNA-seq analyses
|
Result of the igraph Walktrap community detection algorithm. More...
#include <ClusterSnnGraph.hpp>
Public Attributes | |
int | status = 0 |
std::vector< int > | membership |
std::vector< std::pair< int, int > > | merges |
std::vector< double > | modularity |
Result of the igraph Walktrap community detection algorithm.
Instances should be constructed using the ClusterSnnGraphWalktrap::run()
methods.
int scran::ClusterSnnGraphWalktrap::Results::status = 0 |
Output status. A value of zero indicates that the algorithm completed successfully.
std::vector<int> scran::ClusterSnnGraphWalktrap::Results::membership |
Vector of length equal to the number of cells, containing 0-indexed cluster identities.
std::vector<std::pair<int, int> > scran::ClusterSnnGraphWalktrap::Results::merges |
Vector of length equal to the number of merge steps, containing the identities of the two clusters being merged. Note that cluster IDs here are not the same as those in membership
.
std::vector<double> scran::ClusterSnnGraphWalktrap::Results::modularity |
Vector of length equal to merges
plus 1, containing the modularity score before and after each merge step. The maximum value is the modularity corresponding to the clustering in membership
.