set_motifs should erase the previous motifs
[mussa.git] / alg / mussa.hpp
index e53e727cf170b04be7ff642364e5b75e73ffade2..2d497f7c4bd0c9b9d7d31b232e6f7ae9c8719485 100644 (file)
@@ -144,15 +144,16 @@ public:
     void save_old();
     void load_old(char * load_file_path, int s_num);
 
-    // manage motif lists
-    void add_motif(const std::string& motifs, 
-                   const Color& colors);
-    //! add vector of motifs and colors to our motif collection
-    /*! this depends on sets and color maps being unique
+    // manage motif lists 
+    //! add a motif it wont be applied until update_sequences_motif is called
+    void add_motif(const std::string& motifs, const Color& colors);
+    //! add vector of motifs and colors to our motif collection 
+    /*! this will automatically call update_sequences_motif
+     *  this depends on sets and color maps being unique
      *  (aka if you add the same item more than once it doesn't
-     *  increase the size of the data structure
+     *  increase the size of the data structure)
      */
-    void add_motifs(const std::vector<std::string>& motifs, 
+    void set_motifs(const std::vector<std::string>& motifs, 
                     const std::vector<Color>& colors);
     //! load motifs from an ifstream
     /*! The file should look something like