X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=qui%2Fsubanalysis%2FSubanalysisWindow.cpp;h=6ed658df7686c53fffea97c7f08c4c5c03cb88be;hp=056ba9b4918be196dad7eb6ecd73d6c122e2cf3d;hb=079a158e1d058a5a6b1ceac667edef56d3dcad7f;hpb=81c0ac18dbece99f99afb5b127e91162e1935de4 diff --git a/qui/subanalysis/SubanalysisWindow.cpp b/qui/subanalysis/SubanalysisWindow.cpp index 056ba9b..6ed658d 100644 --- a/qui/subanalysis/SubanalysisWindow.cpp +++ b/qui/subanalysis/SubanalysisWindow.cpp @@ -12,20 +12,23 @@ SubanalysisWindow::SubanalysisWindow(MussaRef m, QWidget *parent) : QWidget(parent), analysis(m), + parameterLayout(0), + thresholdLabel(0), + windowLabel(0), window(0), threshold(0), table(0), ok(0), cancel(0) { - QGridLayout *parameterLayout = new QGridLayout; + parameterLayout = new QGridLayout; - QLabel *thresholdLabel = new QLabel(tr("threshold (bp)")); + thresholdLabel = new QLabel(tr("threshold (bp)")); parameterLayout->addWidget(thresholdLabel, 0, 0); threshold = new QSpinBox(this); threshold->setValue(8); parameterLayout->addWidget(threshold, 1, 0); - QLabel *windowLabel = new QLabel(tr("window (bp)")); + windowLabel = new QLabel(tr("window (bp)")); parameterLayout->addWidget(windowLabel, 0, 1); window = new QSpinBox(this); window->setValue(10); @@ -46,7 +49,7 @@ SubanalysisWindow::SubanalysisWindow(MussaRef m, QWidget *parent) buttonLayout->addWidget(ok); buttonLayout->addWidget(cancel); - // layout verticle space + // layout vertical space QVBoxLayout *verticalLayout = new QVBoxLayout; verticalLayout->addLayout(parameterLayout); verticalLayout->addWidget(table); @@ -119,6 +122,7 @@ void SubanalysisWindow::run() new_m->set_motifs(motifs_copy, color_copy); MussaWindow *mw = new MussaWindow(new_m); mw->show(); + mw->setSoftThreshold(threshold->value()); model.clear(); hide(); } catch(mussa_error e) {