X-Git-Url: http://woldlab.caltech.edu/gitweb/?a=blobdiff_plain;f=qui%2Fmotif_editor%2FMotifElement.cpp;h=89308c72858d3ece99caf974a204c79519e7ca9a;hb=5288827708ab8f91f1ed49c8d7d548ec7d07ce79;hp=5bbda0ec43f87750c4a0326275e96d88c660d72b;hpb=45b97b8f97ed41a8ba127742f1cc417673f95e11;p=mussa.git diff --git a/qui/motif_editor/MotifElement.cpp b/qui/motif_editor/MotifElement.cpp index 5bbda0e..89308c7 100644 --- a/qui/motif_editor/MotifElement.cpp +++ b/qui/motif_editor/MotifElement.cpp @@ -1,11 +1,12 @@ #include "qui/motif_editor/MotifEditor.hpp" +#include "alg/alphabet.hpp" #include MotifElement::MotifElement() : enabled(true), color(Color(1.0,0.0,0.0,1.0)), - motif() + motif(Sequence::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, Sequence::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 +}