1 #ifndef LOCARNA_MATCH_PROBS 2 #define LOCARNA_MATCH_PROBS 16 template <
class T>
class Alphabet;
62 const std::string & file);
78 double pf_struct_weight,
87 read(std::istream &in);
91 read(
const std::string &filename);
99 read_sparse(std::istream &in, size_type lenA, size_type lenB);
106 read_sparse(
const std::string &filename, size_type lenA, size_type lenB);
113 write(std::ostream &out)
const;
117 write(
const std::string &filename)
const;
124 write_sparse(std::ostream &out,
double threshold)
const;
131 write_sparse(
const std::string &filename,
double threshold)
const;
140 double prob(
size_t i,
size_t j)
const {
141 assert(1<=i && i<probs.
sizes().first);
142 assert(1<=j && j<probs.
sizes().second);
150 pf_gotoh(size_type lenA,
174 class ProbConsParameter {
190 std::string basenames;
193 std::vector<double> background;
203 ProbConsParameter(
const std::string &filename);
210 #endif // LOCARNA_MATCH_PROBS represent sparsified data of RNA ensemble
Definition: rna_data.hh:42
void pairHMM_probs(const Sequence &seqA, const Sequence &seqB, const std::string &file)
Definition: match_probs.cc:118
std::istream & read(std::istream &in)
Provides probabilities for each match.
Definition: match_probs.hh:42
Definition: aligner.cc:17
std::ostream & write_sparse(std::ostream &out, double threshold) const
Definition: match_probs.cc:502
size_t size_type
size
Definition: match_probs.hh:44
MatchProbs()
construct as empty object
Definition: match_probs.cc:106
Implements the stral-like scoring function.
Definition: stral_score.hh:22
std::ostream & write(std::ostream &out) const
void pf_probs(const RnaData &rnaA, const RnaData &rnaB, const Matrix< double > &sim_mat, const Alphabet< char > &alphabet, double gap_opening, double gap_extension, double pf_struct_weight, double temp, bool flag_local)
Definition: match_probs.cc:359
size_type get_lenB() const
get the length of the second sequence
Definition: match_probs.hh:137
size_pair_type sizes() const
Definition: matrix.hh:93
size_type get_lenA() const
get the length of the first sequence
Definition: match_probs.hh:134
std::istream & read_sparse(std::istream &in, size_type lenA, size_type lenB)
Definition: match_probs.cc:464
"Sequence View" of multiple alignment as array of column vectors
Definition: sequence.hh:29
double prob(size_t i, size_t j) const
return the match probability for the two bases
Definition: match_probs.hh:140