Extend the python mussa interface.
[mussa.git] / alg / seq.hpp
index 5ac42a2bb220ec58630ec4c1138ca6c9ee8c422b..08abcbbe1dbf1af3441cf77b023c60cbb6ee0f29 100644 (file)
@@ -38,19 +38,25 @@ 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;
+  
 private:
   AlphabetRef alphabet;
+public:
+  const std::string rc_map;
+private:  
   friend class boost::serialization::access;
   template<class Archive>
   void serialize(Archive& ar, const unsigned int /*version*/) {