Class VibeOptions
- java.lang.Object
-
- org.molgenis.vibe.cli.io.options_digestion.VibeOptions
-
public class VibeOptions extends Object
Abstract class to be used for options parsing. Includes some basic validations (such as whether input arguments refer to actual files).
-
-
Constructor Summary
Constructors Constructor Description VibeOptions()
-
Method Summary
-
-
-
Method Detail
-
getRunMode
public RunMode getRunMode()
-
isVerbose
public boolean isVerbose()
-
printVerbose
public void printVerbose(String text)
-
getHpoOntology
public Path getHpoOntology()
-
getVibeTdb
public Path getVibeTdb()
-
getPhenotypesRetrieverFactory
public PhenotypesRetrieverFactory getPhenotypesRetrieverFactory()
-
getOntologyMaxDistance
public Integer getOntologyMaxDistance()
-
getGenePrioritizedOutputFormatWriterFactory
public GenePrioritizedOutputFormatWriterFactory getGenePrioritizedOutputFormatWriterFactory()
-
getOutputWriter
public OutputWriter getOutputWriter()
-
setFileOutputWriter
protected void setFileOutputWriter(String outputFile) throws InvalidPathException, FileAlreadyExistsException
Wrapper forsetFileOutputWriter(Path).- Parameters:
outputFile- the file path to write the output to- Throws:
InvalidPathException- ifoutputFilecould not be converted toPathFileAlreadyExistsException- if file already exists
-
setFileOutputWriter
protected void setFileOutputWriter(Path outputFile) throws FileAlreadyExistsException
- Parameters:
outputFile- the file path to write the output to- Throws:
FileAlreadyExistsException- if file already exists
-
setFileOutputWriterForced
protected void setFileOutputWriterForced(String outputFile) throws InvalidPathException
Wrapper forsetFileOutputWriterForced(Path).- Parameters:
outputFile- the file path to write the output to- Throws:
InvalidPathException- ifoutputFilecould not be converted toPath
-
setFileOutputWriterForced
protected void setFileOutputWriterForced(Path outputFile)
Sets theOutputWriterto aFileOutputWriter. Overrides any previously setOutputWriter. If an existing file is given, it will be overwritten.- Parameters:
outputFile- the file path to write the output to- See Also:
FileOutputWriter.initialize()
-
setStdoutOutputWriter
protected void setStdoutOutputWriter()
-
validate
public boolean validate()
Checks whether the set variables adhere to the selectedRunMode. Can be used after processing of user input to validate if variables are set correctly (based on the specifiedRunMode).- Returns:
trueif available variables adhere toRunMode,falseif not
-
-