use of org.graphstream.graph.implementations.DefaultGraph in project mzmine2 by mzmine.
the class GNPSResultsImportTask method run.
/**
* @see java.lang.Runnable#run()
*/
@Override
public void run() {
setStatus(TaskStatus.PROCESSING);
logger.info("Importing GNPS results for " + peakList);
// remove zero ids from edges to prevent exception
removeZeroIDFromEdge(file);
Graph graph = new DefaultGraph("GNPS");
if (importGraphData(graph, file)) {
// import library matches from nodes
importLibraryMatches(graph);
// Add task description to peakList
((SimplePeakList) peakList).addDescriptionOfAppliedTask(new SimplePeakListAppliedMethod("Identification of complexes", parameters));
// Repaint the window to reflect the change in the feature list
Desktop desktop = MZmineCore.getDesktop();
if (!(desktop instanceof HeadLessDesktop))
desktop.getMainWindow().repaint();
setStatus(TaskStatus.FINISHED);
logger.info("Finished import of GNPS results for " + peakList);
}
}
Aggregations