Class EoulsanTranslatorUtils


  • public class EoulsanTranslatorUtils
    extends Object
    This class define Kenetre translator utility glue methods for Eoulsan.
    Since:
    2.6
    Author:
    Laurent Jourdren
    • Method Detail

      • loadTranslator

        public static fr.ens.biologie.genomique.kenetre.translator.Translator loadTranslator​(DataFile annotationFile,
                                                                                             DataFile linksFile)
                                                                                      throws IOException
        Create a translator annotation from an additional annotation file and a link file.
        Parameters:
        annotationFile - the annotation file to use
        linksFile - the additional annotation hypertext links file
        Returns:
        a Translator object with the additional annotation
        Throws:
        IOException - if an error occurs while reading additional annotation
      • loadTranslator

        public static fr.ens.biologie.genomique.kenetre.translator.Translator loadTranslator​(DataFile linksFile)
                                                                                      throws IOException
        Create a translator annotation from a link file.
        Parameters:
        linksFile - the additional annotation hypertext links file
        Returns:
        a Translator object with the additional annotation
        Throws:
        IOException - if an error occurs while reading additional annotation
      • getLinksFileFromSettings

        public static DataFile getLinksFileFromSettings​(Settings settings)
        Get the links file from the settings.
        Parameters:
        settings - the settings object
        Returns:
        a DataFile with the path to the link file or null if the link file has not been defined in the settings