Class AndromedaProcessBuilder
java.lang.Object
eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
eu.isas.searchgui.processbuilders.AndromedaProcessBuilder
- All Implemented Interfaces:
Runnable
ProcessBuilder for the Andromeda search engine.
- Author:
- Marc Vaudel, Harald Barsnes
-
Field Summary
FieldsFields inherited from class eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
exceptionHandler, waitingHandler -
Constructor Summary
ConstructorsConstructorDescriptionAndromedaProcessBuilder(File andromedaFolder, File andromedaTempFolder, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, File searchParametersFile, File spectrumFile, File fastaFile, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler, int nThreads) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateDatabaseFile(File andromedaFolder, File andromedaTempFolder, File fastaFile) Creates the database configuration file.static voidcreateEnzymesFile(File andromedaFolder) Creates the enzyme configuration file.static FilecreateGenericFastaFile(File andromedaTempFolder, File originalFastaFile, com.compomics.util.waiting.WaitingHandler waitingHandler) Create the FASTA file.static voidcreatePtmFile(File andromedaFolder, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File identificationParametersFile) Creates the Andromeda PTM file and saves the PTM indexes in the search parameters.Returns the file name of the currently processed file.getType()Returns the type of the process.Methods inherited from class eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
endProcess, run, startProcess
-
Field Details
-
EXECUTABLE_FILE_NAME
The name of the Andromeda executable.- See Also:
-
-
Constructor Details
-
AndromedaProcessBuilder
public AndromedaProcessBuilder(File andromedaFolder, File andromedaTempFolder, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, File searchParametersFile, File spectrumFile, File fastaFile, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler, int nThreads) throws IOException Constructor.- Parameters:
andromedaFolder- the Andromeda folderandromedaTempFolder- the temp folder for AndromedasearchParameters- the search parameterssearchParametersFile- the file where to save the search parametersspectrumFile- the spectrum filefastaFile- the FASTA filewaitingHandler- the waiting handlerexceptionHandler- the handler of exceptionsnThreads- the number of threads- Throws:
IOException- thrown whenever an error occurred while reading or writing a file.
-
-
Method Details
-
createGenericFastaFile
public static File createGenericFastaFile(File andromedaTempFolder, File originalFastaFile, com.compomics.util.waiting.WaitingHandler waitingHandler) throws IOException Create the FASTA file.- Parameters:
andromedaTempFolder- the Andromeda temp folderoriginalFastaFile- the original FASTA filewaitingHandler- the waiting handler- Returns:
- the parameters file
- Throws:
IOException- exception thrown whenever an error occurred while reading or writing a file
-
createDatabaseFile
public static void createDatabaseFile(File andromedaFolder, File andromedaTempFolder, File fastaFile) throws IOException Creates the database configuration file.- Parameters:
andromedaFolder- the Andromeda installation folderandromedaTempFolder- the Andromeda temp folderfastaFile- the FASTA file- Throws:
IOException- exception thrown whenever an error occurred while writing the database configuration file.
-
createEnzymesFile
Creates the enzyme configuration file.- Parameters:
andromedaFolder- the Andromeda installation folder- Throws:
IOException- exception thrown whenever an error occurred while writing the file.
-
createPtmFile
public static void createPtmFile(File andromedaFolder, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File identificationParametersFile) throws IOException, ClassNotFoundException Creates the Andromeda PTM file and saves the PTM indexes in the search parameters.- Parameters:
andromedaFolder- the Andromeda installation folderidentificationParameters- the identification parametersidentificationParametersFile- the file where to save the search parameters- Throws:
IOException- exception thrown whenever an error occurs while writing to the file.ClassNotFoundException- exception thrown whenever an error occurred while saving the search parameters
-
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
-