Class OmssaParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.parameters.identification.tool_specific.OmssaParameters
- All Implemented Interfaces:
IdentificationAlgorithmParameter,Serializable
The OMSSA specific parameters.
- Author:
- Marc Vaudel
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequals(IdentificationAlgorithmParameter identificationAlgorithmParameter) Indicates whether another identificationAlgorithmParameter has the same parameters.Returns the identification algorithm.doubleReturns the consecutive ion probability.intReturns the window size for doubly charged ions.doubleReturns the fraction of peaks to be retained for charge >1 estimation.doubleReturns the high intensity cut-off as percentage of the most intense ion peak.intReturns the length of the hit list for OMSSA.doubleReturns the intensity cut-off increment.doubleReturns the e-value threshold to use to replace a hit for the iterative search.doubleReturns the e-value threshold to use to consider a sequence for the iterative search.doubleReturns the e-value threshold to use consider a spectrum for the iterative search.doubleReturns the low intensity cut-off as percentage of the most intense ion peak.doubleReturns the maximal e-value searched for.intReturns the maximal fragment charge.intReturns the maximal number of fragments to retain per series.intReturns the maximal number of hits searched per spectrum and per charge.intReturns the maximal m/z ladder length.intReturns the maximal peptide length allowed.intReturns the minimal number of annotated peaks a peptide should have.intReturns the minimal precursor charge to account for multiply charged fragments in OMSSA.intReturns the minimal number of peaks a spectrum should contain.intSets the minimal peptide length allowed.intReturns the minimal number of precursors per spectrum.getModificationName(int ptmIndex) Returns the name of the modification indexed by the given index.intReturns the minimal number of annotated most intense peaks.doubleReturns the mass after which exact neutron mass should be considered in the calculation.Returns the id numbers of ion series to apply no product ions at proline rule at.intReturns the number of peaks in doubly charged windows.intReturns the number of peaks in singly charged windows.getOMSSAIndexes(File modificationsFile) Imports the OMSSA indexes from an XML file.static String[]Returns the output types available.intgetPtmIndex(String modificationName) Returns the index of a given modificationReturns the PTM indexes as a map.Returns the selected output type, omx, csv or pepXML.intReturns the window size for singly charged ions.booleanIndicates whether the modification profile has PTM indexes.booleanIndicates whether N-terminal methionines should be cleaved.booleanIndicates whether charge plus one should be determined algorithmically.booleanIndicates whether the precursor charge shall be estimated for OMSSA.booleanIndicates whether sequence libraries should be mapped in memory.booleanIndicates whether the precursor shall be removed for OMSSA.booleanIndicates whether the precursor shall be scaled for OMSSA.booleanIndicates whether forward ions (b1) should be searched first.booleanIndicates whether positive ions are searched.booleanIndicates whether C-terminal fragments should be searched.booleanIndicates whether the correlation correction score should be used.voidsetCleaveNterMethionine(boolean cleaveNterMethionine) Sets whether N-terminal methionines should be cleaved.voidsetConsecutiveIonProbability(double consecutiveIonProbability) Set the consecutive ion probability.voidsetDetermineChargePlusOneAlgorithmically(boolean determineChargePlusOneAlgorithmically) Sets whether charge plus one should be determined algorithmically.voidsetDoubleChargeWindow(int doubleChargeWindow) Sets the window size for doubly charged ions.voidsetEstimateCharge(boolean estimateCharge) Sets whether the precursor charge shall be estimated for OMSSA.voidsetFractionOfPeaksForChargeEstimation(double fractionOfPeaksForChargeEstimation) Sets the fraction of peaks to be retained for charge >1 estimation.voidsetHighIntensityCutOff(double highIntensityCutOff) Sets the high intensity cut-off as percentage of the most intense ion peak.voidsetHitListLength(int hitListLength) Sets the length of the hit list for OMSSA.voidsetIntensityCutOffIncrement(double intensityCutOffIncrement) Sets the intensity cut-off increment.voidsetIterativeReplaceEvalue(double iterativeReplaceEvalue) Sets the e-value threshold to use to replace a hit for the iterative search.voidsetIterativeSequenceEvalue(double iterativeSequenceEvalue) Sets the e-value threshold to use to consider a sequence for the iterative search.voidsetIterativeSpectrumEvalue(double iterativeSpectrumEvalue) Sets the e-value threshold to use consider a spectrum for the iterative search.voidsetLowIntensityCutOff(double lowIntensityCutOff) Sets the low intensity cut-off as percentage of the most intense ion peak.voidsetMaxEValue(double maxEValue) Sets the maximal e-value searched for.voidsetMaxFragmentCharge(int maxFragmentCharge) Sets the maximal fragment charge.voidsetMaxFragmentPerSeries(int maxFragmentPerSeries) Sets the maximal number of fragments to retain per series.voidsetMaxHitsPerSpectrumPerCharge(int maxHitsPerSpectrumPerCharge) Set the maximal number of hits searched per spectrum and per charge.voidsetMaxMzLadders(int maxMzLadders) Sets the maximal m/z ladder length.voidsetMaxPeptideLength(int maxPeptideLength) Sets the maximal peptide length allowed.voidsetMemoryMappedSequenceLibraries(boolean memoryMappedSequenceLibraries) Sets whether sequence libraries should be mapped in memory.voidsetMinAnnotatedPeaks(int minAnnotatedPeaks) Sets the minimal number of annotated peaks a peptide should have.voidsetMinimalChargeForMultipleChargedFragments(int minimalChargeForMultipleChargedFragments) Sets the minimal precursor charge to account for multiply charged fragments in OMSSA.voidsetMinPeaks(int minPeaks) Sets the minimal number of peaks a spectrum should contain.voidsetMinPeptideLength(int minPeptideLength) Sets the minimal peptide length allowed.voidsetMinPrecPerSpectrum(int minPrecPerSpectrum) Sets the minimal number of precursors per spectrum.voidsetnAnnotatedMostIntensePeaks(int nAnnotatedMostIntensePeaks) Sets the minimal number of annotated most intense peaks.voidsetNeutronThreshold(double neutronThreshold) Sets the mass after which exact neutron mass should be considered in the calculation.voidsetNoProlineRuleSeries(ArrayList<Integer> noProlineRuleSeries) Sets the id numbers of ion series to apply no product ions at proline rule at.voidsetnPeaksInDoubleChargeWindow(int nPeaksIndoubleChargeWindow) Sets the number of peaks in doubly charged windows.voidsetnPeaksInSingleChargeWindow(int nPeaksInSingleChargeWindow) Sets the number of peaks in singly charged windows.voidsetPtmIndex(String modificationName, int ptmIndex) Sets the index for a given modification.voidsetPtmIndexes(ModificationParameters modificationProfile) Set the PTM indexes of the modifications searched.voidsetRemovePrecursor(boolean removePrecursor) Sets whether the precursor shall be removed for OMSSA.voidsetScalePrecursor(boolean scalePrecursor) Sets whether the precursor shall be scaled for OMSSA.voidsetSearchForwardFragmentFirst(boolean searchForwardFragmentFirst) Sets whether forward ions (b1) should be searched first.voidsetSearchPositiveIons(boolean searchPositiveIons) Sets whether positive ions are searched.voidsetSearchRewindFragments(boolean searchRewindFragments) Sets whether C-terminal fragments should be searched.voidsetSelectedOutput(String selectedOutput) Sets the output type, omx, csv or pepXML.voidsetSingleChargeWindow(int singleChargeWindow) Sets the window size for singly charged ions.voidsetUseCorrelationCorrectionScore(boolean useCorrelationCorrectionScore) Sets whether the correlation correction score should be used.toString(boolean html) Returns the parameters as a string.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
OmssaParameters
public OmssaParameters()Constructor.
-
-
Method Details
-
getMaxEValue
public double getMaxEValue()Returns the maximal e-value searched for.- Returns:
- the maximal e-value searched for
-
setMaxEValue
public void setMaxEValue(double maxEValue) Sets the maximal e-value searched for.- Parameters:
maxEValue- the maximal e-value searched for
-
getHitListLength
public int getHitListLength()Returns the length of the hit list for OMSSA.- Returns:
- the length of the hit list for OMSSA
-
setHitListLength
public void setHitListLength(int hitListLength) Sets the length of the hit list for OMSSA.- Parameters:
hitListLength- the length of the hit list for OMSSA
-
getMinimalChargeForMultipleChargedFragments
public int getMinimalChargeForMultipleChargedFragments()Returns the minimal precursor charge to account for multiply charged fragments in OMSSA.- Returns:
- the minimal precursor charge to account for multiply charged fragments in OMSSA
-
setMinimalChargeForMultipleChargedFragments
public void setMinimalChargeForMultipleChargedFragments(int minimalChargeForMultipleChargedFragments) Sets the minimal precursor charge to account for multiply charged fragments in OMSSA.- Parameters:
minimalChargeForMultipleChargedFragments- the minimal precursor charge to account for multiply charged fragments in OMSSA
-
getMaxPeptideLength
public int getMaxPeptideLength()Returns the maximal peptide length allowed.- Returns:
- the maximal peptide length allowed
-
setMaxPeptideLength
public void setMaxPeptideLength(int maxPeptideLength) Sets the maximal peptide length allowed.- Parameters:
maxPeptideLength- the maximal peptide length allowed
-
getMinPeptideLength
public int getMinPeptideLength()Sets the minimal peptide length allowed.- Returns:
- the minimal peptide length allowed
-
setMinPeptideLength
public void setMinPeptideLength(int minPeptideLength) Sets the minimal peptide length allowed.- Parameters:
minPeptideLength- the minimal peptide length allowed
-
isEstimateCharge
public boolean isEstimateCharge()Indicates whether the precursor charge shall be estimated for OMSSA.- Returns:
- a boolean indicating whether the precursor charge shall be estimated for OMSSA
-
setEstimateCharge
public void setEstimateCharge(boolean estimateCharge) Sets whether the precursor charge shall be estimated for OMSSA.- Parameters:
estimateCharge- a boolean indicating whether the precursor charge shall be estimated for OMSSA
-
isRemovePrecursor
public boolean isRemovePrecursor()Indicates whether the precursor shall be removed for OMSSA.- Returns:
- a boolean indicating whether the precursor shall be removed for OMSSA
-
setRemovePrecursor
public void setRemovePrecursor(boolean removePrecursor) Sets whether the precursor shall be removed for OMSSA.- Parameters:
removePrecursor- a boolean indicating whether the precursor shall be removed for OMSSA
-
isScalePrecursor
public boolean isScalePrecursor()Indicates whether the precursor shall be scaled for OMSSA.- Returns:
- a boolean indicating whether the precursor shall be scaled for OMSSA
-
setScalePrecursor
public void setScalePrecursor(boolean scalePrecursor) Sets whether the precursor shall be scaled for OMSSA.- Parameters:
scalePrecursor- a boolean indicating whether the precursor shall be scaled for OMSSA
-
getSelectedOutput
Returns the selected output type, omx, csv or pepXML.- Returns:
- the selected output type
-
setSelectedOutput
Sets the output type, omx, csv or pepXML.- Parameters:
selectedOutput- the output type
-
getOmssaOutputTypes
Returns the output types available.- Returns:
- the output types available
-
isMemoryMappedSequenceLibraries
public boolean isMemoryMappedSequenceLibraries()Indicates whether sequence libraries should be mapped in memory.- Returns:
- a boolean indicating whether sequence libraries should be mapped in memory
-
setMemoryMappedSequenceLibraries
public void setMemoryMappedSequenceLibraries(boolean memoryMappedSequenceLibraries) Sets whether sequence libraries should be mapped in memory.- Parameters:
memoryMappedSequenceLibraries- a boolean indicating whether sequence libraries should be mapped in memory
-
getNeutronThreshold
public double getNeutronThreshold()Returns the mass after which exact neutron mass should be considered in the calculation.- Returns:
- the mass after which exact neutron mass should be considered in the calculation
-
setNeutronThreshold
public void setNeutronThreshold(double neutronThreshold) Sets the mass after which exact neutron mass should be considered in the calculation.- Parameters:
neutronThreshold- the mass after which exact neutron mass should be considered in the calculation
-
getLowIntensityCutOff
public double getLowIntensityCutOff()Returns the low intensity cut-off as percentage of the most intense ion peak.- Returns:
- the low intensity cut-off as percentage of the most intense ion peak
-
setLowIntensityCutOff
public void setLowIntensityCutOff(double lowIntensityCutOff) Sets the low intensity cut-off as percentage of the most intense ion peak.- Parameters:
lowIntensityCutOff- the low intensity cut-off as percentage of the most intense ion peak
-
getHighIntensityCutOff
public double getHighIntensityCutOff()Returns the high intensity cut-off as percentage of the most intense ion peak.- Returns:
- the high intensity cut-off as percentage of the most intense ion peak
-
setHighIntensityCutOff
public void setHighIntensityCutOff(double highIntensityCutOff) Sets the high intensity cut-off as percentage of the most intense ion peak.- Parameters:
highIntensityCutOff- the high intensity cut-off as percentage of the most intense ion peak
-
getIntensityCutOffIncrement
public double getIntensityCutOffIncrement()Returns the intensity cut-off increment.- Returns:
- the intensity cut-off increment
-
setIntensityCutOffIncrement
public void setIntensityCutOffIncrement(double intensityCutOffIncrement) Sets the intensity cut-off increment.- Parameters:
intensityCutOffIncrement- the intensity cut-off increment
-
getSingleChargeWindow
public int getSingleChargeWindow()Returns the window size for singly charged ions.- Returns:
- the window size for singly charged ions
-
setSingleChargeWindow
public void setSingleChargeWindow(int singleChargeWindow) Sets the window size for singly charged ions.- Parameters:
singleChargeWindow- the window size for singly charged ions
-
getDoubleChargeWindow
public int getDoubleChargeWindow()Returns the window size for doubly charged ions.- Returns:
- the window size for doubly charged ions
-
setDoubleChargeWindow
public void setDoubleChargeWindow(int doubleChargeWindow) Sets the window size for doubly charged ions.- Parameters:
doubleChargeWindow- the window size for doubly charged ions
-
getnPeaksInSingleChargeWindow
public int getnPeaksInSingleChargeWindow()Returns the number of peaks in singly charged windows.- Returns:
- the number of peaks in singly charged windows
-
setnPeaksInSingleChargeWindow
public void setnPeaksInSingleChargeWindow(int nPeaksInSingleChargeWindow) Sets the number of peaks in singly charged windows.- Parameters:
nPeaksInSingleChargeWindow- the number of peaks in singly charged windows
-
getnPeaksInDoubleChargeWindow
public int getnPeaksInDoubleChargeWindow()Returns the number of peaks in doubly charged windows.- Returns:
- the number of peaks in doubly charged windows
-
setnPeaksInDoubleChargeWindow
public void setnPeaksInDoubleChargeWindow(int nPeaksIndoubleChargeWindow) Sets the number of peaks in doubly charged windows.- Parameters:
nPeaksIndoubleChargeWindow- the number of peaks in doubly charged windows
-
getMaxHitsPerSpectrumPerCharge
public int getMaxHitsPerSpectrumPerCharge()Returns the maximal number of hits searched per spectrum and per charge.- Returns:
- the maximal number of hits searched per spectrum and per charge
-
setMaxHitsPerSpectrumPerCharge
public void setMaxHitsPerSpectrumPerCharge(int maxHitsPerSpectrumPerCharge) Set the maximal number of hits searched per spectrum and per charge.- Parameters:
maxHitsPerSpectrumPerCharge- the maximal number of hits searched per spectrum and per charge
-
getnAnnotatedMostIntensePeaks
public int getnAnnotatedMostIntensePeaks()Returns the minimal number of annotated most intense peaks.- Returns:
- the minimal number of annotated most intense peaks
-
setnAnnotatedMostIntensePeaks
public void setnAnnotatedMostIntensePeaks(int nAnnotatedMostIntensePeaks) Sets the minimal number of annotated most intense peaks.- Parameters:
nAnnotatedMostIntensePeaks- the minimal number of annotated most intense peaks
-
getMinAnnotatedPeaks
public int getMinAnnotatedPeaks()Returns the minimal number of annotated peaks a peptide should have.- Returns:
- the minimal number of annotated peaks a peptide should have
-
setMinAnnotatedPeaks
public void setMinAnnotatedPeaks(int minAnnotatedPeaks) Sets the minimal number of annotated peaks a peptide should have.- Parameters:
minAnnotatedPeaks- the minimal number of annotated peaks a peptide should have
-
getMinPeaks
public int getMinPeaks()Returns the minimal number of peaks a spectrum should contain.- Returns:
- the minimal number of peaks a spectrum should contain
-
setMinPeaks
public void setMinPeaks(int minPeaks) Sets the minimal number of peaks a spectrum should contain.- Parameters:
minPeaks- the minimal number of peaks a spectrum should contain
-
isCleaveNterMethionine
public boolean isCleaveNterMethionine()Indicates whether N-terminal methionines should be cleaved.- Returns:
- a boolean indicating whether N-terminal methionines should be cleaved
-
setCleaveNterMethionine
public void setCleaveNterMethionine(boolean cleaveNterMethionine) Sets whether N-terminal methionines should be cleaved.- Parameters:
cleaveNterMethionine- whether N-terminal methionines should be cleaved
-
getMaxMzLadders
public int getMaxMzLadders()Returns the maximal m/z ladder length.- Returns:
- the maximal m/z ladder length
-
setMaxMzLadders
public void setMaxMzLadders(int maxMzLadders) Sets the maximal m/z ladder length.- Parameters:
maxMzLadders- the maximal m/z ladder length
-
getMaxFragmentCharge
public int getMaxFragmentCharge()Returns the maximal fragment charge.- Returns:
- the maximal fragment charge
-
setMaxFragmentCharge
public void setMaxFragmentCharge(int maxFragmentCharge) Sets the maximal fragment charge.- Parameters:
maxFragmentCharge- the maximal fragment charge
-
getFractionOfPeaksForChargeEstimation
public double getFractionOfPeaksForChargeEstimation()Returns the fraction of peaks to be retained for charge >1 estimation.- Returns:
- the fraction of peaks to be retained for charge >1 estimation
-
setFractionOfPeaksForChargeEstimation
public void setFractionOfPeaksForChargeEstimation(double fractionOfPeaksForChargeEstimation) Sets the fraction of peaks to be retained for charge >1 estimation.- Parameters:
fractionOfPeaksForChargeEstimation- the fraction of peaks to be retained for charge >1 estimation
-
isDetermineChargePlusOneAlgorithmically
public boolean isDetermineChargePlusOneAlgorithmically()Indicates whether charge plus one should be determined algorithmically.- Returns:
- whether charge plus one should be determined algorithmically
-
setDetermineChargePlusOneAlgorithmically
public void setDetermineChargePlusOneAlgorithmically(boolean determineChargePlusOneAlgorithmically) Sets whether charge plus one should be determined algorithmically.- Parameters:
determineChargePlusOneAlgorithmically- whether charge plus one should be determined algorithmically
-
isSearchPositiveIons
public boolean isSearchPositiveIons()Indicates whether positive ions are searched. False means negative ions.- Returns:
- a boolean indicating whether positive ions are searched
-
setSearchPositiveIons
public void setSearchPositiveIons(boolean searchPositiveIons) Sets whether positive ions are searched. False means negative ions.- Parameters:
searchPositiveIons- a boolean indicating whether positive ions are searched
-
getMinPrecPerSpectrum
public int getMinPrecPerSpectrum()Returns the minimal number of precursors per spectrum.- Returns:
- the minimal number of precursors per spectrum
-
setMinPrecPerSpectrum
public void setMinPrecPerSpectrum(int minPrecPerSpectrum) Sets the minimal number of precursors per spectrum.- Parameters:
minPrecPerSpectrum- the minimal number of precursors per spectrum
-
isSearchForwardFragmentFirst
public boolean isSearchForwardFragmentFirst()Indicates whether forward ions (b1) should be searched first.- Returns:
- a boolean indicating whether forward ions (b1) should be searched first
-
setSearchForwardFragmentFirst
public void setSearchForwardFragmentFirst(boolean searchForwardFragmentFirst) Sets whether forward ions (b1) should be searched first.- Parameters:
searchForwardFragmentFirst- whether forward ions (b1) should be searched first
-
isSearchRewindFragments
public boolean isSearchRewindFragments()Indicates whether C-terminal fragments should be searched.- Returns:
- a boolean indicating whether C-terminal fragments should be searched
-
setSearchRewindFragments
public void setSearchRewindFragments(boolean searchRewindFragments) Sets whether C-terminal fragments should be searched.- Parameters:
searchRewindFragments- whether C-terminal fragments should be searched
-
getMaxFragmentPerSeries
public int getMaxFragmentPerSeries()Returns the maximal number of fragments to retain per series.- Returns:
- the maximal number of fragments to retain per series
-
setMaxFragmentPerSeries
public void setMaxFragmentPerSeries(int maxFragmentPerSeries) Sets the maximal number of fragments to retain per series.- Parameters:
maxFragmentPerSeries- the maximal number of fragments to retain per series
-
isUseCorrelationCorrectionScore
public boolean isUseCorrelationCorrectionScore()Indicates whether the correlation correction score should be used.- Returns:
- a boolean indicating whether the correlation correction score should be used
-
setUseCorrelationCorrectionScore
public void setUseCorrelationCorrectionScore(boolean useCorrelationCorrectionScore) Sets whether the correlation correction score should be used.- Parameters:
useCorrelationCorrectionScore- a boolean indicating whether the correlation correction score should be used
-
getConsecutiveIonProbability
public double getConsecutiveIonProbability()Returns the consecutive ion probability.- Returns:
- the consecutive ion probability
-
setConsecutiveIonProbability
public void setConsecutiveIonProbability(double consecutiveIonProbability) Set the consecutive ion probability.- Parameters:
consecutiveIonProbability- the consecutive ion probability
-
getIterativeSequenceEvalue
public double getIterativeSequenceEvalue()Returns the e-value threshold to use to consider a sequence for the iterative search. 0.0 means all.- Returns:
- the e-value threshold to use to consider a sequence for the iterative search
-
setIterativeSequenceEvalue
public void setIterativeSequenceEvalue(double iterativeSequenceEvalue) Sets the e-value threshold to use to consider a sequence for the iterative search. 0.0 means all.- Parameters:
iterativeSequenceEvalue- the e-value threshold to use to consider a sequence for the iterative search
-
getIterativeReplaceEvalue
public double getIterativeReplaceEvalue()Returns the e-value threshold to use to replace a hit for the iterative search. 0.0 means the best hit will be retained.- Returns:
- the e-value threshold to use to replace a hit for the iterative search
-
setIterativeReplaceEvalue
public void setIterativeReplaceEvalue(double iterativeReplaceEvalue) Sets the e-value threshold to use to replace a hit for the iterative search. 0.0 means the best hit will be retained.- Parameters:
iterativeReplaceEvalue- the e-value threshold to use to replace a hit for the iterative search
-
getIterativeSpectrumEvalue
public double getIterativeSpectrumEvalue()Returns the e-value threshold to use consider a spectrum for the iterative search. 0.0 means all.- Returns:
- the e-value threshold to use consider a spectrum for the iterative search
-
setIterativeSpectrumEvalue
public void setIterativeSpectrumEvalue(double iterativeSpectrumEvalue) Sets the e-value threshold to use consider a spectrum for the iterative search. 0.0 means all.- Parameters:
iterativeSpectrumEvalue- the e-value threshold to use consider a spectrum for the iterative search
-
getNoProlineRuleSeries
Returns the id numbers of ion series to apply no product ions at proline rule at.- Returns:
- the id numbers of ion series to apply no product ions at proline rule at
-
setNoProlineRuleSeries
Sets the id numbers of ion series to apply no product ions at proline rule at.- Parameters:
noProlineRuleSeries- the id numbers of ion series to apply no product ions at proline rule at
-
setPtmIndex
Sets the index for a given modification. If another modification was already given with the same index the previous setting will be silently overwritten.- Parameters:
modificationName- the name of the modificationptmIndex- the index of the modification
-
getModificationName
Returns the name of the modification indexed by the given index. Null if not found.- Parameters:
ptmIndex- the index of the modification to look for- Returns:
- the name of the modification indexed by the given index
-
hasModificationIndexes
public boolean hasModificationIndexes()Indicates whether the modification profile has PTM indexes.- Returns:
- true if an PTM indexes map is set
-
getPtmIndex
Returns the index of a given modification- Parameters:
modificationName- the name of the modification- Returns:
- the corresponding index
-
getPtmIndexes
Returns the PTM indexes as a map.- Returns:
- the PTM indexes
-
setPtmIndexes
Set the PTM indexes of the modifications searched.- Parameters:
modificationProfile- the modification profile of this search
-
getOMSSAIndexes
public static HashMap<String,Integer> getOMSSAIndexes(File modificationsFile) throws org.xmlpull.v1.XmlPullParserException, FileNotFoundException, IOException Imports the OMSSA indexes from an XML file.- Parameters:
modificationsFile- the modification file- Returns:
- a map of all indexes: modification name > OMSSA index
- Throws:
org.xmlpull.v1.XmlPullParserException- if an XmlPullParserException occursFileNotFoundException- if a FileNotFoundException occursIOException- if an IOException occurs
-
getAlgorithm
Description copied from interface:IdentificationAlgorithmParameterReturns the identification algorithm.- Specified by:
getAlgorithmin interfaceIdentificationAlgorithmParameter- Returns:
- the identification algorithm
-
equals
Description copied from interface:IdentificationAlgorithmParameterIndicates whether another identificationAlgorithmParameter has the same parameters.- Specified by:
equalsin interfaceIdentificationAlgorithmParameter- Parameters:
identificationAlgorithmParameter- the other identificationAlgorithmParameter- Returns:
- true if the algorithm and parameters are the same
-
toString
Description copied from interface:IdentificationAlgorithmParameterReturns the parameters as a string.- Specified by:
toStringin interfaceIdentificationAlgorithmParameter- Parameters:
html- use HTML formatting- Returns:
- the parameters as a string
-