scran_qc
Simple quality control on single-cell data
Loading...
Searching...
No Matches
Public Member Functions | List of all members
scran_qc::CrisprQcBlockedFilters< Float_ > Class Template Reference

Filter on using CRISPR-based QC metrics with blocking. More...

#include <crispr_quality_control.hpp>

Public Member Functions

const std::vector< Float_ > & get_max_value () const
 
std::vector< Float_ > & get_max_value ()
 
template<typename Sum_ , typename Detected_ , typename Value_ , typename Index_ , typename Block_ , typename Output_ >
void filter (size_t num, const ComputeCrisprQcMetricsBuffers< Sum_, Detected_, Value_, Index_ > &metrics, const Block_ *block, Output_ *output) const
 
template<typename Sum_ , typename Detected_ , typename Value_ , typename Index_ , typename Block_ , typename Output_ >
void filter (const ComputeCrisprQcMetricsResults< Sum_, Detected_, Value_, Index_ > &metrics, const Block_ *block, Output_ *output) const
 
template<typename Output_ = uint8_t, typename Sum_ = double, typename Detected_ = int, typename Value_ = double, typename Index_ = int, typename Block_ = int>
std::vector< Output_filter (const ComputeCrisprQcMetricsResults< Sum_, Detected_, Value_, Index_ > &metrics, const Block_ *block) const
 

Detailed Description

template<typename Float_ = double>
class scran_qc::CrisprQcBlockedFilters< Float_ >

Filter on using CRISPR-based QC metrics with blocking.

Template Parameters
Float_Floating-point type for filter thresholds. Instances of this class are typically created by compute_crispr_qc_filters_blocked().

Member Function Documentation

◆ get_max_value() [1/2]

template<typename Float_ = double>
const std::vector< Float_ > & scran_qc::CrisprQcBlockedFilters< Float_ >::get_max_value ( ) const
inline
Returns
Vector of length equal to the number of blocks, containing the lower threshold on the maximum count in each block.

◆ get_max_value() [2/2]

template<typename Float_ = double>
std::vector< Float_ > & scran_qc::CrisprQcBlockedFilters< Float_ >::get_max_value ( )
inline
Returns
Vector of length equal to the number of blocks, containing the lower threshold on the maximum count in each block.

◆ filter() [1/3]

Template Parameters
Sum_Numeric type to store the summed expression.
Detected_Integer type to store the number of cells.
Value_Type of matrix value.
Index_Type of the matrix indices.
Block_Integer type for the block assignment.
Output_Boolean type to store the high quality flags.
Parameters
numNumber of cells.
metricsA collection of arrays containing CRISPR-based QC metrics, filled by compute_crispr_qc_metrics().
[in]blockPointer to an array of length num containing block identifiers. Each identifier should correspond to the same blocks used in the constructor.
[out]outputPointer to an array of length num. On output, this is truthy for cells considered to be of high quality, and false otherwise.

◆ filter() [2/3]

Template Parameters
Sum_Numeric type to store the summed expression.
Detected_Integer type to store the number of cells.
Value_Type of matrix value.
Index_Type of the matrix indices.
Block_Integer type for the block assignment.
Output_Boolean type to store the high quality flags.
Parameters
metricsCRISPR-based QC metrics computed by compute_crispr_qc_metrics().
[in]blockPointer to an array of length num containing block identifiers. Each identifier should correspond to the same blocks used in the constructor.
[out]outputPointer to an array of length num. On output, this is truthy for cells considered to be of high quality, and false otherwise.

◆ filter() [3/3]

template<typename Float_ = double>
template<typename Output_ = uint8_t, typename Sum_ = double, typename Detected_ = int, typename Value_ = double, typename Index_ = int, typename Block_ = int>
std::vector< Output_ > scran_qc::CrisprQcBlockedFilters< Float_ >::filter ( const ComputeCrisprQcMetricsResults< Sum_, Detected_, Value_, Index_ > &  metrics,
const Block_ block 
) const
inline
Template Parameters
Output_Boolean type to store the high quality flags.
Sum_Numeric type to store the summed expression.
Detected_Integer type to store the number of cells.
Value_Type of matrix value.
Index_Type of the matrix indices.
Block_Integer type for the block assignment.
Parameters
metricsCRISPR-based QC metrics computed by compute_crispr_qc_metrics().
[in]blockPointer to an array of length num containing block identifiers. Each identifier should correspond to the same blocks used in the constructor.
Returns
Vector of length num, containing the high-quality calls.

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