2#ifndef INTARNA_PREDICTIONTRACKERPROFILESPOTPROB_H_
3#define INTARNA_PREDICTIONTRACKERPROFILESPOTPROB_H_
10#include <boost/algorithm/string.hpp>
47 ,
const std::string & seq1streamName
48 ,
const std::string & seq2streamName
50 ,
const std::string &
sep =
";"
72 ,
const std::string &
sep =
";"
93 ,
const size_t i2,
const size_t j2
143 ,
const Z_type boltzmannWeight);
157 template <
typename ZProfileIterator >
161 ,
const ZProfileIterator & begin
162 ,
const ZProfileIterator & end
166 ,
const std::string &
sep
174template <
typename ZProfileIterator >
179 ,
const ZProfileIterator & begin
180 ,
const ZProfileIterator & end
183 ,
const std::string & NA_string
184 ,
const std::string & sep
192 out <<
"idx"<<
sep<<boost::replace_all_copy(rna.
getId(),
sep,
"_")<<
sep<<
"spotProb" <<
'\n';
195 for (ZProfileIterator curZ = begin; curZ!=end; curZ++) {
203 if ( noZ ||
Z_isINF( *curZ ) ) {
Definition InteractionEnergy.h:20
Definition PredictionTrackerProfileSpotProb.h:23
PredictionTrackerProfileSpotProb(const InteractionEnergy &energy, const std::string &seq1streamName, const std::string &seq2streamName, const std::string &NA_string="NA", const std::string &sep=";")
std::ostream * seq1stream
if non-NULL, the stream to write the spotProb-profile for seq1 to
Definition PredictionTrackerProfileSpotProb.h:107
Z_type overallZ
the overall partition function to be used for normalization
Definition PredictionTrackerProfileSpotProb.h:128
static void writeProfile(std::ostream &out, const ZProfileIterator &begin, const ZProfileIterator &end, const Z_type overallZ, const RnaSequence &rna, const std::string &NA_string, const std::string &sep)
Definition PredictionTrackerProfileSpotProb.h:178
std::vector< Z_type > ZProfile
container definition for partition function profile data
Definition PredictionTrackerProfileSpotProb.h:119
std::ostream * seq2stream
if non-NULL, the stream to write the spotProb-profile for seq2 to
Definition PredictionTrackerProfileSpotProb.h:110
PredictionTrackerProfileSpotProb(const InteractionEnergy &energy, std::ostream *seq1stream, std::ostream *seq2stream, const std::string &NA_string="NA", const std::string &sep=";")
const bool deleteStreamsOnDestruction
whether or not the streams are to be deleted on destruction
Definition PredictionTrackerProfileSpotProb.h:104
const std::string NA_string
the output string representation if a value is not available for profile output
Definition PredictionTrackerProfileSpotProb.h:113
virtual ~PredictionTrackerProfileSpotProb()
ZProfile seq2Z
the position-wise partition function values for seq2
Definition PredictionTrackerProfileSpotProb.h:125
const std::string sep
the output string representation of a column separator
Definition PredictionTrackerProfileSpotProb.h:116
virtual void updateOptimumCalled(const size_t i1, const size_t j1, const size_t i2, const size_t j2, const E_type energy)
ZProfile seq1Z
the position-wise partition function values for seq1
Definition PredictionTrackerProfileSpotProb.h:122
static void updateProfile(ZProfile &profile, const size_t i, const size_t j, const Z_type boltzmannWeight)
const InteractionEnergy & energy
energy handler used for predictions
Definition PredictionTrackerProfileSpotProb.h:101
Definition PredictionTracker.h:15
Definition RnaSequence.h:29
long getInOutIndex(const size_t i) const
Definition RnaSequence.h:376
const std::string & getId() const
Definition RnaSequence.h:346
const String_type & asString() const
Definition RnaSequence.h:442
#define Z_isINF(e)
check if a given energy is set to Z_INF
Definition general.h:176
Definition Accessibility.h:13
int E_type
type for energy values (energy + accessibility [ED]) (internally)
Definition general.h:78
double Z_type
type for probabilities, RT and Boltzmann values
Definition general.h:88