move strand into seqspan
[mussa.git] / alg / seq.hpp
index 5ac42a2bb220ec58630ec4c1138ca6c9ee8c422b..467fcaf9eb7ceafdb50bfd7b34ea118c4c824cf0 100644 (file)
@@ -38,17 +38,21 @@ public:
   
   SeqString(AlphabetRef a=reduced_nucleic_alphabet) : 
     std::string(),
-    alphabet(a) 
+    alphabet(a),
+    rc_map(Alphabet::get_alphabet(a).get_complement_map()) 
   {}
   SeqString(const std::string &s, AlphabetRef a=reduced_nucleic_alphabet) : 
     std::string(s),
-    alphabet(a)
+    alphabet(a),
+    rc_map(Alphabet::get_alphabet(a).get_complement_map()) 
   {}
 
   AlphabetRef get_alphabet_ref() { return alphabet; }
   const Alphabet& get_alphabet() const;
   
   std::string create_reverse_complement_map() const;
+  
+  const std::string rc_map;
 private:
   AlphabetRef alphabet;
   friend class boost::serialization::access;