Class EoulsanTranslatorUtils
java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.EoulsanTranslatorUtils
This class define Kenetre translator utility glue methods for Eoulsan.
- Since:
- 2.6
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataFilegetLinksFileFromSettings(Settings settings) Get the links file from the settings.static fr.ens.biologie.genomique.kenetre.translator.TranslatorloadTranslator(DataFile linksFile) Create a translator annotation from a link file.static fr.ens.biologie.genomique.kenetre.translator.TranslatorloadTranslator(DataFile annotationFile, DataFile linksFile) Create a translator annotation from an additional annotation file and a link file.
-
Method Details
-
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 uselinksFile- 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
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
-