cfg.fragmentLength = Integer.parseInt(settingsDialog.getReadSmoothingLength());
cfg.clusters = settingsDialog.getClusterNumbers();
cfg.vizType = settingsDialog.getVisuzliationType();
String homePath = settingsDialog.getHomeFrame().getQualimapFolder();
EpiAnalysis epiAnalysis = new EpiAnalysis(tabProperties, homePath, cfg);
OutputParsingThread outputParsingThread= new OutputParsingThread( settingsDialog ) ;
epiAnalysis.setOutputParsingThread(outputParsingThread);
epiAnalysis.setProgressStream(settingsDialog.getProgressStream());
try {
epiAnalysis.run();
} catch (Exception e) {
JOptionPane.showMessageDialog(settingsDialog, e.getMessage(),
"Epigenetics analysis", JOptionPane.ERROR_MESSAGE );
e.printStackTrace();