LocARNA-1.8.11
alignment_impl.hh
1 #ifndef LOCARNA_ALIGNMENT_IMPL_HH
2 #define LOCARNA_ALIGNMENT_IMPL_HH
3 
4 #ifdef HAVE_CONFIG_H
5 # include <config.h>
6 #endif
7 
8 #include <iosfwd>
9 #include <vector>
10 
11 namespace LocARNA {
12 
13  template <class T> class plusvector;
14  class Alignment;
15  class Sequence;
16  class RnaData;
17  class Scoring;
18 
22  class AlignmentImpl {
23  public:
25 
26  const Sequence &seqA_;
27  const Sequence &seqB_;
28 
42 
56 
57  std::string strA_;
58  std::string strB_;
59 
67  AlignmentImpl(Alignment *self, const Sequence &seqA, const Sequence &seqB)
68  : self_(self),seqA_(seqA),seqB_(seqB),a_(),b_(),strA_(),strB_() {}
69 
70 
76  void
77  write_debug(std::ostream &out) const;
78 
85  static
86  void
87  write_debug(std::ostream &out, const Alignment::edge_ends_t &ends);
88 
97  static
98  std::string
99  dot_bracket_structure(const std::string &str,
100  const Alignment::edge_ends_t &x);
101  };
102 
103 } // end namespace LocARNA
104 
105 #endif // LOCARNA_ALIGNMENT_IMPL_HH
represent sparsified data of RNA ensemble
Definition: rna_data.hh:42
Alignment * self_
self pointer
Definition: alignment_impl.hh:24
Implements a vector with += operator.
Definition: alignment_impl.hh:13
std::string strA_
structure of A as dot-bracket string
Definition: alignment_impl.hh:57
void write_debug(std::ostream &out) const
Write raw alignment information for debugging.
Definition: alignment.cc:231
Definition: aligner.cc:17
Implementation of Alignment.
Definition: alignment_impl.hh:22
static std::string dot_bracket_structure(const std::string &str, const Alignment::edge_ends_t &x)
dot bracket structure
Definition: alignment.cc:250
Alignment::edge_ends_t b_
second components of alignment edges
Definition: alignment_impl.hh:55
Represents a structure-annotated sequence alignment.
Definition: alignment.hh:87
AlignmentImpl(Alignment *self, const Sequence &seqA, const Sequence &seqB)
Constructor as empty alignment of two sequences.
Definition: alignment_impl.hh:67
const Sequence & seqA_
sequence A
Definition: alignment_impl.hh:26
Provides methods for the scoring of alignments.
Definition: scoring.hh:285
std::string strB_
structure of B as dot-bracket string
Definition: alignment_impl.hh:58
Alignment::edge_ends_t a_
first components of alignment edges
Definition: alignment_impl.hh:41
"Sequence View" of multiple alignment as array of column vectors
Definition: sequence.hh:29
Alignment__edge_ends_t edge_ends_t
edge ends
Definition: alignment.hh:97
const Sequence & seqB_
sequence B
Definition: alignment_impl.hh:27