Class OmssaclProcessBuilder
java.lang.Object
eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
eu.isas.searchgui.processbuilders.OmssaclProcessBuilder
- All Implemented Interfaces:
Runnable
This class takes care of building the omssacl process.
- Author:
- Lennart Martens, Marc Vaudel, Harald Barsnes
-
Field Summary
FieldsFields inherited from class eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
exceptionHandler, waitingHandler -
Constructor Summary
ConstructorsConstructorDescriptionOmssaclProcessBuilder(File omssacl_directory, File aOmssaTempFolder, File mgfFile, File fastaFile, File outputFile, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler, Double refMass, int nThreads) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the file name of the currently processed file.intReturns the ion type.static StringgetOmssaUserModBloc(com.compomics.util.experiment.biology.modifications.Modification modification, int cpt, int omssaIndex) Returns an MSModSpec bloc as present in the OMSSA user modification files for a given PTM.getSearchedModificationsIds(ArrayList<String> modificationsNames, com.compomics.util.parameters.identification.tool_specific.OmssaParameters omssaParameters) Returns an array of OMSSA indexes corresponding to the list of given modification names.getType()Returns the type of the process.static voidwriteOmssaUserModificationsFile(File omssaFile, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File identificationParametersFile) Writes the OMSSA modification file corresponding to the PTMs loaded in the factory in the given file.Methods inherited from class eu.isas.searchgui.processbuilders.SearchGUIProcessBuilder
endProcess, run, startProcess
-
Field Details
-
EXECUTABLE_FILE_NAME
The name of the OMSSA executable.- See Also:
-
-
Constructor Details
-
OmssaclProcessBuilder
public OmssaclProcessBuilder(File omssacl_directory, File aOmssaTempFolder, File mgfFile, File fastaFile, File outputFile, com.compomics.util.parameters.identification.search.SearchParameters searchParameters, com.compomics.util.waiting.WaitingHandler waitingHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler, Double refMass, int nThreads) throws IOException, ClassNotFoundException Constructor.- Parameters:
omssacl_directory- directory location of omssacl.exeaOmssaTempFolder- the OMSSA temp foldermgfFile- the spectrum filefastaFile- the FASTA fileoutputFile- string location where to send omx/csv/pepxml formatted results filesearchParameters- the search parameterswaitingHandler- the waiting handlerexceptionHandler- the handler of exceptionsrefMass- the reference mass to convert the fragment ion tolerance from ppm to DaltonnThreads- the number of threads to use- Throws:
IOException- exception thrown whenever an error occurred while reading or writing a file.ClassNotFoundException- exception thrown whenever an error occurred while saving the search parameters
-
-
Method Details
-
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
-
getIonId
Returns the ion type. zdot is considered as z. adot, x-CO2 and adot-CO2 are ignored as long as nobody complains.- Parameters:
letter- ion letter- Returns:
- ion number
-
getSearchedModificationsIds
public ArrayList<Integer> getSearchedModificationsIds(ArrayList<String> modificationsNames, com.compomics.util.parameters.identification.tool_specific.OmssaParameters omssaParameters) Returns an array of OMSSA indexes corresponding to the list of given modification names.- Parameters:
modificationsNames- the modification namesomssaParameters- the OMSSA parameters- Returns:
- the corresponding list of OMSSA modification indexes
-
writeOmssaUserModificationsFile
public static void writeOmssaUserModificationsFile(File omssaFile, com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File identificationParametersFile) throws IOException, ClassNotFoundException Writes the OMSSA modification file corresponding to the PTMs loaded in the factory in the given file. Stores the PTM indexes in the OMSSA specific parameters.- Parameters:
omssaFile- the file where to write the OMSSA modification filesidentificationParameters- the identification parametersidentificationParametersFile- the file where to save the identification parameters- Throws:
IOException- exception thrown whenever an error occurred while writing the fileClassNotFoundException- exception thrown whenever an error occurred while saving the search parameters
-
getOmssaUserModBloc
public static String getOmssaUserModBloc(com.compomics.util.experiment.biology.modifications.Modification modification, int cpt, int omssaIndex) Returns an MSModSpec bloc as present in the OMSSA user modification files for a given PTM. Only the amino acids targeted by the pattern of the modification will be considered.- Parameters:
modification- the modificationcpt- the index of this modification in the listomssaIndex- the OMSSA index of this modification- Returns:
- a string containing the XML bloc
-