Search in sources :

Example 1 with CreateDiseaseSignatureTaskFactory

use of org.baderlab.csplugins.enrichmentmap.task.postanalysis.CreateDiseaseSignatureTaskFactory in project EnrichmentMapApp by BaderLab.

the class PostAnalysisPanelMediator method addGeneSets.

private void addGeneSets(CyNetworkView netView, PostAnalysisParameters params) {
    CreateDiseaseSignatureTaskFactory taskFactory = signatureTaskFactoryFactory.create(netView, params);
    TaskIterator tasks = taskFactory.createTaskIterator();
    String errors = taskFactory.getErrors();
    if (errors.isEmpty()) {
        taskManager.execute(tasks, new DialogObserver());
    } else {
        JOptionPane.showMessageDialog(swingApplication.getJFrame(), errors, "Invalid Input", JOptionPane.WARNING_MESSAGE);
    }
}
Also used : TaskIterator(org.cytoscape.work.TaskIterator) CreateDiseaseSignatureTaskFactory(org.baderlab.csplugins.enrichmentmap.task.postanalysis.CreateDiseaseSignatureTaskFactory)

Aggregations

CreateDiseaseSignatureTaskFactory (org.baderlab.csplugins.enrichmentmap.task.postanalysis.CreateDiseaseSignatureTaskFactory)1 TaskIterator (org.cytoscape.work.TaskIterator)1