Move alphabet type into SeqString
[mussa.git] / qui / motif_editor / MotifElement.cpp
index 5bbda0ec43f87750c4a0326275e96d88c660d72b..e847a245a1f90a8981159a152da28f19f74cdc34 100644 (file)
@@ -1,11 +1,12 @@
 #include "qui/motif_editor/MotifEditor.hpp"
+#include "alg/alphabet.hpp"
 
 #include <iostream>
 
 MotifElement::MotifElement() :
   enabled(true),
   color(Color(1.0,0.0,0.0,1.0)),
-  motif()
+  motif(nucleic_alphabet)
 {
 }
 
@@ -76,7 +77,7 @@ void MotifElement::setSequence(const Sequence& seq)
 //! set sequence text
 void MotifElement::setSequence(const std::string& seq_text)
 {
-  motif.set_sequence(seq_text);
+  motif.set_sequence(seq_text, nucleic_alphabet);
 }
 
 QString MotifElement::getSequenceText() const
@@ -94,4 +95,4 @@ std::string MotifElement::getName() const
 void MotifElement::setName(const std::string& seq_name)
 {
   motif.set_fasta_header(seq_name);
-}
\ No newline at end of file
+}