Skip to content

Commit

Permalink
Use PRO mapping from within jar. Output in turtle format by default t…
Browse files Browse the repository at this point in the history
…o avoid stack overflow in RDF-XML output.
  • Loading branch information
balhoff committed Jun 17, 2021
1 parent fdbb207 commit 7c5f9e9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public static void main(String[] args) throws OWLOntologyCreationException, IOEx

public OWLOntology buildReacto(String input_biopax, String outfilename, OWLOntology tbox, boolean add_imports, OWLOntology chebi_in) throws OWLOntologyCreationException, IOException, OWLOntologyStorageException, RepositoryException, RDFParseException, RDFHandlerException {

String outputformat = "RDFXML";
String outputformat = "TURTLE";
String base_ont_title = "Reactome Entity Ontology (REACTO)";
String base_extra_info = "https://reactome.org/content/detail/";
String base_short_namespace = "Reactome";
Expand Down Expand Up @@ -1053,9 +1053,9 @@ public void countPhysical(Model biopax_model) throws IOException {
int n_drug = 0;
int n_sets_of_complexes = 0; int n_sets_of_sets = 0;
Set<String> set_types = new HashSet<String>();
String mapping = "./target/classes/REACTO/promapping.txt";
Map<String, Set<String>> exact_map = PRO.readReact2PRO(mapping, "exact");
Map<String, Set<String>> any_map = PRO.readReact2PRO(mapping, "is_a");
//String mapping = "./target/classes/REACTO/promapping.txt";
Map<String, Set<String>> exact_map = PRO.readReact2PRO(null, "exact");
Map<String, Set<String>> any_map = PRO.readReact2PRO(null, "is_a");
Map<String, String> physical_ref = new HashMap<String, String>();
any_map.putAll(exact_map);
boolean isa_set = false;
Expand Down

0 comments on commit 7c5f9e9

Please sign in to comment.