org.monarchinitiative.phenol.io.obo.uberpheno.UberphenoOboParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of phenol-io Show documentation
Show all versions of phenol-io Show documentation
phenol-io contains the generic I/O functionality for ontologies
//package org.monarchinitiative.phenol.io.obo.uberpheno;
//
//import org.monarchinitiative.phenol.io.obo.OboOntologyLoader;
//import org.monarchinitiative.phenol.ontology.data.Ontology;
//
//import java.io.File;
//import java.util.Optional;
//
//public class UberphenoOboParser {
//
// private final File oboFile;
//
// private final boolean debug;
//
// public UberphenoOboParser(File oboFile, boolean debug) {
// this.oboFile = oboFile;
// this.debug = debug;
// }
// public UberphenoOboParser(File oboFile) {
// this(oboFile,false);
// }
//
// public Ontology parse() {
// Ontology ontology;
// final OboOntologyLoader loader = new OboOntologyLoader(oboFile);
// Optional optOnto = loader.load();
// if (! optOnto.isPresent()) {
// System.err.println("[ERROR] Failed to load ontology");
// return null; // TODO return optional.
// } else {
// ontology = optOnto.get();
// }
// if (debug) {
// System.err.println(String.format("Parsed a total of %d MP terms",ontology.countAllTerms()));
// }
// return ontology;
// }
//
//}