q_metric.h
Go to the documentation of this file.
36 inline size_t count_q_metric_bins(const model::metric_base::metric_set<model::metrics::q_metric>& metric_set)
45 inline size_t count_q_metric_bins(const model::metric_base::metric_set<model::metrics::q_by_lane_metric>& metric_set)
54 inline size_t count_q_metric_bins(const model::metric_base::metric_set<model::metrics::q_collapsed_metric>&)
62 void populate_cumulative_distribution(model::metric_base::metric_set<model::metrics::q_by_lane_metric>& q_metric_set)
69 void populate_cumulative_distribution(model::metric_base::metric_set<model::metrics::q_metric>& q_metric_set)
76 void populate_cumulative_distribution(model::metric_base::metric_set<model::metrics::q_collapsed_metric>& q_metric_set)
91 if (!q_metric_set.get_bins().empty()) return 0; // If the metrics already have a header they do not require binning
102 if (bins_found.size() > max_bin_count) break; // Number of bins greater than 7 indicates this is unbinned
131 void compress_q_metrics(model::metric_base::metric_set<model::metrics::q_metric>& q_metric_set);
136 void compress_q_metrics(model::metric_base::metric_set<model::metrics::q_by_lane_metric>& q_metric_set);
146 inline void populate_legacy_q_score_bins(model::metric_base::metric_set<model::metrics::q_metric>& q_metric_set,
162 inline void populate_legacy_q_score_bins(model::metric_base::metric_set<model::metrics::q_by_lane_metric>& q_metric_set,
174 inline size_t count_qvals(const model::metric_base::metric_set<model::metrics::q_metric>& q_metric_set)
183 inline size_t count_qvals( const model::metric_base::metric_set<model::metrics::q_by_lane_metric>& q_metric_set)
192 inline size_t count_qvals( const model::metric_base::metric_set<model::metrics::q_collapsed_metric>&)
201 inline bool is_compressed(const model::metric_base::metric_set<model::metrics::q_metric>& q_metric_set)
211 inline bool is_compressed(const model::metric_base::metric_set<model::metrics::q_collapsed_metric>& q_metric_set)
221 inline bool is_compressed(const model::metric_base::metric_set<model::metrics::q_by_lane_metric>& q_metric_set)
234 return is_compressed(q_metric_set) ? q_metric_set.get_bins().back().upper() : count_qvals(q_metric_set);
241 inline size_t max_qval(const model::metric_base::metric_set<model::metrics::q_by_lane_metric>& q_metric_set)
243 return is_compressed(q_metric_set) ? q_metric_set.get_bins().back().upper() : count_qvals(q_metric_set);
250 inline size_t max_qval(const model::metric_base::metric_set<model::metrics::q_collapsed_metric>& q_metric_set)
286 void create_collapse_q_metrics(const model::metric_base::metric_set<model::metrics::q_metric>& metric_set,
295 void create_q_metrics_by_lane(const model::metric_base::metric_set<model::metrics::q_metric>& metric_set,
size_t count_q_metric_bins(I beg, I end)
Definition: q_metric.h:27
Definition: metric_set.h:40
size_t index_for_q_value(const model::metric_base::metric_set< model::metrics::q_metric > &q_metric_set, const size_t qval)
Definition: q_metric.h:261
::int16_t version() const
Definition: metric_set.h:535
Definition: enum_description.h:15
void populate_legacy_q_score_bins(std::vector< model::metrics::q_score_bin > &q_score_bins, const constants::instrument_type instrument, const size_t count)
Definition: q_metric.cpp:117
Definition: q_metric.h:261
bool empty() const
Definition: metric_set.h:525
void populate_cumulative_distribution(model::metric_base::metric_set< model::metrics::q_by_lane_metric > &q_metric_set)
Definition: q_metric.cpp:83
size_t size() const
Definition: metric_set.h:519
void compress_q_metrics(model::metric_base::metric_set< model::metrics::q_metric > &q_metric_set)
Definition: q_metric.cpp:292
bool is_compressed(const model::metric_base::metric_set< model::metrics::q_metric > &q_metric_set)
Definition: q_metric.h:201
::uint32_t uint_t
Definition: base_metric.h:77
size_t count_qvals(const model::metric_base::metric_set< model::metrics::q_metric > &q_metric_set)
Definition: q_metric.h:174
bool requires_legacy_bins(const size_t count)
Definition: q_metric.h:111
const_iterator begin() const
Definition: metric_set.h:166
size_t max_qval(const model::metric_base::metric_set< model::metrics::q_metric > &q_metric_set)
Definition: q_metric.h:231
Definition: metric_exceptions.h:25
const_iterator end() const
Definition: metric_set.h:175
void create_collapse_q_metrics(const model::metric_base::metric_set< model::metrics::q_metric > &metric_set, model::metric_base::metric_set< model::metrics::q_collapsed_metric > &collapsed)
Definition: q_metric.cpp:189
void create_q_metrics_by_lane(const model::metric_base::metric_set< model::metrics::q_metric > &metric_set, model::metric_base::metric_set< model::metrics::q_by_lane_metric > &bylane, const constants::instrument_type instrument)
Definition: q_metric.cpp:257
void populate_cumulative_distribution(model::metric_base::metric_set< model::metrics::q_by_lane_metric > &q_metric_set) INTEROP_THROW_SPEC((model void populate_cumulative_distribution(model::metric_base::metric_set< model::metrics::q_metric > &q_metric_set) INTEROP_THROW_SPEC((model void populate_cumulative_distribution(model::metric_base::metric_set< model::metrics::q_collapsed_metric > &q_metric_set) INTEROP_THROW_SPEC((model size_t count_legacy_q_score_bins(const model::metric_base::metric_set< QMetric > &q_metric_set)
Definition: q_metric.h:87
metric_array_t::const_iterator const_iterator
Definition: metric_set.h:77