Class MakeblastdbProcessBuilder
java.lang.Object
eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
eu.isas.searchgui.processbuilders.MakeblastdbProcessBuilder
- All Implemented Interfaces:
Runnable
This class takes care of starting the Makeblastdb Process. Mandatory when
using OMSSA.
- Author:
- Ravi Tharakan, Lennart Martens, Marc Vaudel, Harald Barsnes
-
Field Summary
FieldsFields inherited from class eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
exceptionHandler, waitingHandler -
Constructor Summary
ConstructorsConstructorDescriptionMakeblastdbProcessBuilder(String pathToJarFile, File aDatabaseFile, File makeblastdbLocation, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidCancels the process.Returns the file name of the currently processed file.static StringReturns the folder containing the makeblastdb script.getType()Returns the type of the process.booleanChecks if makeblastdb has already been run on this file.voidStarts the process of a process builder, gets the input stream from the process and shows it in a JTextArea.Methods inherited from class eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
run
-
Field Details
-
EXECUTABLE_FILE_NAME
The name of the makeblastdb executable.- See Also:
-
-
Constructor Details
-
MakeblastdbProcessBuilder
public MakeblastdbProcessBuilder(String pathToJarFile, File aDatabaseFile, File makeblastdbLocation, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor.- Parameters:
pathToJarFile- the path to the jar fileaDatabaseFile- File with the DB file to be formattedmakeblastdbLocation- the location of makeblastdbwaitingHandler- the waiting handlerexceptionHandler- the handler of exceptions
-
-
Method Details
-
getMakeblastdbFolder
Returns the folder containing the makeblastdb script. Depends on the operation system.- Returns:
- the folder containing the makeblastdb script
-
needsFormatting
public boolean needsFormatting()Checks if makeblastdb has already been run on this file.- Returns:
- boolean returns true if makeblastdb has been run
-
startProcess
Starts the process of a process builder, gets the input stream from the process and shows it in a JTextArea. Does not close until the process is completed.- Overrides:
startProcessin classSearchGUIProcessBuilder- Throws:
IOException- Exception thrown whenever an error occurred while reading the progress stream
-
endProcess
public void endProcess()Cancels the process.- Overrides:
endProcessin classSearchGUIProcessBuilder
-
getType
Description copied from class:SearchGUIProcessBuilderReturns the type of the process.- Specified by:
getTypein classSearchGUIProcessBuilder- Returns:
- the type of the process
-
getCurrentlyProcessedFileName
Description copied from class:SearchGUIProcessBuilderReturns the file name of the currently processed file.- Specified by:
getCurrentlyProcessedFileNamein classSearchGUIProcessBuilder- Returns:
- the file name of the currently processed file
-