Class AbstractRExecutor
java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.r.AbstractRExecutor
- All Implemented Interfaces:
RExecutor
- Direct Known Subclasses:
ProcessRExecutor,RserveRExecutor
This class define an abstract RExecutor.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionvoidClose the connection.voidexecuteRScript(String rScript, boolean sweave, String sweaveOutput, boolean saveRscript, String description, DataFile workflowOutputDir, String... scriptArguments) Execute a R script.voidexecuteRScript(String code, String description, DataFile workflowOutputDir) Execute a R script.voidGet the output files of the analysisvoidOpen the connection.voidputInputFile(DataFile inputFile) Put a file for the analysis.voidputInputFile(DataFile inputFile, String outputFilename) Put a file.voidRemove input files.
-
Method Details
-
openConnection
Description copied from interface:RExecutorOpen the connection.- Specified by:
openConnectionin interfaceRExecutor- Throws:
IOException- if an error occurs while opening the connection
-
closeConnection
Description copied from interface:RExecutorClose the connection.- Specified by:
closeConnectionin interfaceRExecutor- Throws:
IOException- if an error occurs while closing the connection
-
getOutputFiles
Description copied from interface:RExecutorGet the output files of the analysis- Specified by:
getOutputFilesin interfaceRExecutor- Throws:
IOException- if an error occurs while getting the output files
-
putInputFile
Description copied from interface:RExecutorPut a file for the analysis.- Specified by:
putInputFilein interfaceRExecutor- Parameters:
inputFile- the input file- Throws:
IOException- if an error occurs while putting the file
-
putInputFile
Description copied from interface:RExecutorPut a file.- Specified by:
putInputFilein interfaceRExecutor- Parameters:
inputFile- the file to putoutputFilename- the output filename- Throws:
IOException- if an exception occurs while putting a file
-
removeInputFiles
Description copied from interface:RExecutorRemove input files.- Specified by:
removeInputFilesin interfaceRExecutor- Throws:
IOException- if an error occurs while removing the files
-
executeRScript
public void executeRScript(String rScript, boolean sweave, String sweaveOutput, boolean saveRscript, String description, DataFile workflowOutputDir, String... scriptArguments) throws IOException Description copied from interface:RExecutorExecute a R script.- Specified by:
executeRScriptin interfaceRExecutor- Parameters:
rScript- the source of the script to executesweave- true if the script is a Sweave scriptsweaveOutput- Sweave output filesaveRscript- true to keep the R scriptdescription- description of the R scriptworkflowOutputDir- workflow output directoryscriptArguments- script arguments- Throws:
IOException- if an error occurs while executing the script
-
executeRScript
public void executeRScript(String code, String description, DataFile workflowOutputDir) throws IOException Description copied from interface:RExecutorExecute a R script.- Specified by:
executeRScriptin interfaceRExecutor- Parameters:
code- code to executedescription- description of the R scriptworkflowOutputDir- workflow output directory- Throws:
IOException- if an error occurs while executing the script
-