Class AnnotateDB

java.lang.Object
de.uni_halle.informatik.biodata.mp.db.adb.AnnotateDB

public class AnnotateDB extends Object
  • Constructor Details

    • AnnotateDB

      public AnnotateDB()
  • Method Details

    • init

      public static void init(DBParameters parameters)
    • init

      public static void init(String host, Integer port, String user, String passwd, String dbName)
    • getAnnotations

      public Set<String> getAnnotations(String type, String biggId) throws SQLException
      Retrieves a set of annotated URLs based on the type and BiGG ID provided. This method queries the database to find matching annotations and constructs URLs using the retrieved data.
      Parameters:
      type - The type of the BiGG ID, which can be either a metabolite or a reaction.
      biggId - The BiGG ID for which annotations are to be retrieved. The ID may be modified if it starts with specific prefixes or ends with an underscore.
      Returns:
      A sorted set of URLs that are annotations for the given BiGG ID. If the type is neither metabolite nor reaction, or if an SQL exception occurs, an empty set is returned.
      Throws:
      SQLException