21 #include "ui_metaanalysisdialog.h" 32 QSharedPointer<VespucciWorkspace> ws,
33 const QStringList &data_keys) :
45 delete matrix_selection_dialog_;
48 void MetaAnalysisDialog::on_buttonBox_accepted()
50 QString analysis_description = ui->typeComboBox->currentText();
51 bool transpose = ui->transposeCheckBox->isChecked();
52 QSharedPointer<MatrixAnalyzer> analyzer(
new MatrixAnalyzer(workspace_, data_keys_, transpose));
55 if (analysis_description ==
"Univariate Analysis"){
57 dialog->setAttribute(Qt::WA_DeleteOnClose);
60 else if (analysis_description ==
"Band Ratio Analysis"){
62 dialog->setAttribute(Qt::WA_DeleteOnClose);
65 else if (analysis_description ==
"Principal Component Analysis"){
67 dialog->setAttribute(Qt::WA_DeleteOnClose);
70 else if (analysis_description ==
"Principal Component Analysis (mlpack)"){
72 dialog->setAttribute(Qt::WA_DeleteOnClose);
75 else if (analysis_description ==
"Vertex Component Analysis"){
77 dialog->setAttribute(Qt::WA_DeleteOnClose);
80 else if (analysis_description ==
"Partial Least Squares (Classification)"){
82 dialog->setAttribute(Qt::WA_DeleteOnClose);
85 else if (analysis_description ==
"k-Means Clustering"){
87 dialog->setAttribute(Qt::WA_DeleteOnClose);
90 else if (analysis_description ==
"Hierarchical Clustering"){
92 dialog->setAttribute(Qt::WA_DeleteOnClose);
96 workspace_->main_window()->DisplayExceptionWarning(e);
102 void MetaAnalysisDialog::on_buttonBox_rejected()
The BandRatioDialog class The dialog that allows the user to create a band-ratio map.
The PLSDialog class Dialog that allows the user to perform PLS determinant analysis.
The UnivariateDialog class Class allowing user to create univariate images.
The PrincipalComponentsDialog class Dialog for performing principal components analysis.
The KMeansDialog class Allows the user to create a k-means clustering map.
The VCADialog class A dialog that allows the user to perform vertex components analysis.