|
IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
|
#include <OutputHandlerCsv.h>


Public Types | |
| enum | ColType { id1 = 0 , id2 , seq1 , seq2 , subseq1 , subseq2 , subseqDP , subseqDB , start1 , end1 , start2 , end2 , hybridDP , hybridDB , hybridDPfull , hybridDBfull , bpList , E , Etotal , ED1 , ED2 , Pu1 , Pu2 , E_init , E_loops , E_dangleL , E_dangleR , E_endL , E_endR , E_hybrid , E_norm , E_hybridNorm , E_add , seedStart1 , seedEnd1 , seedStart2 , seedEnd2 , seedE , seedED1 , seedED2 , seedPu1 , seedPu2 , w , Eall , Eall1 , Eall2 , Zall , Zall1 , Zall2 , EallTotal , P_E , RT , ColTypeNumber } |
| the column types supported More... | |
| typedef std::list< ColType > | ColTypeList |
| list of ColTypes | |
Public Member Functions | |
| OutputHandlerCsv (const OutputConstraint &outConstraint, std::ostream &out, const InteractionEnergy &energy, const ColTypeList columns, const std::string &colSep=";", const bool printHeader=false, const std::string &listSep=":") | |
| virtual | ~OutputHandlerCsv () |
| virtual void | add (const Interaction &interaction) |
Public Member Functions inherited from IntaRNA::OutputHandler | |
| OutputHandler (const OutputConstraint &outConstraint) | |
| virtual | ~OutputHandler () |
| virtual size_t | reported () const |
| virtual void | incrementZ (const Z_type subZ) |
| virtual Z_type | getZ () const |
| const OutputConstraint & | getOutputConstraint () const |
Static Public Member Functions | |
| static const std::map< ColType, std::string > & | getColType2string () |
| static std::string | list2string (const ColTypeList &colTypes, const std::string &sep) |
| static ColTypeList | string2list (const std::string &listString) |
| static bool | needsZall (const ColTypeList &colTypes) |
| static bool | needBPs (const ColTypeList &colTypes) |
| static std::string | getHeader (const ColTypeList &colTypes, const std::string &colSep) |
Static Public Member Functions inherited from IntaRNA::OutputHandler | |
| static std::string | reverse (const std::string &str) |
Static Public Attributes | |
| static const std::string | notAvailable |
| string to encode not available values | |
| static const ColTypeList | colTypeNumericSort |
| list of ColTypes that have to be sorted numerically | |
Static Protected Member Functions | |
| static void | initColType2string () |
Protected Attributes | |
| std::ostream & | out |
| the output stream to write to | |
| const InteractionEnergy & | energy |
| the interaction energy function used for interaction computation | |
| const std::list< ColType > | columns |
| the sequence of columns to be reported | |
| std::string | colSep |
| the column separator to be used | |
| std::string | listSep |
| the list separator to be used within single columns | |
| Z_type | Z |
| overall partition function (if set) | |
Protected Attributes inherited from IntaRNA::OutputHandler | |
| const OutputConstraint | outConstraint |
| the output constraints to be applied | |
| size_t | reportedInteractions |
| number of reported interactions | |
| Z_type | Z |
| overall partition function for the sequences provided in Z_energy | |
Static Protected Attributes | |
| static std::map< ColType, std::string > | colType2string |
| mapping of ColTypes to according strings | |
OutputHandler that stores interactions in CSV stream output.
| typedef std::list<ColType> IntaRNA::OutputHandlerCsv::ColTypeList |
list of ColTypes
the column types supported
| IntaRNA::OutputHandlerCsv::OutputHandlerCsv | ( | const OutputConstraint & | outConstraint, |
| std::ostream & | out, | ||
| const InteractionEnergy & | energy, | ||
| const ColTypeList | columns, | ||
| const std::string & | colSep = ";", |
||
| const bool | printHeader = false, |
||
| const std::string & | listSep = ":" |
||
| ) |
Construct a CSV table output handler for interaction reporting.
| outConstraint | the output constraint applied to find the reported interaction |
| out | the stream to write to |
| energy | the interaction energy object used for computation |
| columns | the order and list of columns to be printed |
| colSep | the column separator to be used in CSV output |
| printHeader | whether or not to print header information = col names |
| listSep | if multiple entries have to be printed per column, this separator is used between values |
|
virtual |
destruction
|
virtual |
Write a given RNA-RNA interaction in simple text format to the output stream.
| interaction | the interaction to output |
Implements IntaRNA::OutputHandler.
|
inlinestatic |
Access to the mapping of ColTypes to according strings
|
inlinestatic |
Generates the header line for a given list of columns
| colTypes | the list of column types to consider |
| colSep | the column separator to be used |
|
inlinestaticprotected |
initializes the mapping of ColType elements to respective strings
|
inlinestatic |
Converts a list of Coltypes to their string representation.
| colTypes | the list to convert |
| sep | the separator to use |
|
inlinestatic |
Checks whether or not interaction base pairs are needed to generate all colTypes
| colTypes | the list of column types to consider |
|
inlinestatic |
Checks whether or not Zall needs to be computed to generate all colTypes
| colTypes | the list of column types to consider |
|
inlinestatic |
Converts string representation of a list of Coltypes to the respective list.
If the provided string encoding is empty or equals '*', all available columns are returned
| listString | the string representation of the list |
| std::runtime_error | in case of parsing problems |
|
protected |
the column separator to be used
|
staticprotected |
mapping of ColTypes to according strings
|
static |
list of ColTypes that have to be sorted numerically
|
protected |
the sequence of columns to be reported
|
protected |
the interaction energy function used for interaction computation
|
protected |
the list separator to be used within single columns
|
static |
string to encode not available values
|
protected |
the output stream to write to
|
protected |
overall partition function (if set)