index_summary.cpp File Reference
#include <iostream>#include <iomanip>#include "interop/io/metric_file_stream.h"#include "interop/logic/summary/index_summary.h"#include "interop/util/option_parser.h"#include "interop/version.h"#include "inc/application.h"Functions | |
| void | print_summary (std::ostream &out, const index_flowcell_summary &summary, const bool csv_format) |
| int | main (int argc, const char **argv) |
| template<typename I > | |
| void | print_array (std::ostream &out, I beg, I end, const size_t width, const char fillch) |
| template<size_t N> | |
| size_t | size_of (const char *(&)[N]) |
| template<size_t N> | |
| void | print_array (std::ostream &out, const char *(&values)[N], const size_t width, const char fillch) |
| template<size_t N> | |
| void | print_array (std::ostream &out, std::string(&values)[N], const size_t width, const char fillch) |
| void | print_array (std::ostream &out, const std::vector< std::string > &values, const size_t width, const char fillch) |
| std::string | format (const float val, const int width, const int precision, const float scale=1) |
| std::string | format (const model::run::cycle_range &rng) |
| std::string | format_read (const run::read_info &read) |
| void | populate_index (const index_count_summary &summary, std::vector< std::string > &values) |
| void | print_summary (std::ostream &out, const index_lane_summary &summary, const bool csv_format) |
Function Documentation
| std::string format | ( | const float | val, |
| const int | width, | ||
| const int | precision, | ||
| const float | scale = 1 |
||
| ) |
Format a floating point value to the given width and precision as a string
- Parameters
-
val to format as a string width width of number precision number of values after decimal scale to divide number
- Returns
- string representation of value
| std::string format | ( | const model::run::cycle_range & | rng | ) |
Format cycle range as a string
- Parameters
-
rng range to format as a string
- Returns
- string representation of cycle range
| std::string format_read | ( | const run::read_info & | read | ) |
| int main | ( | int | argc, |
| const char ** | argv | ||
| ) |
| void populate_index | ( | const index_count_summary & | summary, |
| std::vector< std::string > & | values | ||
| ) |
| void print_array | ( | std::ostream & | out, |
| I | beg, | ||
| I | end, | ||
| const size_t | width, | ||
| const char | fillch | ||
| ) |
Take a collection of strings and print them using a fixed width
- Parameters
-
out output stream beg iterator to start of collection end iterator to end of collection width of fill characters around string fillch fill character (space by default)
| void print_array | ( | std::ostream & | out, |
| const char *(&) | values[N], | ||
| const size_t | width, | ||
| const char | fillch | ||
| ) |
Take a array of strings and print them using a fixed width
- Parameters
-
out output stream values array of string values width of fill characters around string fillch fill character (space by default)
| void print_array | ( | std::ostream & | out, |
| std::string(&) | values[N], | ||
| const size_t | width, | ||
| const char | fillch | ||
| ) |
Take a array of strings and print them using a fixed width
- Parameters
-
out output stream values array of string values width of fill characters around string fillch fill character (space by default)
| void print_array | ( | std::ostream & | out, |
| const std::vector< std::string > & | values, | ||
| const size_t | width, | ||
| const char | fillch | ||
| ) |
Take a vector of strings and print them using a fixed width
- Parameters
-
out output stream values vector of string values width of fill characters around string fillch fill character (space by default)
| void print_summary | ( | std::ostream & | out, |
| const index_flowcell_summary & | summary, | ||
| const bool | csv_format | ||
| ) |
Print the summary metrics to the given output stream
- Parameters
-
out output stream summary summary metrics csv_format if true, write in CSV format
| void print_summary | ( | std::ostream & | out, |
| const index_lane_summary & | summary, | ||
| const bool | csv_format | ||
| ) |
| size_t size_of | ( | const char * | (&)[N] | ) |
Get number of elements in stack array
- Returns
- number of elements