settingsDlg.setUiEnabled(false);
String homePath = settingsDlg.getHomeFrame().getQualimapFolder() + File.separator;
CountsQcAnalysis countsAnalysis = new CountsQcAnalysis(tabProperties, homePath,
settingsDlg.getDataItems());
countsAnalysis.setThreshold( settingsDlg.getCountsThreshold() );
countsAnalysis.setConditionNames( settingsDlg.getConditionsMap() );
if (settingsDlg.performComparison()) {
countsAnalysis.activateComparison();
}
boolean includeInfoFile = settingsDlg.annotationIsProvided();
if (includeInfoFile) {
String infoFilePath;
if (settingsDlg.infoFileIsProvided()) {
infoFilePath = settingsDlg.getInfoFilePath();
} else {
infoFilePath = homePath + "species" + File.separator + settingsDlg.getSelectedSpecies();
}
countsAnalysis.setInfoFilePath(infoFilePath);
}
AnalysisDialogLoggerThread outputParsingThread= new AnalysisDialogLoggerThread( settingsDlg ) ;
countsAnalysis.setOutputParsingThread(outputParsingThread);
try {
countsAnalysis.run();
} catch (Exception e) {
JOptionPane.showMessageDialog(settingsDlg, "Failed to analyze counts data. " + e.getMessage(),
settingsDlg.getTitle(), JOptionPane.ERROR_MESSAGE);
settingsDlg.setUiEnabled(true);
//settingsDlg.resetUi();