scran
C++ library for basic single-cell RNA-seq analyses
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
scran::PerCellCrisprQcMetrics Class Reference

Compute per-cell quality control metrics from a CRISPR guide count matrix. More...

#include <PerCellCrisprQcMetrics.hpp>

Classes

struct  Buffers
 Buffers for direct storage of the calculated statistics. More...
 
struct  Defaults
 Default parameters. More...
 
struct  Results
 Result store for QC metric calculations. More...
 

Public Member Functions

PerCellCrisprQcMetricsset_num_threads (int n=Defaults::num_threads)
 
template<class Matrix , typename Float , typename Integer >
void run (const Matrix *mat, Buffers< Float, Integer > &output) const
 
template<class Matrix >
Results run (const Matrix *mat) const
 

Detailed Description

Compute per-cell quality control metrics from a CRISPR guide count matrix.

Given a feature-by-cell guide count matrix, this class computes several QC metrics:

Under the hood, this class is just a pre-configured wrapper around PerCellQcMetrics. with some careful division of the maximum count.

Member Function Documentation

◆ set_num_threads()

PerCellCrisprQcMetrics & scran::PerCellCrisprQcMetrics::set_num_threads ( int  n = Defaults::num_threads)
inline
Parameters
nNumber of threads to use.
Returns
A reference to this PerCellAdtQcMetrics object.

◆ run() [1/2]

template<class Matrix , typename Float , typename Integer >
void scran::PerCellCrisprQcMetrics::run ( const Matrix *  mat,
Buffers< Float, Integer > &  output 
) const
inline

Compute the QC metrics from an CRISPR count matrix.

Template Parameters
MatrixType of matrix, usually a tatami::NumericMatrix.
FloatFloating point type to store the totals.
IntegerInteger type to store the counts and indices.
Parameters
matPointer to a feature-by-cells matrix containing CRISPR guide counts.
[out]outputBuffers object in which to store the output. All pointers should be set to non-NULL values.

◆ run() [2/2]

template<class Matrix >
Results scran::PerCellCrisprQcMetrics::run ( const Matrix *  mat) const
inline

Compute the QC metrics from an CRISPR count matrix and return the results.

Template Parameters
MatrixType of matrix, usually a tatami::NumericMatrix.
Parameters
matPointer to a feature-by-cells matrix containing CRISPR counts.
Returns
A PerCellCrisprQcMetrics::Results object containing the QC metrics.

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