Class ContextGenerator


  • public class ContextGenerator
    extends Object
    • Constructor Detail

      • ContextGenerator

        public ContextGenerator​(String resourcesDir,
                                String db)
                         throws FileNotFoundException,
                                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:
        FileNotFoundException
        IOException
    • Method Detail

      • getContext

        public String getContext​(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