Package com.compomics.util.parameters
Class UtilitiesUserParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.parameters.UtilitiesUserParameters
- All Implemented Interfaces:
Serializable
Utilities user parameters can be used to store user parameters.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns if the spectra should be checked for duplicate titles or not.booleanReturns if the mgf should be checked for size.booleanReturns if the spectra should be checked for peak picking or not.Returns the last used database folder.Returns the folder where FASTA files summary statistics are stored.Returns the path to the DeNovoGUI installation.Returns the list of displayed tips.Returns the Java Home folder.Returns the last selected folder.Returns the local PRIDE folder.intReturns the maximum charge added when the charge is missing for a given spectrum.Returns the upper memory limit in MB.doubleReturns the max mgf file size before splitting.intGet the max number of spectra in an mgf file.intReturns the minimum charge added when the charge is missing for a given spectrum.Returns the last used output folder.Returns the color for a selected peptide.Returns the path to the PeptideShaker installation.Returns the path to ProteoWizard.Returns the list of read tweets.doubleReturns the reference mass for the conversion of the fragment ion tolerance from ppm to Dalton.Returns the path to the Relims installation.Returns the path to the Reporter installation.Returns the selected SearchGUI output option.Returns the path to the SearchGUI installation.booleanReturns true if the PSMs are sorted on retention time, false sorts on PSM score.Getter for the sparkline color.Returns the color for a doubtful sparkline bar chart plots.Returns the color for false positives in sparkline bar chart plots.Getter for the non-validated sparkline color.Returns the color for a not found sparkline bar chart plots.Returns the color for a possible sparkline bar chart plots.Returns the color to use for the annotated mirrored peaks.Returns the color to use for the annotated peaks.floatReturns the width of the annotated peaks.Returns the color to use for the background peaks.floatReturns the width of the background peaks.Returns the last used spectrum folder.static StringReturns the user preferences file to be used.static StringReturns the user preferences file to be used.booleanIndicates whether the tools should use the auto update function.booleanReturns whether the spectra are to be checked for missing charges.booleanisGzip()Indicates whether identification files should be gzipped.booleanIndicates whether the date should be included in the SearchGUI output name.static UtilitiesUserParametersLoads the user parameters.booleanIndicates whether data should be copied along with the identification files in the SearchGUI output.booleanReturns true if the X! Tandem file should be renamed.static voidsaveUserParameters(UtilitiesUserParameters userParameters) Convenience method saving the user parameters.voidsetAutoUpdate(Boolean autoUpdate) Sets whether the tools should use the auto update function.voidsetCheckDuplicateTitles(boolean checkDuplicateTitles) Set if the spectra should be checked for duplicate titles or not.voidsetCheckMgfSize(boolean checkMgfSize) Set if the mgf should be checked for size.voidsetCheckPeakPicking(boolean checkPeakPicking) Set if the spectra should be checked for peak picking or not.voidsetCheckSpectrumCharges(boolean checkSpectrumCharges) Set if the spectra are to be checked for missing charges.voidsetDbFolder(File dbFolder) Sets the last used database folder.voidsetDeNovoGuiPath(String deNovoGuiPath) Set the path to the DeNovoGUI installation.voidsetDisplayedTips(ArrayList<String> displayedTips) Set the list of displayed tips.voidsetGzip(boolean gzip) Sets whether identification files should be gzipped.voidsetIncludeDateInOutputName(boolean includeDateInOutputName) Sets whether the date should be included in the SearchGUI output name.voidsetJavaHome(String javaHome) Set the Java Home folder.voidsetLastSelectedFolder(LastSelectedFolder lastSelectedFolder) Sets the last selected folder.voidsetLocalPrideFolder(String localPrideFolder) Set the local PRIDE folder.voidsetMaxSpectrumChargeRange(int maxSpectrumChargeRange) Set the maximum charge added when the charge is missing for a given spectrum.voidsetMemoryParameter(int memoryParameter) Sets the upper memory limit.voidsetMgfMaxSize(double mgfMaxSize) Set the max mgf file size before splitting.voidsetMgfNSpectra(int mgfNSpectra) Set the max number of spectra in an mgf file.voidsetMinSpectrumChargeRange(int minSpectrumChargeRange) Set the minimum charge added when the charge is missing for a given spectrum.voidsetOutputData(boolean outputData) Sets whether data should be copied along with the identification files in the SearchGUI output.voidsetOutputFolder(File outputFolder) Sets the last used output folder.voidsetPeptideShakerPath(String peptideShakerPath) Set the path to the PeptideShaker installation.voidsetProteoWizardPath(String proteoWizardPath) Set the path to ProteoWizard.voidsetReadTweets(ArrayList<String> readTweets) Set the list of read tweets.voidsetRefMass(double refMass) Sets the reference mass for the conversion of the fragment ion tolerance from ppm to Dalton.voidsetRelimsPath(String relimsPath) Set the path to the Relims installation.voidsetRenameXTandemFile(boolean renameXTandemFile) Set if the X! Tandem file should be renamed.voidsetReporterPath(String reporterPath) Set the path to the PeptideShaker installation.voidsetSearchGuiOutputParameters(OutputParameters outputOption) Sets how SearchGUI output files should be organized.voidsetSearchGuiPath(String searchGuiPath) Set the path to the SearchGUI installation.voidsetSortPsmsOnRt(Boolean sortPsmsOnRt) Set if the PSMs are sorted on retention time, false sorts on PSM score.voidsetSparklineColor(Color sparklineColorValidated) Setter for the sparkline color.voidsetSparklineColorDoubtful(Color sparklineColorDoubtful) Setter for the doubtful sparkline color.voidsetSparklineColorFalsePositives(Color sparklineColorFalsePositive) Setter for the false positives sparkline color.voidsetSparklineColorNonValidated(Color sparklineColorNonValidated) Setter for the non-validated sparkline color.voidsetSparklineColorNotFound(Color sparklineColorNotFound) Setter for the not found sparkline color.voidsetSparklineColorPossible(Color sparklineColorPossible) Setter for the possible sparkline color.voidsetSpectrumAnnotatedMirroredPeakColor(Color spectrumAnnotatedMirroredPeakColor) Set the color to use for the annotated mirrored peaks.voidsetSpectrumAnnotatedPeakColor(Color spectrumAnnotatedPeakColor) Set the color to use for the annotated peaks.voidsetSpectrumAnnotatedPeakWidth(float spectrumAnnotatedPeakWidth) Set the width of the annotated peaks.voidsetSpectrumBackgroundPeakColor(Color spectrumBackgroundPeakColor) Set the color to use for the background peaks.voidsetSpectrumBackgroundPeakWidth(float spectrumBackgroundPeakWidth) Set the width of the background peaks.voidsetSpectrumFolder(File spectrumFolder) Sets the last used spectrum folder.static voidsetUserParametersFolder(String userParametersFolder) Sets the user preferences file to be used.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
UtilitiesUserParameters
public UtilitiesUserParameters()Constructor.
-
-
Method Details
-
getSparklineColor
Getter for the sparkline color.- Returns:
- the sparkline color
-
setSparklineColor
Setter for the sparkline color.- Parameters:
sparklineColorValidated- the sparkline color
-
getSparklineColorNonValidated
Getter for the non-validated sparkline color.- Returns:
- the non-validated sparkline color
-
getPeptideSelected
Returns the color for a selected peptide.- Returns:
- the color for a selected peptide
-
getSparklineColorNotFound
Returns the color for a not found sparkline bar chart plots.- Returns:
- the color for a not found sparkline bar chart plots
-
setSparklineColorNotFound
Setter for the not found sparkline color.- Parameters:
sparklineColorNotFound- the not found sparkline color
-
setSparklineColorNonValidated
Setter for the non-validated sparkline color.- Parameters:
sparklineColorNonValidated- the non-validated sparkline color
-
getSparklineColorPossible
Returns the color for a possible sparkline bar chart plots.- Returns:
- the color for a possible sparkline bar chart plots
-
setSparklineColorPossible
Setter for the possible sparkline color.- Parameters:
sparklineColorPossible- the possible sparkline color
-
getSparklineColorDoubtful
Returns the color for a doubtful sparkline bar chart plots.- Returns:
- the color for a doubtful sparkline bar chart plots
-
setSparklineColorDoubtful
Setter for the doubtful sparkline color.- Parameters:
sparklineColorDoubtful- the doubtful sparkline color
-
getSparklineColorFalsePositives
Returns the color for false positives in sparkline bar chart plots.- Returns:
- the color for a false positives in sparkline bar chart plots
-
setSparklineColorFalsePositives
Setter for the false positives sparkline color.- Parameters:
sparklineColorFalsePositive- the false positives sparkline color
-
getMemoryParameter
Returns the upper memory limit in MB.- Returns:
- the upper memory limit
-
setMemoryParameter
public void setMemoryParameter(int memoryParameter) Sets the upper memory limit.- Parameters:
memoryParameter- the preferred upper memory limit
-
getJavaHome
Returns the Java Home folder.- Returns:
- the Java Home folder
-
setJavaHome
Set the Java Home folder.- Parameters:
javaHome- the new Java Home
-
getSpectrumAnnotatedPeakColor
Returns the color to use for the annotated peaks.- Returns:
- the spectrumAnnotatedPeakColor
-
setSpectrumAnnotatedPeakColor
Set the color to use for the annotated peaks.- Parameters:
spectrumAnnotatedPeakColor- the spectrumAnnotatedPeakColor to set
-
getSpectrumAnnotatedMirroredPeakColor
Returns the color to use for the annotated mirrored peaks.- Returns:
- the spectrumAnnotatedMirroredPeakColor
-
setSpectrumAnnotatedMirroredPeakColor
Set the color to use for the annotated mirrored peaks.- Parameters:
spectrumAnnotatedMirroredPeakColor- the spectrumAnnotatedMirroredPeakColor to set
-
getSpectrumBackgroundPeakColor
Returns the color to use for the background peaks.- Returns:
- the spectrumBackgroundPeakColor
-
setSpectrumBackgroundPeakColor
Set the color to use for the background peaks.- Parameters:
spectrumBackgroundPeakColor- the spectrumBackgroundPeakColor to set
-
getSpectrumAnnotatedPeakWidth
public float getSpectrumAnnotatedPeakWidth()Returns the width of the annotated peaks.- Returns:
- the spectrumAnnotatedPeakWidth
-
setSpectrumAnnotatedPeakWidth
public void setSpectrumAnnotatedPeakWidth(float spectrumAnnotatedPeakWidth) Set the width of the annotated peaks.- Parameters:
spectrumAnnotatedPeakWidth- the spectrumAnnotatedPeakWidth to set
-
getSpectrumBackgroundPeakWidth
public float getSpectrumBackgroundPeakWidth()Returns the width of the background peaks.- Returns:
- the spectrumBackgroundPeakWidth
-
setSpectrumBackgroundPeakWidth
public void setSpectrumBackgroundPeakWidth(float spectrumBackgroundPeakWidth) Set the width of the background peaks.- Parameters:
spectrumBackgroundPeakWidth- the spectrumBackgroundPeakWidth to set
-
getSearchGuiPath
Returns the path to the SearchGUI installation.- Returns:
- the path to the SearchGUI installation
-
setSearchGuiPath
Set the path to the SearchGUI installation.- Parameters:
searchGuiPath- the path to the SearchGUI installation
-
getDeNovoGuiPath
Returns the path to the DeNovoGUI installation.- Returns:
- the path to the DeNovoGUI installation
-
setDeNovoGuiPath
Set the path to the DeNovoGUI installation.- Parameters:
deNovoGuiPath- the path to the DeNovoGUI installation
-
getProteoWizardPath
Returns the path to ProteoWizard.- Returns:
- the path to ProteoWizard
-
setProteoWizardPath
Set the path to ProteoWizard.- Parameters:
proteoWizardPath- the path to ProteoWizard
-
getRelimsPath
Returns the path to the Relims installation.- Returns:
- the path to the Relims installation
-
setRelimsPath
Set the path to the Relims installation.- Parameters:
relimsPath- the path to the * installation
-
getPeptideShakerPath
Returns the path to the PeptideShaker installation.- Returns:
- the path to the PeptideShaker installation
-
setPeptideShakerPath
Set the path to the PeptideShaker installation.- Parameters:
peptideShakerPath- the path to the PeptideShaker installation
-
getReporterPath
Returns the path to the Reporter installation.- Returns:
- the path to the Reporter installation
-
setReporterPath
Set the path to the PeptideShaker installation.- Parameters:
reporterPath- the path to the PeptideShaker installation
-
saveUserParameters
Convenience method saving the user parameters. Exceptions are ignored silently and written to the stack trace.- Parameters:
userParameters- the user preferences
-
loadUserParameters
Loads the user parameters. If an error is encountered, parameters are set back to default.- Returns:
- returns the utilities user preferences
-
getLocalPrideFolder
Returns the local PRIDE folder.- Returns:
- the localPrideFolder
-
setLocalPrideFolder
Set the local PRIDE folder.- Parameters:
localPrideFolder- the localPrideFolder to set
-
getDbFolder
Returns the last used database folder. Null if not set.- Returns:
- the last used database folder
-
setDbFolder
Sets the last used database folder.- Parameters:
dbFolder- the last used database folder
-
getSpectrumFolder
Returns the last used spectrum folder. Null if not set.- Returns:
- the last used spectrum folder
-
setSpectrumFolder
Sets the last used spectrum folder.- Parameters:
spectrumFolder- the last used spectrum folder
-
getOutputFolder
Returns the last used output folder. Null if not set.- Returns:
- the last used output folder
-
setOutputFolder
Sets the last used output folder.- Parameters:
outputFolder- the last used output folder
-
getReadTweets
Returns the list of read tweets.- Returns:
- the list of read tweets
-
setReadTweets
Set the list of read tweets.- Parameters:
readTweets- the readTweets to set
-
getDisplayedTips
Returns the list of displayed tips.- Returns:
- the displayed tips
-
setDisplayedTips
Set the list of displayed tips.- Parameters:
displayedTips- the displayedTips to set
-
getUserParametersFile
Returns the user preferences file to be used.- Returns:
- the user preferences file
-
getUserParametersFolder
Returns the user preferences file to be used.- Returns:
- the user preferences file
-
setUserParametersFolder
Sets the user preferences file to be used.- Parameters:
userParametersFolder- the user preferences file to be used
-
isAutoUpdate
public boolean isAutoUpdate()Indicates whether the tools should use the auto update function.- Returns:
- whether the tools should use the auto update function
-
setAutoUpdate
Sets whether the tools should use the auto update function.- Parameters:
autoUpdate- whether the tools should use the auto update function
-
getLastSelectedFolder
Returns the last selected folder.- Returns:
- the last selected folder
-
setLastSelectedFolder
Sets the last selected folder.- Parameters:
lastSelectedFolder- the last selected folder
-
getSortPsmsOnRt
public boolean getSortPsmsOnRt()Returns true if the PSMs are sorted on retention time, false sorts on PSM score.- Returns:
- the sortPsmsOnRt
-
setSortPsmsOnRt
Set if the PSMs are sorted on retention time, false sorts on PSM score.- Parameters:
sortPsmsOnRt- the sortPsmsOnRt to set
-
checkPeakPicking
public boolean checkPeakPicking()Returns if the spectra should be checked for peak picking or not.- Returns:
- true if the spectra should be checked for peak picking
-
setCheckPeakPicking
public void setCheckPeakPicking(boolean checkPeakPicking) Set if the spectra should be checked for peak picking or not.- Parameters:
checkPeakPicking- the checkPeakPicking to set
-
checkDuplicateTitles
public boolean checkDuplicateTitles()Returns if the spectra should be checked for duplicate titles or not.- Returns:
- true if the spectra should be checked for duplicate titles
-
setCheckDuplicateTitles
public void setCheckDuplicateTitles(boolean checkDuplicateTitles) Set if the spectra should be checked for duplicate titles or not.- Parameters:
checkDuplicateTitles- the checkDuplicateTitles to set
-
checkMgfSize
public boolean checkMgfSize()Returns if the mgf should be checked for size.- Returns:
- true if the mgf should be checked for size
-
setCheckMgfSize
public void setCheckMgfSize(boolean checkMgfSize) Set if the mgf should be checked for size.- Parameters:
checkMgfSize- the mgf should be checked for size
-
getMgfMaxSize
public double getMgfMaxSize()Returns the max mgf file size before splitting.- Returns:
- the mgfMaxSize
-
setMgfMaxSize
public void setMgfMaxSize(double mgfMaxSize) Set the max mgf file size before splitting.- Parameters:
mgfMaxSize- the mgfMaxSize to set
-
getMgfNSpectra
public int getMgfNSpectra()Get the max number of spectra in an mgf file.- Returns:
- the mgfNSpectra
-
setMgfNSpectra
public void setMgfNSpectra(int mgfNSpectra) Set the max number of spectra in an mgf file.- Parameters:
mgfNSpectra- the mgfNSpectra to set
-
getRefMass
public double getRefMass()Returns the reference mass for the conversion of the fragment ion tolerance from ppm to Dalton.- Returns:
- the reference mass for the conversion of the fragment ion tolerance from ppm to Dalton
-
setRefMass
public void setRefMass(double refMass) Sets the reference mass for the conversion of the fragment ion tolerance from ppm to Dalton.- Parameters:
refMass- the reference mass for the conversion of the fragment ion tolerance from ppm to Dalton
-
setSearchGuiOutputParameters
Sets how SearchGUI output files should be organized.- Parameters:
outputOption- the SearchGUI output option
-
getSearchGuiOutputParameters
Returns the selected SearchGUI output option.- Returns:
- the selected SearchGUI output option
-
isGzip
public boolean isGzip()Indicates whether identification files should be gzipped.- Returns:
- A boolean indicating whether identification files should be gzipped.
-
setGzip
public void setGzip(boolean gzip) Sets whether identification files should be gzipped.- Parameters:
gzip- A boolean indicating whether identification files should be gzipped.
-
outputData
public boolean outputData()Indicates whether data should be copied along with the identification files in the SearchGUI output.- Returns:
- a boolean indicating whether data should be copied along with the identification files in the SearchGUI output
-
setOutputData
public void setOutputData(boolean outputData) Sets whether data should be copied along with the identification files in the SearchGUI output.- Parameters:
outputData- whether data should be copied along with the identification files in the SearchGUI output
-
isIncludeDateInOutputName
public boolean isIncludeDateInOutputName()Indicates whether the date should be included in the SearchGUI output name.- Returns:
- a boolean indicating whether the date should be included in the SearchGUI output name
-
setIncludeDateInOutputName
public void setIncludeDateInOutputName(boolean includeDateInOutputName) Sets whether the date should be included in the SearchGUI output name.- Parameters:
includeDateInOutputName- whether the date should be included in the SearchGUI output name
-
renameXTandemFile
public boolean renameXTandemFile()Returns true if the X! Tandem file should be renamed.- Returns:
- true if the X! Tandem file should be renamed
-
setRenameXTandemFile
public void setRenameXTandemFile(boolean renameXTandemFile) Set if the X! Tandem file should be renamed.- Parameters:
renameXTandemFile- rename file?
-
isCheckSpectrumCharges
public boolean isCheckSpectrumCharges()Returns whether the spectra are to be checked for missing charges.- Returns:
- true, if the spectra are to be checked for missing charges
-
setCheckSpectrumCharges
public void setCheckSpectrumCharges(boolean checkSpectrumCharges) Set if the spectra are to be checked for missing charges.- Parameters:
checkSpectrumCharges- the checkSpectrumCharges to set
-
getMinSpectrumChargeRange
public int getMinSpectrumChargeRange()Returns the minimum charge added when the charge is missing for a given spectrum.- Returns:
- the minimum charge added when the charge is missing for a given spectrum
-
setMinSpectrumChargeRange
public void setMinSpectrumChargeRange(int minSpectrumChargeRange) Set the minimum charge added when the charge is missing for a given spectrum.- Parameters:
minSpectrumChargeRange- the minSpectrumChargeRange to set
-
getMaxSpectrumChargeRange
public int getMaxSpectrumChargeRange()Returns the maximum charge added when the charge is missing for a given spectrum.- Returns:
- the maximum charge added when the charge is missing for a given spectrum
-
setMaxSpectrumChargeRange
public void setMaxSpectrumChargeRange(int maxSpectrumChargeRange) Set the maximum charge added when the charge is missing for a given spectrum.- Parameters:
maxSpectrumChargeRange- the maxSpectrumChargeRange to set
-
getDbSummaryFolder
Returns the folder where FASTA files summary statistics are stored.- Returns:
- the folder where FASTA files summary statistics are stored
-