scran
C++ library for basic single-cell RNA-seq analyses
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
blocking.hpp File Reference

Utilities for handling blocks of cells. More...

#include "macros.hpp"
#include <vector>
#include <algorithm>
#include <stdexcept>
Include dependency graph for blocking.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  scran::VariableBlockWeightParameters
 Parameters for variable_block_weight(). More...
 

Namespaces

namespace  scran
 Functions for single-cell RNA-seq analyses.
 

Enumerations

enum class  scran::WeightPolicy : char { NONE , VARIABLE , EQUAL }
 

Functions

template<typename Id_ >
size_t scran::count_ids (size_t length, const Id_ *ids)
 
template<typename Output_ = int, bool allow_zeros_ = false, typename Id_ >
std::vector< Output_ > scran::tabulate_ids (size_t length, const Id_ *ids, bool allow_zeros=false)
 
double scran::variable_block_weight (double s, const VariableBlockWeightParameters &params)
 
template<typename Size_ >
std::vector< double > scran::compute_block_weights (const std::vector< Size_ > &sizes, WeightPolicy policy, const VariableBlockWeightParameters &param)
 

Detailed Description

Utilities for handling blocks of cells.