http://www.geneontology.org/GO.java.obo.parser.shtml
He goes into some details about the writing some code, but isn't clear about which JAR files from the SVN source that are needed to get it working. Here I will provide the list of 3 JARs needed for a Java OBO parser:
For some sample code see below:
To import the OBO file, I plan writing my own implementation of OBOParser for better memory usage.
DefaultOBOParser parser = new DefaultOBOParser();
OBOParseEngine engine = new OBOParseEngine(parser);
String path = "C:/MPheno_OBO.ontology";
Collection paths = new LinkedList();
paths.add(path);
engine.setPaths(paths);
engine.parse();
Cheers,
Phil
No comments:
Post a Comment