if (new_analysis != 0) {
// only switch mussas if we loaded without error
clear();
+ //std::cout << "analysis soft: " << analysis->get_soft_threshold()
+ // << " new analysis soft: " << new_analysis->get_soft_threshold()
+ // << "\n";
analysis.swap(new_analysis);
+ //std::cout << "after swap soft thres: " << analysis->get_soft_threshold()
+ // << "\n";
+ threshold->disconnect(this);
+ threshold->reset(analysis->get_threshold(),
+ analysis->get_window(),
+ analysis->get_soft_threshold());
+ connect(threshold, SIGNAL(thresholdChanged(int)),
+ this, SLOT(setSoftThreshold(int)));
updateTitle();
updateAnalysis();
}
void MussaWindow::setSoftThreshold(int value)
{
+ //std::cout << "Soft: " << analysis->get_soft_threshold()
+ // << " Value: " << value << "\n";
if (analysis->get_soft_threshold() != value) {
threshold->setEnabled( false );
+ //std::cout << "Updating!!!!\n";
analysis->set_soft_threshold(value);
analysis->nway();
updateLinks();
update();
threshold->setEnabled( true );
}
+ //else
+ //{
+ // std::cout << "NOT Updating!!!!\n";
+ //}
}
void MussaWindow::showMussaToolbar()
// but it's possible for us to not have had a chance to set out sequences
// yet.
threshold->setRange(analysis->get_threshold(),analysis->get_window());
+ threshold->setBasepairThreshold(analysis->get_soft_threshold());
updateLinks();
browser->zoomOut();
zoom->setValue(browser->zoom());