Class ContextGenerator


  • public class ContextGenerator
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ContextGenerator​(java.lang.String resourcesDir, java.lang.String db)
      constructor which creates semantic context index in the specified directory on the disk file paths are hard-coded due to size issues
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContext​(java.lang.String id)
      Builds the semantic context for a given Gene ID
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContextGenerator

        public ContextGenerator​(java.lang.String resourcesDir,
                                java.lang.String db)
                         throws java.io.FileNotFoundException,
                                java.io.IOException
        constructor which creates semantic context index in the specified directory on the disk file paths are hard-coded due to size issues
        Parameters:
        resourcesDir - path to resources directory
        db - type of id (i.e. either "gene" or "protein")
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
    • Method Detail

      • getContext

        public java.lang.String getContext​(java.lang.String id)
        Builds the semantic context for a given Gene ID
        Parameters:
        id - - the gene id for which the semantic context is to be returned
        Returns:
        the semantic context