Class CheetahInterpreter
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.galaxytools.CheetahInterpreter
-
public class CheetahInterpreter extends Object
This class create a Cheetah interpreter, it can build a command line tool from command tag from Galaxy tool XML file.- Since:
- 2.0
- Author:
- Sandrine Perrin
-
-
Field Summary
Fields Modifier and Type Field Description static String
CALL_METHOD
The Constant CALL_METHOD.static String
PYTHON_VARIABLES_DICT_NAME
The Constant INSTANCE_NAME.static String
VAR_CMD_NAME
The Constant VAR_CMD_NAME.
-
Constructor Summary
Constructors Constructor Description CheetahInterpreter(String cheetahScript, Map<String,String> variables)
Instantiates a new tool Cheetah script interpreter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute()
Execute script by Python interpreter and replace variable name by value.
-
-
-
Field Detail
-
VAR_CMD_NAME
public static final String VAR_CMD_NAME
The Constant VAR_CMD_NAME.- See Also:
- Constant Field Values
-
PYTHON_VARIABLES_DICT_NAME
public static final String PYTHON_VARIABLES_DICT_NAME
The Constant INSTANCE_NAME.- See Also:
- Constant Field Values
-
CALL_METHOD
public static final String CALL_METHOD
The Constant CALL_METHOD.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CheetahInterpreter
public CheetahInterpreter(String cheetahScript, Map<String,String> variables) throws EoulsanException
Instantiates a new tool Cheetah script interpreter.- Parameters:
cheetahScript
- the Cheetah script to executevariables
- the variables of the script- Throws:
EoulsanException
- if the constructor fails
-
-
Method Detail
-
execute
public String execute() throws EoulsanException
Execute script by Python interpreter and replace variable name by value.- Returns:
- final command line
- Throws:
EoulsanException
- if an error throws by interpretation.
-
-