index_count_summary Class Reference

#include <index_count_summary.h>

Public Member Functions

 index_count_summary (const size_t id=0, const std::string &index1="", const std::string &index2="", const std::string &sample_id="", const std::string &project_name="", const ::uint64_t count=0, const float fraction_mapped=0.0f)
 
size_t id () const
 
const std::string & index1 () const
 
const std::string & index2 () const
 
float fraction_mapped () const
 
::uint64_t cluster_count () const
 
const std::string & sample_id () const
 
const std::string & project_name () const
 
void id (const size_t n)
 
index_count_summaryoperator+= (const ::uint64_t cluster_count)
 
void update_fraction_mapped (const double total_pf_cluster_count)
 
bool operator< (const index_count_summary &rhs) const
 

Friends

template<class MetricType , int Version>
struct io::generic_layout
 

Detailed Description

Summary of index counts

Constructor & Destructor Documentation

index_count_summary ( const size_t  id = 0,
const std::string &  index1 = "",
const std::string &  index2 = "",
const std::string &  sample_id = "",
const std::string &  project_name = "",
const ::uint64_t  count = 0,
const float  fraction_mapped = 0.0f 
)
inline

Constructor

Parameters
idindex unique identifier (based on a counter)
index1index sequence 1
index2index sequence 2
sample_idsample id
project_nameproject name
countnumber of indices
fraction_mappedfraction of reads mapped

Member Function Documentation

void id ( const size_t  n)
inline

Set the index unique identifier (based on a counter)

Parameters
nindex identifier
index_count_summary& operator+= ( const ::uint64_t  cluster_count)
inline

Update the count

Parameters
cluster_countcount to add
Returns
reference to this object
bool operator< ( const index_count_summary rhs) const
inline

Compare two index count summaries by their ids

Parameters
rhsindex_count_summary on the right hand side (rhs) of the < symbol
Returns
true if this is less than rhs
void update_fraction_mapped ( const double  total_pf_cluster_count)
inline

Update the fraction mapped from the total PF cluster count

Parameters
total_pf_cluster_counttotal PF cluster count

Friends And Related Function Documentation

friend struct io::generic_layout
friend

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