scran_graph_cluster
Graph-based clustering of cells
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Enumerations | Functions
build_snn_graph.hpp File Reference

Build a shared nearest-neighbor graph on the cells. More...

#include <vector>
#include <algorithm>
#include <memory>
#include "knncolle/knncolle.hpp"
Include dependency graph for build_snn_graph.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  scran_graph_cluster::BuildSnnGraphOptions
 Options for SNN graph construction. More...
 
struct  scran_graph_cluster::BuildSnnGraphResults< Node_, Weight_ >
 Results of SNN graph construction. More...
 

Namespaces

namespace  scran_graph_cluster
 Graph-based clustering of single-cell data.
 

Typedefs

typedef int scran_graph_cluster::DefaultNode
 
typedef double scran_graph_cluster::DefaultWeight
 

Enumerations

enum class  scran_graph_cluster::SnnWeightScheme : char { RANKED , NUMBER , JACCARD }
 

Functions

template<typename Node_ = DefaultNode, typename Weight_ = DefaultWeight, class GetNeighbors_ , class GetIndex_ >
void scran_graph_cluster::build_snn_graph (size_t num_cells, GetNeighbors_ get_neighbors, GetIndex_ get_index, const BuildSnnGraphOptions &options, BuildSnnGraphResults< Node_, Weight_ > &output)
 
template<typename Node_ = DefaultNode, typename Weight_ = DefaultWeight, typename Index_ , typename Distance_ >
BuildSnnGraphResults< Node_, Weight_ > scran_graph_cluster::build_snn_graph (const knncolle::NeighborList< Index_, Distance_ > &neighbors, const BuildSnnGraphOptions &options)
 
template<typename Node_ = int, typename Weight_ = double, typename Index_ >
BuildSnnGraphResults< Node_, Weight_ > scran_graph_cluster::build_snn_graph (const std::vector< std::vector< Index_ > > &neighbors, const BuildSnnGraphOptions &options)
 
template<typename Node_ = DefaultNode, typename Weight_ = DefaultWeight, typename Dim_ , typename Index_ , typename Float_ >
BuildSnnGraphResults< Node_, Weight_ > scran_graph_cluster::build_snn_graph (const knncolle::Prebuilt< Dim_, Index_, Float_ > &prebuilt, const BuildSnnGraphOptions &options)
 
template<typename Node_ = DefaultNode, typename Weight_ = DefaultWeight, typename Dim_ , typename Index_ , typename Value_ , typename Float_ >
BuildSnnGraphResults< Node_, Weight_ > scran_graph_cluster::build_snn_graph (Dim_ num_dims, Index_ num_cells, const Value_ *data, const knncolle::Builder< knncolle::SimpleMatrix< Dim_, Index_, Value_ >, Float_ > &knn_method, const BuildSnnGraphOptions &options)
 

Detailed Description

Build a shared nearest-neighbor graph on the cells.