Class GalaxyToolInterpreter
java.lang.Object
fr.ens.biologie.genomique.eoulsan.galaxytools.GalaxyToolInterpreter
This class create an interpreter to tool xml file from Galaxy.
- Since:
- 2.0
- Author:
- Sandrine Perrin
-
Constructor Summary
ConstructorsConstructorDescriptionGalaxyToolInterpreter(File file) Public constructor.GalaxyToolInterpreter(InputStream in, String toolSource) Public constructor.GalaxyToolInterpreter(Path file) Public constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidParse tool file to extract useful data to run tool.execute(TaskContext context) Convert command tag from tool file in string, variable are replace by value.Gets the in data format expected associated with variable found in command line.Gets the inputs.Gets the out data format expected associated with variable found in command line.Gets the outputs.Gets the tool information.static StringremoveNamespace(String variableName) Remove the namespace from the name of a variable.toString()
-
Constructor Details
-
GalaxyToolInterpreter
Public constructor.- Parameters:
file- the Galaxy tool file- Throws:
EoulsanException- the Eoulsan exceptionIOException- if the file cannot be load
-
GalaxyToolInterpreter
Public constructor.- Parameters:
file- the Galaxy tool file- Throws:
EoulsanException- the Eoulsan exceptionIOException- if the file cannot be load
-
GalaxyToolInterpreter
Public constructor.- Parameters:
in- the input streamtoolSource- tool source- Throws:
EoulsanException- the Eoulsan exception
-
-
Method Details
-
configure
Parse tool file to extract useful data to run tool.- Parameters:
parameters- the set step parameters- Throws:
EoulsanException- if an data missing
-
execute
Convert command tag from tool file in string, variable are replace by value.- Parameters:
context- the context- Returns:
- the string
- Throws:
EoulsanException- the Eoulsan exception
-
getInputs
Gets the inputs.- Returns:
- the inputs
-
getOutputs
Gets the outputs.- Returns:
- the outputs
-
getInputDataElements
Gets the in data format expected associated with variable found in command line.- Returns:
- the in data format expected
-
getOutputDataElements
Gets the out data format expected associated with variable found in command line.- Returns:
- the out data format expected
-
getToolInfo
Gets the tool information.- Returns:
- the tool information
-
toString
-
removeNamespace
Remove the namespace from the name of a variable.- Parameters:
variableName- variable name- Returns:
- the variable name without the namespace
-