public void run() {
settingsDialog.setUiEnabled(false);
settingsDialog.getLogArea().setText("");
Config cfg = new Config();
cfg.replicates = settingsDialog.getSampleItems();
cfg.experimentName = settingsDialog.getExperimentName();
cfg.pathToRegions = settingsDialog.getGeneSelectionPath();
cfg.leftOffset = Integer.parseInt(settingsDialog.getLeftOffset());