From 4dbeb107965e468559dab5700c69d5f48f8ae125 Mon Sep 17 00:00:00 2001
From: patrick_flege <patrick.flege@wur.nl>
Date: Thu, 20 Feb 2025 14:50:47 +0100
Subject: [PATCH] Updated HTTP URL of onthology file to HTTPS

---
 .../construction/functions/add_functions/AddFunctions.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/nl/wur/bif/pantools/construction/functions/add_functions/AddFunctions.java b/src/main/java/nl/wur/bif/pantools/construction/functions/add_functions/AddFunctions.java
index f222ba996..c39f16ffa 100644
--- a/src/main/java/nl/wur/bif/pantools/construction/functions/add_functions/AddFunctions.java
+++ b/src/main/java/nl/wur/bif/pantools/construction/functions/add_functions/AddFunctions.java
@@ -318,7 +318,7 @@ public class AddFunctions {
                                    boolean tigrfamDatabaseExists) {
         if (!goDatabaseExists) {
             try {
-                downloadDatabase(functionalDatabasesPath, "go-basic.obo", "http://purl.obolibrary.org/obo/go/go-basic.obo");
+                downloadDatabase(functionalDatabasesPath, "go-basic.obo", "https://purl.obolibrary.org/obo/go/go-basic.obo");
             } catch (IOException e) {
                 Pantools.logger.error("Error while downloading GO database.");
             }
@@ -414,7 +414,7 @@ public class AddFunctions {
      * @param go_id_node_id
      */
     private void build_go_hierarchy(HashMap<String, Node> go_id_node_id, Path functionalDatabasesPath) {
-        Path goPath = functionalDatabasesPath.resolve("go-basic.obo");
+        Path goPath = functionalDatabasesPath.resolve("go-vi g.obo");
         if (!goPath.toFile().exists()) {
             Pantools.logger.debug("Could not find GO database at {}", goPath.toAbsolutePath());
             return;
-- 
GitLab