#include <flowcell_data.h>

Inheritance diagram for flowcell_data:
heatmap_data chart_data

Public Member Functions

 flowcell_data ()
 
virtual ~flowcell_data ()
 
::uint32_t tile_at (const size_t index) const
 
::uint32_t tile_id (const size_t lane_idx, const size_t loc) const INTEROP_THROW_SPEC((model
 
const plot::axissaxis () const
 
const std::string & subtitle () const
 
size_t lane_count () const
 
size_t swath_count () const
 
size_t tile_count () const
 
size_t total_tile_count () const
 
void set_data (const size_t lane_idx, const size_t loc, const ::uint32_t tile_id, const float value)
 
::uint32_t & tile_id (const size_t lane_idx, const size_t loc) INTEROP_THROW_SPEC((model
 
void set_saxis (const plot::axis &plot_axis)
 
void set_label (const std::string &label)
 
void set_subtitle (const std::string &subtitle)
 
void set_range (const float vmin, const float vmax)
 
void set_buffer (float *data_buffer,::uint32_t *id_buffer, const size_t lanes, const size_t swaths, const size_t tiles) INTEROP_THROW_SPEC((model
 
void resize (const size_t lanes, const size_t swaths, const size_t tiles)
 
void clear ()
 
- Public Member Functions inherited from heatmap_data
 heatmap_data ()
 
virtual ~heatmap_data ()
 
float at (const size_t row, const size_t col) const INTEROP_THROW_SPEC((model
 
float at (const size_t idx) const INTEROP_THROW_SPEC((model
 
float operator[] (const size_t idx) const INTEROP_THROW_SPEC((model
 
float operator() (const size_t row, const size_t col) const INTEROP_THROW_SPEC((model
 
float & operator() (const size_t row, const size_t col) INTEROP_THROW_SPEC((model
 
size_t row_count () const
 
size_t column_count () const
 
size_t length () const
 
bool empty () const
 
void set_buffer (float *data) INTEROP_THROW_SPEC((model
 
void set_buffer (float *data, const size_t rows, const size_t cols, const float default_val=std::numeric_limits< float >::quiet_NaN())
 
void resize (const size_t rows, const size_t cols, const float default_val=std::numeric_limits< float >::quiet_NaN())
 
void clear ()
 
size_t index_of (const size_t row, const size_t col) const
 
- Public Member Functions inherited from chart_data
void set_axes (const axes &xyaxes)
 
void set_xaxis (const axis &xaxes)
 
void set_yaxis (const axis &yaxes)
 
void set_xlabel (const std::string &label)
 
void set_ylabel (const std::string &label)
 
void set_range (const float xmin, const float xmax, const float ymin, const float ymax)
 
void set_xrange (const float vmin, const float vmax)
 
void set_yrange (const float vmin, const float vmax)
 
void set_title (const std::string &title)
 
void clear ()
 
const axisx_axis () const
 
const axisy_axis () const
 
const std::string & title () const
 
const axesxyaxes () const
 

Protected Member Functions

void set_buffer (::uint32_t *id_buffer)
 
void set_buffer (::uint32_t *id_buffer, const size_t swaths, const size_t tiles)
 
void resize (const size_t swaths, const size_t tiles)
 

Protected Attributes

::uint32_t * m_data
 
std::string m_subtitle
 
size_t m_swath_count
 
size_t m_tile_count
 

Friends

std::ostream & operator<< (std::ostream &out, const flowcell_data &data)
 
std::istream & operator>> (std::istream &in, flowcell_data &data)
 

Detailed Description

Encapsulates all data for a flowcell heat map

Constructor & Destructor Documentation

flowcell_data ( )
inline

Constructor

virtual ~flowcell_data ( )
inlinevirtual

Destructor

Member Function Documentation

void clear ( )
inline

Clear the data

void resize ( const size_t  lanes,
const size_t  swaths,
const size_t  tiles 
)
inline

Resize the flowcell heat map to the given number of rows and columns

Parameters
lanesnumber of lanes
swathsnumber of swaths
tilesnumber of tiles
void resize ( const size_t  swaths,
const size_t  tiles 
)
inlineprotected

Resize the tile ID map to the given number of rows and columns

Parameters
swathsnumber of swaths
tilesnumber of tiles
void set_buffer ( float *  data_buffer,
::uint32_t *  id_buffer,
const size_t  lanes,
const size_t  swaths,
const size_t  tiles 
)
inline

Resize the heat map to the given number of rows and columns

Parameters
data_bufferbuffer to hold the flow cell values
id_bufferbuffer to hold the tile ids
lanesnumber of lanes
swathsnumber of swaths
tilesnumber of tiles
void set_buffer ( ::uint32_t *  id_buffer)
inlineprotected

Resize the heat map to the given number of rows and columns

Parameters
id_bufferbuffer to hold the tile ids
void set_buffer ( ::uint32_t *  id_buffer,
const size_t  swaths,
const size_t  tiles 
)
inlineprotected

Resize the heat map to the given number of rows and columns

Parameters
id_bufferbuffer to hold the tile ids
swathsnumber of swaths
tilesnumber of tiles
void set_data ( const size_t  lane_idx,
const size_t  loc,
const ::uint32_t  tile_id,
const float  value 
)
inline

Set data at given location in the flowcell

Parameters
lane_idxlane index
locphysical tile location
tile_idid of the tile
valuevalue of the metric
void set_label ( const std::string &  label)
inline

Set the label of the axis

Parameters
labeltext label
void set_range ( const float  vmin,
const float  vmax 
)
inline

Set the limits of the axis

Parameters
vminminimum value
vmaxmaximum value
void set_saxis ( const plot::axis plot_axis)
inline

Set the axis

Parameters
plot_axissingle axis
void set_subtitle ( const std::string &  subtitle)
inline

Set the sub title

Parameters
subtitlelabel string
::uint32_t& tile_id ( const size_t  lane_idx,
const size_t  loc 
)
inline

Get the tile id associated with the location

Parameters
lane_idx
loc
Returns
tile id

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const flowcell_data data 
)
friend
std::istream& operator>> ( std::istream &  in,
flowcell_data data 
)
friend

Member Data Documentation

::uint32_t* m_data
protected

Array of tile numbers for each tile

std::string m_subtitle
protected

Sub title

size_t m_swath_count
protected

Number of swaths per lane

size_t m_tile_count
protected

Number of tiles per swath


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