scran_qc
Simple quality control on single-cell data
|
Filter on ADT-based QC metrics with blocking. More...
#include <adt_quality_control.hpp>
Public Member Functions | |
const std::vector< Float_ > & | get_detected () const |
const std::vector< std::vector< Float_ > > & | get_subset_sum () const |
std::vector< Float_ > & | get_detected () |
std::vector< std::vector< Float_ > > & | get_subset_sum () |
template<typename Index_ , typename Sum_ , typename Detected_ , typename Block_ , typename Output_ > | |
void | filter (Index_ num, const ComputeAdtQcMetricsBuffers< Sum_, Detected_ > &metrics, const Block_ *block, Output_ *output) const |
template<typename Sum_ , typename Detected_ , typename Block_ , typename Output_ > | |
void | filter (const ComputeAdtQcMetricsResults< Sum_, Detected_ > &metrics, const Block_ *block, Output_ *output) const |
template<typename Output_ = uint8_t, typename Sum_ = double, typename Detected_ = int, typename Block_ = int> | |
std::vector< Output_ > | filter (const ComputeAdtQcMetricsResults< Sum_, Detected_ > &metrics, const Block_ *block) const |
Filter on ADT-based QC metrics with blocking.
Float_ | Floating-point type for filter thresholds. |
Instances of this class are typically created by compute_adt_qc_filters_blocked()
.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sum_ | Numeric type to store the summed expression. |
Detected_ | Integer type to store the number of cells. |
Block_ | Integer type for the block assignment. |
Output_ | Boolean type to store the high quality flags. |
num | Number of cells. | |
metrics | A collection of arrays containing ADT-based QC metrics, filled by compute_adt_qc_metrics() . The feature subsets should be the same as those used in the metrics supplied to compute_adt_qc_filters() . | |
[in] | block | Pointer to an array of length num containing block identifiers. Each identifier should correspond to the same blocks used in the constructor. |
[out] | output | Pointer to an array of length num . On output, this is truthy for cells considered to be of high quality, and false otherwise. |
|
inline |
Sum_ | Numeric type to store the summed expression. |
Detected_ | Integer type to store the number of cells. |
Block_ | Integer type for the block assignment. |
Output_ | Boolean type to store the high quality flags. |
metrics | ADT-based QC metrics computed by compute_adt_qc_metrics() . The feature subsets should be the same as those used in the metrics supplied to compute_adt_qc_filters() . | |
[in] | block | Pointer to an array of length num containing block identifiers. Each identifier should correspond to the same blocks used in the constructor. |
[out] | output | Pointer to an array of length num . On output, this is truthy for cells considered to be of high quality, and false otherwise. |
|
inline |
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. |
Block_ | Integer type for the block assignment. |
metrics | ADT-based QC metrics computed by compute_adt_qc_metrics() . The feature subsets should be the same as those used in the metrics supplied to compute_adt_qc_filters() . | |
[in] | block | Pointer to an array of length num containing block identifiers. Each identifier should correspond to the same blocks used in the constructor. |
num
, containing the high-quality calls.