scran_aggregate
Aggregate expression values across cells
Loading...
Searching...
No Matches
scran_aggregate::AggregateAcrossCellsBuffers< Sum_, Detected_, Float_ > Struct Template Reference

Buffers for aggregate_across_cells(). More...

#include <aggregate_across_cells.hpp>

Public Attributes

std::vector< Sum_ * > sums
 
std::vector< Detected_ * > detected
 
std::vector< Float_ * > medians
 

Detailed Description

template<typename Sum_, typename Detected_, typename Float_>
struct scran_aggregate::AggregateAcrossCellsBuffers< Sum_, Detected_, Float_ >

Buffers for aggregate_across_cells().

Template Parameters
Sum_Numeric type of the sum, typically floating-point. If integer, this should be large enough to avoid integer overflow.
Detected_Type of the number of detected cells, usually integer. This should be large enough to avoid integer overflow.
Float_Floating-point type to be used for other statistics, e.g., median.

Member Data Documentation

◆ sums

template<typename Sum_ , typename Detected_ , typename Float_ >
std::vector<Sum_*> scran_aggregate::AggregateAcrossCellsBuffers< Sum_, Detected_, Float_ >::sums

Vector of length equal to the number of groups. Each element is a pointer to an array of length equal to the number of genes, to be filled with the summed expression across all cells in the corresponding group for each gene.

If this is empty, the sums for each group are not computed.

◆ detected

template<typename Sum_ , typename Detected_ , typename Float_ >
std::vector<Detected_*> scran_aggregate::AggregateAcrossCellsBuffers< Sum_, Detected_, Float_ >::detected

Vector of length equal to the number of groups. Each element is a pointer to an array of length equal to the number of genes, to be filled with the number of cells in the corresponding group with detected expression for each gene.

If this is empty, the number of detected cells for each group is not computed.

◆ medians

template<typename Sum_ , typename Detected_ , typename Float_ >
std::vector<Float_*> scran_aggregate::AggregateAcrossCellsBuffers< Sum_, Detected_, Float_ >::medians

Vector of length equal to the number of groups. Each element is a pointer to an array of length equal to the number of genes, to be filled with the median expression across all cells in the corresponding group for each gene.

If this is empty, the median for each group is not computed.


The documentation for this struct was generated from the following file: