Class ExternalTool
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.aozan3.dataprocessor.ExternalTool
-
public class ExternalTool extends Object
This class define a class for calling external tool in DataProcessors.- Since:
- 3.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getToolVersion(RunId runId, String tmpDirPath, List<String> commandLine, boolean parseStdErr, Function<List<String>,String> parser)
Get the tool executable version.fr.ens.biologie.genomique.kenetre.util.process.SimpleProcess
newSimpleProcess(RunId runId, boolean enableLogging)
Create a new process.
-
-
-
Method Detail
-
newSimpleProcess
public fr.ens.biologie.genomique.kenetre.util.process.SimpleProcess newSimpleProcess(RunId runId, boolean enableLogging) throws IOException
Create a new process.- Parameters:
runId
- run id for loggingenableLogging
- enable logging- Returns:
- a new SimpleProcess
- Throws:
IOException
- if an error occurs while creating the process
-
getToolVersion
public String getToolVersion(RunId runId, String tmpDirPath, List<String> commandLine, boolean parseStdErr, Function<List<String>,String> parser) throws IOException
Get the tool executable version.- Parameters:
runId
- the run IdparseStdErr
- parse stderr instead of stdout- Returns:
- a string with the tool version
- Throws:
IOException
- if an error occurs while getting tool version
-
-