metric_summary.h
Go to the documentation of this file.
1 
8 #pragma once
10 
11 namespace illumina { namespace interop { namespace model { namespace summary {
12 
18  {
19  public:
22  metric_summary(const size_t /*channel_count*/) :
23  m_error_rate(std::numeric_limits<float>::quiet_NaN()),
24  m_percent_aligned(std::numeric_limits<float>::quiet_NaN()),
25  m_first_cycle_intensity(std::numeric_limits<float>::quiet_NaN()),
26  m_percent_gt_q30(std::numeric_limits<float>::quiet_NaN()),
27  m_yield_g(std::numeric_limits<float>::quiet_NaN()),
28  m_projected_yield_g(0),
29  m_percent_occupied(std::numeric_limits<float>::quiet_NaN()),
30  m_percent_occupancy_proxy(std::numeric_limits<float>::quiet_NaN()),
31  m_reads_raw(0),
32  m_reads_pf(0),
33  m_cluster_count_raw(std::numeric_limits<float>::quiet_NaN()),
34  m_cluster_count_pf(std::numeric_limits<float>::quiet_NaN())
35 
36  {}
37  public:
52  float error_rate()const
53  {
54  return m_error_rate;
55  }
60  float percent_aligned()const
61  {
62  return m_percent_aligned;
63  }
68  float first_cycle_intensity()const
69  {
70  return m_first_cycle_intensity;
71  }
78  float percent_gt_q30()const
79  {
80  return m_percent_gt_q30;
81  }
88  float yield_g()const
89  {
90  return m_yield_g;
91  }
92 
99  float projected_yield_g()const
100  {
101  return m_projected_yield_g;
102  }
107  float percent_occupied()const
108  {
109  return m_percent_occupied;
110  }
118  {
119  return m_percent_occupancy_proxy;
120  }
125  double cluster_count()const
126  {
127  return m_cluster_count_raw;
128  }
129 
134  double cluster_count_pf()const
135  {
136  return m_cluster_count_pf;
137  }
142  uint64_t reads()const
143  {
144  return m_reads_raw;
145  }
150  uint64_t reads_pf()const
151  {
152  return m_reads_pf;
153  }
159  void first_cycle_intensity(const float val)
160  {
161  m_first_cycle_intensity = val;
162  }
167  void error_rate(const float val)
168  {
169  m_error_rate = val;
170  }
175  void percent_aligned(const float val)
176  {
177  m_percent_aligned = val;
178  }
183  void percent_gt_q30(const float val)
184  {
185  m_percent_gt_q30 = val;
186  }
187 
192  void yield_g(const float val)
193  {
194  m_yield_g = val;
195  }
200  void projected_yield_g(const float val)
201  {
202  m_projected_yield_g = val;
203  }
208  void percent_occupied(const float val)
209  {
210  m_percent_occupied = val;
211  }
218  void percent_occupancy_proxy(const float val)
219  {
220  m_percent_occupancy_proxy = val;
221  }
222 
225  void resize(const size_t)
226  {
227  }
228 
233  void cluster_count(const double val)
234  {
235  m_cluster_count_raw = val;
236  }
237 
242  void cluster_count_pf(const double val)
243  {
244  m_cluster_count_pf = val;
245  }
246 
251  void reads(const uint64_t val)
252  {
253  m_reads_raw = val;
254  }
255 
260  void reads_pf(const uint64_t val)
261  {
262  m_reads_pf = val;
263  }
264 
265  private:
266  float m_error_rate;
267  float m_percent_aligned;
268  float m_first_cycle_intensity;
269  float m_percent_gt_q30;
270  float m_yield_g;
271  float m_projected_yield_g;
272  float m_percent_occupied;
273  float m_percent_occupancy_proxy;
274  uint64_t m_reads_raw;
275  uint64_t m_reads_pf;
276  double m_cluster_count_raw;
277  double m_cluster_count_pf;
278  template<class MetricType, int Version>
279  friend struct io::generic_layout;
280  };
281 
282 
283 
284 }}}}
285 
void projected_yield_g(const float val)
Definition: metric_summary.h:200
void percent_gt_q30(const float val)
Definition: metric_summary.h:183
void error_rate(const float val)
Definition: metric_summary.h:167
void reads_pf(const uint64_t val)
Definition: metric_summary.h:260
float percent_gt_q30() const
Definition: metric_summary.h:78
Definition: enum_description.h:15
void percent_aligned(const float val)
Definition: metric_summary.h:175
float percent_aligned() const
Definition: metric_summary.h:60
float projected_yield_g() const
Definition: metric_summary.h:99
metric_summary(const size_t)
Definition: metric_summary.h:22
void cluster_count(const double val)
Definition: metric_summary.h:233
void first_cycle_intensity(const float val)
Definition: metric_summary.h:159
def summary(run_metrics, level='Total', columns=None, dtype='f4', ignore_missing_columns=True, extra)
Definition: core.py:217
float percent_occupancy_proxy() const
Definition: metric_summary.h:117
Definition: generic_layout.h:24
void cluster_count_pf(const double val)
Definition: metric_summary.h:242
double cluster_count() const
Definition: metric_summary.h:125
float first_cycle_intensity() const
Definition: metric_summary.h:68
float percent_occupied() const
Definition: metric_summary.h:107
void reads(const uint64_t val)
Definition: metric_summary.h:251
void percent_occupancy_proxy(const float val)
Definition: metric_summary.h:218
float error_rate() const
Definition: metric_summary.h:52
uint64_t reads_pf() const
Definition: metric_summary.h:150
uint64_t reads() const
Definition: metric_summary.h:142
float yield_g() const
Definition: metric_summary.h:88
void percent_occupied(const float val)
Definition: metric_summary.h:208
void yield_g(const float val)
Definition: metric_summary.h:192
void resize(const size_t)
Definition: metric_summary.h:225
double cluster_count_pf() const
Definition: metric_summary.h:134