win_append(m.win_append),
thres_append(m.thres_append),
motif_sequences(m.motif_sequences),
- color_mapper(m.color_mapper)
+ color_mapper(m.color_mapper),
+ dirty(m.dirty)
{
connect(&the_paths, SIGNAL(progress(const std::string&, int, int)),
this, SIGNAL(progress(const std::string&, int, int)));
motif_sequences.clear();
if(color_mapper) color_mapper->clear();
the_paths.clear();
+ dirty = false;
}
// these 5 simple methods manually set the parameters for doing an analysis
Mussa::set_name(string a_name)
{
analysis_name = a_name;
+ dirty = true;
}
string Mussa::get_name()
Mussa::set_window(int a_window)
{
window = a_window;
+ dirty = true;
}
int Mussa::get_window() const
Mussa::set_threshold(int a_threshold)
{
threshold = a_threshold;
- if (a_threshold > soft_thres)
+ dirty = true;
+ if (a_threshold > soft_thres) {
soft_thres = a_threshold;
+ }
}
int Mussa::get_threshold() const
Mussa::set_analysis_mode(enum analysis_modes new_ana_mode)
{
ana_mode = new_ana_mode;
+ dirty = true;
}
enum Mussa::analysis_modes Mussa::get_analysis_mode() const
{
boost::shared_ptr<Sequence> seq_copy(new Sequence(a_seq));
the_seqs.push_back(seq_copy);
+ dirty = true;
}
void Mussa::append_sequence(boost::shared_ptr<Sequence> a_seq)
{
the_seqs.push_back(a_seq);
+ dirty = true;
}
aseq->set_species(*name);
}
the_seqs.push_back(aseq);
+ dirty = true;
}
void
{
throw mussa_load_error("Config File: " + para_file_path.string() + " not found");
}
+ dirty = true;
}
} else {
throw mussa_error("Can't save analysis without an analysis name");
}
+ dirty = false;
}
void