Package eu.isas.searchgui
Class SearchHandler
java.lang.Object
eu.isas.searchgui.SearchHandler
This class represents the search command line interface.
- Author:
- Marc Vaudel, Lennart Martens, Harald Barsnes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of SearchGUI's Conda package.static final StringThe name of the folder where to save the spectrum and FASTA files.static final StringDefault file name ending for a SearchGUI output.static final StringFolder where the output is stored before packaging.static final StringDefault SearchGUI configurations. -
Constructor Summary
ConstructorsConstructorDescriptionEmpty default constructor.SearchHandler(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File resultsFolder, File configFolder, String defaultOutputFileName, ArrayList<File> msFiles, File fastaFile, ArrayList<File> rawFiles, File identificationParametersFile, boolean runOmssa, boolean runXTandem, boolean runMsgf, boolean runMsAmanda, boolean runMyriMatch, boolean runComet, boolean runTide, boolean runAndromeda, boolean runMetaMorpheus, boolean runSage, boolean runNovor, boolean runDirecTag, File omssaFolder, File xTandemFolder, File msgfFolder, File msAmandaFolder, File myriMatchFolder, File cometFolder, File tideFolder, File tideIndexLocation, File andromedaFolder, File metaMorpheusFolder, File sageFolder, File novorFolder, File direcTagFolder, File makeblastdbFolder, com.compomics.util.parameters.tools.ProcessingParameters processingParameters) Constructor for the SearchGUI command line interface.If the search engines folders are set to null the default search engine locations are used.SearchHandler(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File resultsFolder, File configFolder, ArrayList<File> msFiles, File fastaFile, ArrayList<File> rawFiles, File identificationParametersFile, com.compomics.util.parameters.tools.ProcessingParameters processingParameters, com.compomics.util.experiment.io.mass_spectrometry.MsFileHandler msFileHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor for the SearchGUI command line interface.Uses the configuration file searchGUI_configuration.txt to get the default search engine locations and which search engines that are enabled.Mainly for use via the graphical UI. -
Method Summary
Modifier and TypeMethodDescriptionvoidCancel the search.static StringgetAndromedaFileName(String spectrumFileName) Returns the name of the Andromeda result file.Returns the Andromeda location.getCmsFile(String fileName) Returns the cms file with the given name.Returns the list of cms files.getCometFileName(String spectrumFileName) Returns the name of the Comet result file.static StringgetCometFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.CometParameters cometParameters) Returns the name of the Comet result file.Returns the Comet location.static FileReturns the folder where the configuration files are stored.static FilegetDefaultOutputFile(File outputFolder, boolean includeDate) Returns the default output file produced by SearchGUI.static FilegetDefaultOutputFile(File outputFolder, String classifier, boolean includeDate) Returns the default output file produced by SearchGUI classified according to a classifier.static StringReturns the default output file name.static StringgetDirecTagFileName(String spectrumFileName) Returns the name of the DirecTag result file.Returns the DirecTag location.Returns the experiment label.Returns the FASTA file.static FilegetInputFile(File outputFolder) Returns the file where the paths to the spectrum and FASTA files are saved.static StringReturns the path to the jar file.Returns the makeblastdb location.Returns the Mascot files.static StringgetMetaMorpheusFileName(String spectrumFileName) Returns the name of the MetaMorpheus result file.Returns the MetaMorpheus location.getMsAmandaFileName(String spectrumFileName) Returns the name of the MS Amanda result file.static StringgetMsAmandaFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.MsAmandaParameters msAmandaParameters) Returns the name of the MS Amanda result file.Returns the MS Amanda location.com.compomics.util.experiment.mass_spectrometry.proteowizard.MsConvertParametersReturns the msconvert parameters.static StringgetMsgfFileName(String spectrumFileName) Returns the name of the MS-GF+ result file.Returns the MS-GF+ location.getMyriMatchFileName(String spectrumFileName) Returns the name of the MyriMatch result file.static StringgetMyriMatchFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.MyriMatchParameters myriMatchParameters) Returns the name of the MyriMatch result file.Returns the MyriMatch location.static StringgetNovorFileName(String spectrumFileName) Returns the name of the Novor result file.Returns the Novor location.getOMSSAFileName(String spectrumFileName) Returns the name of the OMSSA result file.static StringgetOMSSAFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.OmssaParameters omssaParameters) Returns the name of the OMSSA result file.Returns the OMSSA location.static StringReturns the date as a string to be included in the output.getPeakListFolder(File configFolder) Returns the folder to use to store peak lists.Returns the PeptideShaker file.com.compomics.util.parameters.tools.ProcessingParametersReturns the processing preferences.Returns the list of raw files.Returns the results folder.static StringgetSageFileName(String spectrumFileName) Returns the name of the Sage result file.Returns the Sage location.getSpectrumFile(String fileName) Returns the spectrum file with the given name.Returns the list of mass spectrometry files.static StringgetTempFolderPath(File configFolder) Returns the folder to use for temporary files.static StringgetTempSearchEngineFolderPath(File configFolder) Returns the folder to use for temporary search engine files.com.compomics.util.experiment.mass_spectrometry.thermo_raw_file_parser.ThermoRawFileParserParametersReturns the ThermoRawFileParser parameters.getTideFileName(String spectrumFileName) Returns the name of the Tide result file.static StringgetTideFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.TideParameters tideParameters) Returns the name of the Tide result file.Returns the Tide location.static StringgetXTandemFileName(String spectrumFileName) Returns the name of the X!Tandem result file if renamed.getXTandemFiles(File folder, String spectrumFileName) Lists all the files which can be X!Tandem output for this spectrum file in the given folder.Returns the X!Tandem location.booleanReturns true if Andromeda is to be used.booleanReturns true if Comet is to be used.booleanReturns true if DirecTag is to be used.booleanReturns true if MetaMorpheus is to be used.booleanReturns true if MS Amanda is to be used.booleanReturns true if MS-GF+ is to be used.booleanReturns true if MyriMatch is to be used.booleanReturns true if Novor is to be used.booleanReturns true if OMSSA is to be used.booleanReturns a boolean indicating whether PeptideShaker was enabled.booleanReturns a boolean indicating whether Reporter was enabled.booleanReturns true if Sage is to be used.booleanReturns true if Tide is to be used.booleanReturns true if X!Tandem is to be used.static StringloadModifications(com.compomics.util.parameters.identification.search.SearchParameters searchParameters) Verifies that the modifications backed-up in the search parameters are loaded and returns an error message if one was already loaded, null otherwise.voidorganizeOutput(File outputFolder, File tempOutputFolder, HashMap<String, HashMap<Integer, File>> identificationFilesMap, File parametersFile, boolean includeDate) Organizes the identification files in zip files according to the output option of the search handler.voidsaveInputFile(File folder) Save the input file.voidsetAndromedaEnabled(boolean runAndromeda) Set if Andromeda is to be used.voidsetAndromedaLocation(File andromedaLocation) Set the Andromeda location.static voidsetCloseProcessWhenDone(boolean aCloseProcessWhenDone) Set whether the process should be closed when completing or crashing.voidsetCmsFiles(ArrayList<File> cmsFiles) Sets the list of cms files.voidsetCometEnabled(boolean runComet) Set if Comet is to be used.voidsetCometLocation(File cometLocation) Set the Comet location.static voidsetDefaultOutputFileName(String newOutputFileName) Sets the default output file name.voidsetDirecTagEnabled(boolean runDirecTag) Set if DirecTag is to be used.voidsetDirecTagLocation(File direcTagLocation) Set the DirecTag location.voidsetExperimentLabel(String experimentLabel) Sets the the experiment label.voidsetFastaFile(File fastaFile) Set the FASTA file.voidsetIdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters) Set the identification parameters.voidsetIdentificationParametersFile(File identificationParametersFile) Set the identification parameters file.voidsetLogFolder(File logFolder) Sets the log folder.voidsetMakeblastdbLocation(File makeblastdbLocation) Set the makeblastdb location.voidsetMascotFiles(ArrayList<File> mascotFiles) Sets the mascot files.voidsetMetaMorpheusEnabled(boolean runMetaMorpheus) Set if MetaMorpheus is to be used.voidsetMetaMorpheusLocation(File metaMorpheusLocation) Set the MetaMorpheus location.voidsetMsAmandaEnabled(boolean runMsAmanda) Set if MS Amanda is to be used.voidsetMsAmandaLocation(File msAmandaLocation) Set the MS Amanda location.voidsetMsConvertParameters(com.compomics.util.experiment.mass_spectrometry.proteowizard.MsConvertParameters msConvertParameters) Sets the msconvert parameters.voidsetMsgfEnabled(boolean runMsgf) Set if MS-GF+ is to be used.voidsetMsgfLocation(File msgfLocation) Set the MS-GF+ location.voidsetMyriMatchEnabled(boolean runMyriMatch) Set if MyriMatch is to be used.voidsetMyriMatchLocation(File myriMatchLocation) Set the MyriMatch location.voidsetNovorEnabled(boolean runNovor) Set if Novor is to be used.voidsetNovorLocation(File novorLocation) Set the Novor location.voidsetOmssaEnabled(boolean runOmssa) Set if OMSSA is to be used.voidsetOmssaLocation(File omssaLocation) Set the OMSSA location.voidsetOutputTimeStamp(String outputTimeStamp) Set the current output time stamp.voidsetPeptideShakerEnabled(boolean runPeptideShaker) Set if PeptideShaker is to be run or not.voidsetPeptideShakerFile(File peptideShakerFile) Sets the PeptideShaker file.voidsetProcessingParameters(com.compomics.util.parameters.tools.ProcessingParameters processingParameters) Set the processing preferences.voidsetRawFiles(ArrayList<File> rawFiles) Sets the list of raw files.voidsetResultsFolder(File resultsFolder) Set the results folder.voidsetSageEnabled(boolean runSage) Set if Sage is to be used.voidsetSageLocation(File sageLocation) Set the Sage location.voidsetSpectrumFiles(ArrayList<File> msFiles) Sets the list of mass spectrometry files.static voidsetTempFolderPath(String tempFolderPath) Sets the folder to use for temporary files.static voidsetTempSearchEngineFolderPath(String tempSearchEngineFolderPath) Sets the folder to use for temporary search engine files.voidsetThermoRawFileParserParameters(com.compomics.util.experiment.mass_spectrometry.thermo_raw_file_parser.ThermoRawFileParserParameters thermoRawFileParserParameters) Sets the ThermoRawFileParser parameters.voidsetTideEnabled(boolean runTide) Set if Tide is to be used.voidsetTideLocation(File tideLocation) Set the Tide location.voidsetXtandemEnabled(boolean runXtandem) Set if X!Tandem is to be used.voidsetXtandemLocation(File xtandemLocation) Set the X!Tandem location.voidstartSearch(com.compomics.util.waiting.WaitingHandler waitingHandler) Start the search.
-
Field Details
-
SEARCHGUI_CONFIGURATION_FILE
Default SearchGUI configurations.- See Also:
-
OUTPUT_TEMP_FOLDER_NAME
Folder where the output is stored before packaging.- See Also:
-
DEFAULT_OUTPUT_FILE_NAME_ENDING
Default file name ending for a SearchGUI output.- See Also:
-
DEFAULT_DATA_FOLDER
The name of the folder where to save the spectrum and FASTA files.- See Also:
-
CONDA_APP_NAME
Name of SearchGUI's Conda package.- See Also:
-
-
Constructor Details
-
SearchHandler
public SearchHandler()Empty default constructor. -
SearchHandler
public SearchHandler(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File resultsFolder, File configFolder, ArrayList<File> msFiles, File fastaFile, ArrayList<File> rawFiles, File identificationParametersFile, com.compomics.util.parameters.tools.ProcessingParameters processingParameters, com.compomics.util.experiment.io.mass_spectrometry.MsFileHandler msFileHandler, com.compomics.util.exceptions.ExceptionHandler exceptionHandler) Constructor for the SearchGUI command line interface.Uses the configuration file searchGUI_configuration.txt to get the default search engine locations and which search engines that are enabled.Mainly for use via the graphical UI.- Parameters:
identificationParameters- the identification parametersresultsFolder- the results folderconfigFolder- the config folder (can be null)msFiles- list of mass spectrometry filesfastaFile- the FASTA filerawFiles- list of raw filesidentificationParametersFile- the identification parameters fileprocessingParameters- the processing parametersmsFileHandler- the mass spectrometry file handlerexceptionHandler- a handler for exceptions
-
SearchHandler
public SearchHandler(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters, File resultsFolder, File configFolder, String defaultOutputFileName, ArrayList<File> msFiles, File fastaFile, ArrayList<File> rawFiles, File identificationParametersFile, boolean runOmssa, boolean runXTandem, boolean runMsgf, boolean runMsAmanda, boolean runMyriMatch, boolean runComet, boolean runTide, boolean runAndromeda, boolean runMetaMorpheus, boolean runSage, boolean runNovor, boolean runDirecTag, File omssaFolder, File xTandemFolder, File msgfFolder, File msAmandaFolder, File myriMatchFolder, File cometFolder, File tideFolder, File tideIndexLocation, File andromedaFolder, File metaMorpheusFolder, File sageFolder, File novorFolder, File direcTagFolder, File makeblastdbFolder, com.compomics.util.parameters.tools.ProcessingParameters processingParameters) Constructor for the SearchGUI command line interface.If the search engines folders are set to null the default search engine locations are used.- Parameters:
identificationParameters- the identification parametersresultsFolder- the results folderconfigFolder- the config folder (can be null)defaultOutputFileName- the default output file namemsFiles- list of mass spectrometry filesfastaFile- the FASTA filerawFiles- list of raw filesidentificationParametersFile- the search parameters filerunOmssa- if true, the OMSSA search is enabledrunXTandem- if true, the XTandem search is enabledrunMsgf- if true, the MS-GF+ search is enabledrunMsAmanda- if true, the MS Amanda search is enabledrunMyriMatch- if true, the MyriMatch search is enabledrunComet- if true, the Comet search is enabledrunTide- if true, the Tide search is enabledrunAndromeda- if true, the Andromeda search is enabledrunMetaMorpheus- if true, the MetaMorpheus search is enabledrunSage- if true, the Sage search is enabledrunNovor- if true, the Novor search is enabledrunDirecTag- if true, the DirecTag search is enabledomssaFolder- the folder where OMSSA is installed, if null the default location is usedxTandemFolder- the folder where X!Tandem is installed, if null the default location is usedmsgfFolder- the folder where MS-GF+ is installed, if null the default location is usedmsAmandaFolder- the folder where MS Amanda is installed, if null the default location is usedmyriMatchFolder- the folder where MyriMatch is installed, if null the default location is usedcometFolder- the folder where Comet is installed, if null the default location is usedtideFolder- the folder where Tide is installed, if null the default location is usedtideIndexLocation- the folder where the tide index is to be savedandromedaFolder- the folder where Andromeda is installed, if null the default location is usedmetaMorpheusFolder- the folder where MetaMorpheus is installed, if null the default location is usedsageFolder- the folder where Sage is installed, if null the default location is usednovorFolder- the folder where Novor is installed, if null the default location is useddirecTagFolder- the folder where DirecTag is installed, if null the default location is usedmakeblastdbFolder- the folder where makeblastdb is installed, if null the default location is usedprocessingParameters- the processing preferences
-
-
Method Details
-
startSearch
public void startSearch(com.compomics.util.waiting.WaitingHandler waitingHandler) throws InterruptedException Start the search.- Parameters:
waitingHandler- the waiting handler- Throws:
InterruptedException- thrown if the process is interrupted
-
cancelSearch
public void cancelSearch()Cancel the search. -
getXTandemFileName
Returns the name of the X!Tandem result file if renamed.- Parameters:
spectrumFileName- the name of the spectrum file searched- Returns:
- the name of the X!Tandem result file
-
getCometFileName
Returns the name of the Comet result file.- Parameters:
spectrumFileName- the name of the spectrum file searched- Returns:
- the name of the Comet result file
-
getCometFileName
public static String getCometFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.CometParameters cometParameters) Returns the name of the Comet result file.- Parameters:
spectrumFileName- the spectrum file namecometParameters- the Comet parameters- Returns:
- the name of the Comet result file
-
getTideFileName
Returns the name of the Tide result file.- Parameters:
spectrumFileName- the spectrum file name- Returns:
- the name of the Tide result file
-
getTideFileName
public static String getTideFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.TideParameters tideParameters) Returns the name of the Tide result file.- Parameters:
spectrumFileName- the spectrum file nametideParameters- the Tide parameters- Returns:
- the name of the Tide result file
-
getAndromedaFileName
Returns the name of the Andromeda result file.- Parameters:
spectrumFileName- the name of the spectrum file searched- Returns:
- the name of the Andromeda result file
-
getMetaMorpheusFileName
Returns the name of the MetaMorpheus result file.- Parameters:
spectrumFileName- the name of the spectrum file searched- Returns:
- the name of the MetaMorpheus result file
-
getNovorFileName
Returns the name of the Novor result file.- Parameters:
spectrumFileName- the name of the spectrum file searched- Returns:
- the name of the Novor result file
-
getDirecTagFileName
Returns the name of the DirecTag result file.- Parameters:
spectrumFileName- the name of the spectrum file searched- Returns:
- the name of the DirecTag result file
-
getOMSSAFileName
Returns the name of the OMSSA result file.- Parameters:
spectrumFileName- the spectrum file name- Returns:
- the name of the OMSSA result file
-
getOMSSAFileName
public static String getOMSSAFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.OmssaParameters omssaParameters) Returns the name of the OMSSA result file.- Parameters:
spectrumFileName- the spectrum file nameomssaParameters- the OMSSA parameters- Returns:
- the name of the OMSSA result file
-
getMsgfFileName
Returns the name of the MS-GF+ result file.- Parameters:
spectrumFileName- the spectrum file name- Returns:
- the name of the MS-GF+ result file
-
getSageFileName
Returns the name of the Sage result file.- Parameters:
spectrumFileName- the spectrum file name- Returns:
- the name of the Sage result file
-
getMsAmandaFileName
Returns the name of the MS Amanda result file.- Parameters:
spectrumFileName- the spectrum file name- Returns:
- the name of the MS Amanda result file
-
getMsAmandaFileName
public static String getMsAmandaFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.MsAmandaParameters msAmandaParameters) Returns the name of the MS Amanda result file.- Parameters:
spectrumFileName- the spectrum file namemsAmandaParameters- the MS Amanda parameters- Returns:
- the name of the MS Amanda result file
-
getMyriMatchFileName
Returns the name of the MyriMatch result file.- Parameters:
spectrumFileName- the spectrum file name- Returns:
- the name of the MyriMatch result file
-
getMyriMatchFileName
public static String getMyriMatchFileName(String spectrumFileName, com.compomics.util.parameters.identification.tool_specific.MyriMatchParameters myriMatchParameters) Returns the name of the MyriMatch result file.- Parameters:
spectrumFileName- the spectrum file namemyriMatchParameters- the MyriMatch parameters- Returns:
- the name of the MyriMatch result file
-
getXTandemFiles
Lists all the files which can be X!Tandem output for this spectrum file in the given folder.- Parameters:
folder- the folder to screenspectrumFileName- the name of the spectrum file- Returns:
- the list of candidate identification result files
-
getOmssaLocation
Returns the OMSSA location.- Returns:
- the omssaLocation
-
setOmssaLocation
Set the OMSSA location.- Parameters:
omssaLocation- the omssaLocation to set
-
getXtandemLocation
Returns the X!Tandem location.- Returns:
- the xtandemLocation
-
setXtandemLocation
Set the X!Tandem location.- Parameters:
xtandemLocation- the xtandemLocation to set
-
getMsgfLocation
Returns the MS-GF+ location.- Returns:
- the msgfLocation
-
setMsgfLocation
Set the MS-GF+ location.- Parameters:
msgfLocation- the msgfLocation to set
-
getMsAmandaLocation
Returns the MS Amanda location.- Returns:
- the msAmandaLocation
-
setMsAmandaLocation
Set the MS Amanda location.- Parameters:
msAmandaLocation- the msAmandaLocation to set
-
getMyriMatchLocation
Returns the MyriMatch location.- Returns:
- the myriMatchLocation
-
setMyriMatchLocation
Set the MyriMatch location.- Parameters:
myriMatchLocation- the myriMatchLocation to set
-
getCometLocation
Returns the Comet location.- Returns:
- the comet location
-
setCometLocation
Set the Comet location.- Parameters:
cometLocation- the cometLocation to set
-
getTideLocation
Returns the Tide location.- Returns:
- the Tide location
-
setTideLocation
Set the Tide location.- Parameters:
tideLocation- the Tide location to set
-
getAndromedaLocation
Returns the Andromeda location.- Returns:
- the Andromeda location
-
setAndromedaLocation
Set the Andromeda location.- Parameters:
andromedaLocation- the Andromeda location to set
-
getMetaMorpheusLocation
Returns the MetaMorpheus location.- Returns:
- the MetaMorpheus location
-
setMetaMorpheusLocation
Set the MetaMorpheus location.- Parameters:
metaMorpheusLocation- the MetaMorpheus location to set
-
getSageLocation
Returns the Sage location.- Returns:
- the Sage location
-
setSageLocation
Set the Sage location.- Parameters:
sageLocation- the Sage location to set
-
getNovorLocation
Returns the Novor location.- Returns:
- the Novor location
-
setNovorLocation
Set the Novor location.- Parameters:
novorLocation- the Novor location to set
-
getDirecTagLocation
Returns the DirecTag location.- Returns:
- the DirecTag location
-
setDirecTagLocation
Set the DirecTag location.- Parameters:
direcTagLocation- the DirecTag location to set
-
getMakeblastdbLocation
Returns the makeblastdb location.- Returns:
- the makeblastdb location
-
setMakeblastdbLocation
Set the makeblastdb location.- Parameters:
makeblastdbLocation- the makeblastdbLocation to set
-
isOmssaEnabled
public boolean isOmssaEnabled()Returns true if OMSSA is to be used.- Returns:
- true if OMSSA is to be used
-
setPeptideShakerEnabled
public void setPeptideShakerEnabled(boolean runPeptideShaker) Set if PeptideShaker is to be run or not.- Parameters:
runPeptideShaker- if PeptideShaker is to be run or not
-
isPeptideShakerEnabled
public boolean isPeptideShakerEnabled()Returns a boolean indicating whether PeptideShaker was enabled.- Returns:
- a boolean indicating whether PeptideShaker was enabled
-
isReporterEnabled
public boolean isReporterEnabled()Returns a boolean indicating whether Reporter was enabled.- Returns:
- a boolean indicating whether Reporter was enabled
-
setOmssaEnabled
public void setOmssaEnabled(boolean runOmssa) Set if OMSSA is to be used.- Parameters:
runOmssa- run OMSSA?
-
isXtandemEnabled
public boolean isXtandemEnabled()Returns true if X!Tandem is to be used.- Returns:
- if X!Tandem is to be used
-
isMsgfEnabled
public boolean isMsgfEnabled()Returns true if MS-GF+ is to be used.- Returns:
- if MS-GF+ is to be used
-
isMsAmandaEnabled
public boolean isMsAmandaEnabled()Returns true if MS Amanda is to be used.- Returns:
- if MS Amanda is to be used
-
isMyriMatchEnabled
public boolean isMyriMatchEnabled()Returns true if MyriMatch is to be used.- Returns:
- if MyriMatch is to be used
-
isCometEnabled
public boolean isCometEnabled()Returns true if Comet is to be used.- Returns:
- if Comet is to be used
-
isTideEnabled
public boolean isTideEnabled()Returns true if Tide is to be used.- Returns:
- if Tide is to be used
-
isAndromedaEnabled
public boolean isAndromedaEnabled()Returns true if Andromeda is to be used.- Returns:
- if Andromeda is to be used
-
isMetaMorpheusEnabled
public boolean isMetaMorpheusEnabled()Returns true if MetaMorpheus is to be used.- Returns:
- if MetaMorpheus is to be used
-
isSageEnabled
public boolean isSageEnabled()Returns true if Sage is to be used.- Returns:
- if Sage is to be used
-
isNovorEnabled
public boolean isNovorEnabled()Returns true if Novor is to be used.- Returns:
- if Novor is to be used
-
isDirecTagEnabled
public boolean isDirecTagEnabled()Returns true if DirecTag is to be used.- Returns:
- if DirecTag is to be used
-
setXtandemEnabled
public void setXtandemEnabled(boolean runXtandem) Set if X!Tandem is to be used.- Parameters:
runXtandem- run X!Tandem?
-
setMsgfEnabled
public void setMsgfEnabled(boolean runMsgf) Set if MS-GF+ is to be used.- Parameters:
runMsgf- run MS-GF+?
-
setMsAmandaEnabled
public void setMsAmandaEnabled(boolean runMsAmanda) Set if MS Amanda is to be used.- Parameters:
runMsAmanda- run MS Amanda?
-
setMyriMatchEnabled
public void setMyriMatchEnabled(boolean runMyriMatch) Set if MyriMatch is to be used.- Parameters:
runMyriMatch- run MyriMatch?
-
setCometEnabled
public void setCometEnabled(boolean runComet) Set if Comet is to be used.- Parameters:
runComet- run Comet?
-
setTideEnabled
public void setTideEnabled(boolean runTide) Set if Tide is to be used.- Parameters:
runTide- run Tide?
-
setAndromedaEnabled
public void setAndromedaEnabled(boolean runAndromeda) Set if Andromeda is to be used.- Parameters:
runAndromeda- run Andromeda?
-
setMetaMorpheusEnabled
public void setMetaMorpheusEnabled(boolean runMetaMorpheus) Set if MetaMorpheus is to be used.- Parameters:
runMetaMorpheus- run MetaMorpheus?
-
setSageEnabled
public void setSageEnabled(boolean runSage) Set if Sage is to be used.- Parameters:
runSage- run Sage?
-
setNovorEnabled
public void setNovorEnabled(boolean runNovor) Set if Novor is to be used.- Parameters:
runNovor- run Novor?
-
setDirecTagEnabled
public void setDirecTagEnabled(boolean runDirecTag) Set if DirecTag is to be used.- Parameters:
runDirecTag- run DirecTag?
-
getResultsFolder
Returns the results folder.- Returns:
- the resultsFolder
-
setResultsFolder
Set the results folder.- Parameters:
resultsFolder- the resultsFolder to set
-
getSpectrumFiles
Returns the list of mass spectrometry files.- Returns:
- the mass spectrometry files
-
setSpectrumFiles
Sets the list of mass spectrometry files.- Parameters:
msFiles- the mass spectrometry files
-
getSpectrumFile
Returns the spectrum file with the given name. Null if not found.- Parameters:
fileName- the file name of the spectrum file- Returns:
- the spectrum file with the given name
-
getCmsFiles
Returns the list of cms files.- Returns:
- the cms files
-
setCmsFiles
Sets the list of cms files.- Parameters:
cmsFiles- the cms files
-
getCmsFile
Returns the cms file with the given name. Null if not found.- Parameters:
fileName- the file name of the cms file- Returns:
- the spectrum file with the given name
-
getFastaFile
Returns the FASTA file.- Returns:
- the FASTA file
-
setFastaFile
Set the FASTA file.- Parameters:
fastaFile- the FASTA file
-
getRawFiles
Returns the list of raw files.- Returns:
- the raw files
-
setRawFiles
Sets the list of raw files.- Parameters:
rawFiles- the raw files
-
getExperimentLabel
Returns the experiment label.- Returns:
- the experiment label
-
setExperimentLabel
Sets the the experiment label.- Parameters:
experimentLabel- the experimentLabel to set
-
getPeptideShakerFile
Returns the PeptideShaker file.- Returns:
- the PeptideShaker file
-
setPeptideShakerFile
Sets the PeptideShaker file.- Parameters:
peptideShakerFile- the peptideShakerFile to set
-
saveInputFile
Save the input file.- Parameters:
folder- the folder where to save the input file
-
setIdentificationParameters
public void setIdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters) Set the identification parameters.- Parameters:
identificationParameters- the identification parameters
-
setIdentificationParametersFile
Set the identification parameters file.- Parameters:
identificationParametersFile- the identification parameters file
-
setMascotFiles
Sets the mascot files.- Parameters:
mascotFiles- the mascot files
-
getMascotFiles
Returns the Mascot files.- Returns:
- the mascot files
-
getProcessingParameters
public com.compomics.util.parameters.tools.ProcessingParameters getProcessingParameters()Returns the processing preferences.- Returns:
- the processingParameters
-
setProcessingParameters
public void setProcessingParameters(com.compomics.util.parameters.tools.ProcessingParameters processingParameters) Set the processing preferences.- Parameters:
processingParameters- the processingParameters to set
-
getMsConvertParameters
public com.compomics.util.experiment.mass_spectrometry.proteowizard.MsConvertParameters getMsConvertParameters()Returns the msconvert parameters.- Returns:
- the msconvert parameters
-
setMsConvertParameters
public void setMsConvertParameters(com.compomics.util.experiment.mass_spectrometry.proteowizard.MsConvertParameters msConvertParameters) Sets the msconvert parameters.- Parameters:
msConvertParameters- the msconvert parameters
-
getThermoRawFileParserParameters
public com.compomics.util.experiment.mass_spectrometry.thermo_raw_file_parser.ThermoRawFileParserParameters getThermoRawFileParserParameters()Returns the ThermoRawFileParser parameters.- Returns:
- the ThermoRawFileParser parameters
-
setThermoRawFileParserParameters
public void setThermoRawFileParserParameters(com.compomics.util.experiment.mass_spectrometry.thermo_raw_file_parser.ThermoRawFileParserParameters thermoRawFileParserParameters) Sets the ThermoRawFileParser parameters.- Parameters:
thermoRawFileParserParameters- the ThermoRawFileParser parameters
-
getDefaultOutputFile
Returns the default output file produced by SearchGUI.- Parameters:
outputFolder- the folder where to put the fileincludeDate- if true the date will be included in the output file name- Returns:
- the default output file produced by SearchGUI
-
getDefaultOutputFile
Returns the default output file produced by SearchGUI classified according to a classifier. For example "OMSSA_searchgui.zip".- Parameters:
outputFolder- the folder where to put the fileclassifier- the first part of the name used to classify the outputincludeDate- if true the date will be included in the output file name- Returns:
- the default output file produced by SearchGUI
-
getOutputDate
Returns the date as a string to be included in the output. yyyy-MM-dd_HH.mm.ss.- Returns:
- the date as a string to be included in the output
-
setOutputTimeStamp
Set the current output time stamp.- Parameters:
outputTimeStamp- the current output time stamp
-
getInputFile
Returns the file where the paths to the spectrum and FASTA files are saved.- Parameters:
outputFolder- the folder where this file shall be saved- Returns:
- the file where the paths to the spectrum and FASTA file paths are saved
-
organizeOutput
public void organizeOutput(File outputFolder, File tempOutputFolder, HashMap<String, HashMap<Integer, throws IOExceptionFile>> identificationFilesMap, File parametersFile, boolean includeDate) Organizes the identification files in zip files according to the output option of the search handler. Existing zip files will be overwritten and result files will be deleted.- Parameters:
outputFolder- the output foldertempOutputFolder- the folder where the raw SearchGUI output is storedidentificationFilesMap- the identification files mapparametersFile- the parameters fileincludeDate- if true the date will be included in the output file name- Throws:
IOException- thrown if there is a problem with the files
-
getPeakListFolder
Returns the folder to use to store peak lists.- Parameters:
configFolder- the config folder- Returns:
- the folder to use to store peak lists
-
getJarFilePath
Returns the path to the jar file.- Returns:
- the path to the jar file
-
getConfigFolder
Returns the folder where the configuration files are stored.- Returns:
- the folder where the configuration files are stored
-
getTempFolderPath
Returns the folder to use for temporary files. By default the resources folder is used.- Parameters:
configFolder- the config folder- Returns:
- the folder to use for temporary files
-
setTempFolderPath
Sets the folder to use for temporary files.- Parameters:
tempFolderPath- the folder to use for temporary files
-
getTempSearchEngineFolderPath
Returns the folder to use for temporary search engine files.- Parameters:
configFolder- the config folder- Returns:
- the folder to use for temporary search engine files
-
setTempSearchEngineFolderPath
Sets the folder to use for temporary search engine files.- Parameters:
tempSearchEngineFolderPath- the folder to use for temporary search engine files
-
setLogFolder
Sets the log folder.- Parameters:
logFolder- the log folder
-
loadModifications
public static String loadModifications(com.compomics.util.parameters.identification.search.SearchParameters searchParameters) Verifies that the modifications backed-up in the search parameters are loaded and returns an error message if one was already loaded, null otherwise.- Parameters:
searchParameters- the search parameters to load- Returns:
- an error message if one was already loaded, null otherwise
-
getDefaultOutputFileName
Returns the default output file name.- Returns:
- the defaultOutputFileName
-
setDefaultOutputFileName
Sets the default output file name.- Parameters:
newOutputFileName- the defaultOutputFileName to set
-
setCloseProcessWhenDone
public static void setCloseProcessWhenDone(boolean aCloseProcessWhenDone) Set whether the process should be closed when completing or crashing.- Parameters:
aCloseProcessWhenDone- the closeProcessWhenDone to set
-