Search in sources :

Example 1 with GeneAssociationReader

use of org.cytoscape.tableimport.internal.reader.ontology.GeneAssociationReader in project cytoscape-impl by cytoscape.

the class ImportOntologyAndAnnotationTask method run.

@Override
public void run(TaskMonitor tm) throws Exception {
    tm.setTitle("Importing ontology and annotations");
    tm.setStatusMessage("Loading Ontology...");
    tm.setProgress(-1d);
    final CyNetworkReader loadOBOTask = (CyNetworkReader) factory.createTaskIterator(is, ontologyDagName).next();
    final RegisterOntologyTask registerOntologyTask = new RegisterOntologyTask((CyNetworkReader) loadOBOTask, serviceRegistrar, ontologyDagName);
    final GeneAssociationReader gaReader = new GeneAssociationReader(ontologyDagName, gaStream, gaTableName, serviceRegistrar);
    final MapGeneAssociationTask mapAnnotationTask = new MapGeneAssociationTask(gaReader, serviceRegistrar);
    final TaskIterator taskChain = new TaskIterator(loadOBOTask, registerOntologyTask, gaReader, mapAnnotationTask);
    insertTasksAfterCurrentTask(taskChain);
}
Also used : TaskIterator(org.cytoscape.work.TaskIterator) CyNetworkReader(org.cytoscape.io.read.CyNetworkReader) GeneAssociationReader(org.cytoscape.tableimport.internal.reader.ontology.GeneAssociationReader)

Aggregations

CyNetworkReader (org.cytoscape.io.read.CyNetworkReader)1 GeneAssociationReader (org.cytoscape.tableimport.internal.reader.ontology.GeneAssociationReader)1 TaskIterator (org.cytoscape.work.TaskIterator)1