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
valto format as a string
widthwidth of number
precisionnumber of values after decimal
scaleto divide number
Returns
string representation of value
std::string format ( const model::run::cycle_range rng)

Format cycle range as a string

Parameters
rngrange 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,
beg,
end,
const size_t  width,
const char  fillch 
)

Take a collection of strings and print them using a fixed width

Parameters
outoutput stream
begiterator to start of collection
enditerator to end of collection
widthof fill characters around string
fillchfill 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
outoutput stream
valuesarray of string values
widthof fill characters around string
fillchfill 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
outoutput stream
valuesarray of string values
widthof fill characters around string
fillchfill 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
outoutput stream
valuesvector of string values
widthof fill characters around string
fillchfill 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
outoutput stream
summarysummary metrics
csv_formatif 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