//the_paths.save("tmp.save");
}
+void Mussa::add_motif(const string& motif, const Color& color)
+{
+ motif_sequences.insert(motif);
+ color_mapper->appendInstanceColor("motif", motif, color);
+}
+
void Mussa::add_motifs(const vector<string>& motifs,
const vector<Color>& colors)
{
for(size_t i = 0; i != motifs.size(); ++i)
{
- motif_sequences.insert(motifs[i]);
- color_mapper->appendInstanceColor("motif", motifs[i], colors[i]);
+ add_motif(motifs[i], colors[i]);
}
update_sequences_motifs();
}
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
* (aka if you add the same item more than once it doesn't