IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes | List of all members
IntaRNA::PredictionTrackerSpotProbAll Class Reference

#include <PredictionTrackerSpotProbAll.h>

Inheritance diagram for IntaRNA::PredictionTrackerSpotProbAll:
Inheritance graph
[legend]
Collaboration diagram for IntaRNA::PredictionTrackerSpotProbAll:
Collaboration graph
[legend]

Public Member Functions

 PredictionTrackerSpotProbAll (const InteractionEnergy &energy, const std::string &streamName, const std::string &NA_string="NA", const std::string &sep=";")
 
 PredictionTrackerSpotProbAll (const InteractionEnergy &energy, std::ostream *outStream, const std::string &NA_string="NA", const std::string &sep=";")
 
virtual ~PredictionTrackerSpotProbAll ()
 
virtual void updateOptimumCalled (const size_t i1, const size_t j1, const size_t i2, const size_t j2, const E_type energy)
 
- Public Member Functions inherited from IntaRNA::PredictionTracker
 PredictionTracker ()
 
virtual ~PredictionTracker ()
 

Protected Types

typedef Matrix< Z_type > Z2dMatrix
 matrix type to hold the partition function for each index pair
 

Static Protected Member Functions

static void writeData (std::ostream &out, const Z2dMatrix &pairZ, const Z_type &overallZ, const InteractionEnergy &energy, const std::string &NA_string, const std::string &sep)
 

Protected Attributes

const InteractionEnergy & energy
 energy handler used for predictions
 
const bool deleteStreamsOnDestruction
 whether or not the streams are to be deleted on destruction
 
std::ostream * outStream
 the stream to write the minE-data to
 
const std::string NA_string
 the output string representation if a value is not available for output
 
const std::string sep
 the output string representation of column separators
 
Z_type overallZ
 overall partition function
 
Z2dMatrix pairZ
 the index-pair-wise minimal energy values
 

Detailed Description

Collects for each intermolecular index pair the probability that this pair is covered by an interaction.

The pair data is written to stream on destruction.

Member Typedef Documentation

◆ Z2dMatrix

matrix type to hold the partition function for each index pair

Constructor & Destructor Documentation

◆ PredictionTrackerSpotProbAll() [1/2]

IntaRNA::PredictionTrackerSpotProbAll::PredictionTrackerSpotProbAll ( const InteractionEnergy &  energy,
const std::string &  streamName,
const std::string &  NA_string = "NA",
const std::string &  sep = ";" 
)

Constructs a PredictionTracker that collected for each index pair of two sequences the probability to be covered by an interaction.

Note, if a filename is provided, its stream is closed on destruction of this object!

Parameters
energythe energy function used for energy calculation
streamNamethe stream name where the data is to be written to. use STDOUT/STDERR for the respective stream. Otherwise, an according file is created (has to be non-empty)
NA_stringthe output string representation if a value is not available for profile output
septhe column separator to be used in profile output

◆ PredictionTrackerSpotProbAll() [2/2]

IntaRNA::PredictionTrackerSpotProbAll::PredictionTrackerSpotProbAll ( const InteractionEnergy &  energy,
std::ostream *  outStream,
const std::string &  NA_string = "NA",
const std::string &  sep = ";" 
)

Constructs a PredictionTracker that collected for each index pair of two sequences the probability to be covered by an interaction.

Note, the stream is NOT closed nor deleted on destruction of this object!

Parameters
energythe energy function used
outStreamthe stream where the data is to be written to (has to be non-null)
NA_stringthe output string representation if a value is not available for profile output
septhe column separator to be used in profile output

◆ ~PredictionTrackerSpotProbAll()

virtual IntaRNA::PredictionTrackerSpotProbAll::~PredictionTrackerSpotProbAll ( )
virtual

destruction: write the profile(s) to the according streams.

Member Function Documentation

◆ updateOptimumCalled()

virtual void IntaRNA::PredictionTrackerSpotProbAll::updateOptimumCalled ( const size_t  i1,
const size_t  j1,
const size_t  i2,
const size_t  j2,
const E_type  energy 
)
virtual

Updates the partition function information for each Predictor.updateOptima() call.

Parameters
i1the index of the first sequence interacting with i2
j1the index of the first sequence interacting with j2
i2the index of the second sequence interacting with i1
j2the index of the second sequence interacting with j1
energythe overall energy of the interaction site

Implements IntaRNA::PredictionTracker.

◆ writeData()

static void IntaRNA::PredictionTrackerSpotProbAll::writeData ( std::ostream &  out,
const Z2dMatrix &  pairZ,
const Z_type &  overallZ,
const InteractionEnergy &  energy,
const std::string &  NA_string,
const std::string &  sep 
)
staticprotected

Writes profile data to stream.

Parameters
outthe output stream to write to
pairZthe partition function data to write
overallZthe overall partition function for pairZ
energythe energy function used
NA_stringthe string to be used for missing entries
septhe column separator to be used in profile output

Member Data Documentation

◆ deleteStreamsOnDestruction

const bool IntaRNA::PredictionTrackerSpotProbAll::deleteStreamsOnDestruction
protected

whether or not the streams are to be deleted on destruction

◆ energy

const InteractionEnergy& IntaRNA::PredictionTrackerSpotProbAll::energy
protected

energy handler used for predictions

◆ NA_string

const std::string IntaRNA::PredictionTrackerSpotProbAll::NA_string
protected

the output string representation if a value is not available for output

◆ outStream

std::ostream* IntaRNA::PredictionTrackerSpotProbAll::outStream
protected

the stream to write the minE-data to

◆ overallZ

Z_type IntaRNA::PredictionTrackerSpotProbAll::overallZ
protected

overall partition function

◆ pairZ

Z2dMatrix IntaRNA::PredictionTrackerSpotProbAll::pairZ
protected

the index-pair-wise minimal energy values

◆ sep

const std::string IntaRNA::PredictionTrackerSpotProbAll::sep
protected

the output string representation of column separators


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