public class OmssaParameters extends Object implements IdentificationAlgorithmParameter
Constructor and Description |
---|
OmssaParameters()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(IdentificationAlgorithmParameter identificationAlgorithmParameter)
Indicates whether another identificationAlgorithmParameter has the same
parameters.
|
Advocate |
getAlgorithm()
Returns the identification algorithm.
|
Double |
getConsecutiveIonProbability()
Returns the consecutive ion probability.
|
Integer |
getDoubleChargeWindow()
Returns the window size for doubly charged ions.
|
Double |
getFractionOfPeaksForChargeEstimation()
Returns the fraction of peaks to be retained for charge >1 estimation.
|
Double |
getHighIntensityCutOff()
Returns the high intensity cut-off as percentage of the most intense ion
peak.
|
Integer |
getHitListLength()
Returns the length of the hit list for OMSSA.
|
Double |
getIntensityCutOffIncrement()
Returns the intensity cut-off increment.
|
Double |
getIterativeReplaceEvalue()
Returns the e-value threshold to use to replace a hit for the iterative
search.
|
Double |
getIterativeSequenceEvalue()
Returns the e-value threshold to use to consider a sequence for the
iterative search.
|
Double |
getIterativeSpectrumEvalue()
Returns the e-value threshold to use consider a spectrum for the
iterative search.
|
Double |
getLowIntensityCutOff()
Returns the low intensity cut-off as percentage of the most intense ion
peak.
|
Double |
getMaxEValue()
Returns the maximal e-value searched for.
|
Integer |
getMaxFragmentCharge()
Returns the maximal fragment charge.
|
Integer |
getMaxFragmentPerSeries()
Returns the maximal number of fragments to retain per series.
|
Integer |
getMaxHitsPerSpectrumPerCharge()
Returns the maximal number of hits searched per spectrum and per charge.
|
Integer |
getMaxMzLadders()
Returns the maximal m/z ladder length.
|
Integer |
getMaxPeptideLength()
Returns the maximal peptide length allowed.
|
Integer |
getMinAnnotatedPeaks()
Returns the minimal number of annotated peaks a peptide should have.
|
Charge |
getMinimalChargeForMultipleChargedFragments()
Returns the minimal precursor charge to account for multiply charged
fragments in OMSSA.
|
Integer |
getMinPeaks()
Returns the minimal number of peaks a spectrum should contain.
|
Integer |
getMinPeptideLength()
Sets the minimal peptide length allowed.
|
Integer |
getMinPrecPerSpectrum()
Returns the minimal number of precursors per spectrum.
|
String |
getModificationName(int ptmIndex)
Returns the name of the modification indexed by the given index.
|
Integer |
getnAnnotatedMostIntensePeaks()
Returns the minimal number of annotated most intense peaks.
|
Double |
getNeutronThreshold()
Returns the mass after which exact neutron mass should be considered in
the calculation.
|
ArrayList<Integer> |
getNoProlineRuleSeries()
Returns the id numbers of ion series to apply no product ions at proline
rule at.
|
Integer |
getnPeaksInDoubleChargeWindow()
Returns the number of peaks in doubly charged windows.
|
Integer |
getnPeaksInSingleChargeWindow()
Returns the number of peaks in singly charged windows.
|
static HashMap<String,Integer> |
getOMSSAIndexes(File modificationsFile)
Imports the OMSSA indexes from an XML file.
|
static String[] |
getOmssaOutputTypes()
Returns the output types available.
|
Integer |
getPtmIndex(String modificationName)
Returns the index of a given modification, null if not found.
|
HashMap<Integer,String> |
getPtmIndexes()
Returns the PTM indexes as a map.
|
String |
getSelectedOutput()
Returns the selected output type, omx, csv or pepXML.
|
Integer |
getSingleChargeWindow()
Returns the window size for singly charged ions.
|
boolean |
hasPtmIndexes()
Indicates whether the modification profile has PTM indexes.
|
Boolean |
isCleaveNterMethionine()
Indicates whether N-terminal methionines should be cleaved.
|
Boolean |
isDetermineChargePlusOneAlgorithmically()
Indicates whether charge plus one should be determined algorithmically.
|
Boolean |
isEstimateCharge()
Indicates whether the precursor charge shall be estimated for OMSSA.
|
Boolean |
isMemoryMappedSequenceLibraries()
Indicates whether sequence libraries should be mapped in memory.
|
Boolean |
isRemovePrecursor()
Indicates whether the precursor shall be removed for OMSSA.
|
Boolean |
isScalePrecursor()
Indicates whether the precursor shall be scaled for OMSSA.
|
Boolean |
isSearchForwardFragmentFirst()
Indicates whether forward ions (b1) should be searched first.
|
Boolean |
isSearchPositiveIons()
Indicates whether positive ions are searched.
|
Boolean |
isSearchRewindFragments()
Indicates whether C-terminal fragments should be searched.
|
Boolean |
isUseCorrelationCorrectionScore()
Indicates whether the correlation correction score should be used.
|
void |
setCleaveNterMethionine(Boolean cleaveNterMethionine)
Sets whether N-terminal methionines should be cleaved.
|
void |
setConsecutiveIonProbability(Double consecutiveIonProbability)
Set the consecutive ion probability.
|
void |
setDetermineChargePlusOneAlgorithmically(Boolean determineChargePlusOneAlgorithmically)
Sets whether charge plus one should be determined algorithmically.
|
void |
setDoubleChargeWindow(Integer doubleChargeWindow)
Sets the window size for doubly charged ions.
|
void |
setEstimateCharge(Boolean estimateCharge)
Sets whether the precursor charge shall be estimated for OMSSA.
|
void |
setFractionOfPeaksForChargeEstimation(Double fractionOfPeaksForChargeEstimation)
Sets the fraction of peaks to be retained for charge >1 estimation.
|
void |
setHighIntensityCutOff(Double highIntensityCutOff)
Sets the high intensity cut-off as percentage of the most intense ion
peak.
|
void |
setHitListLength(Integer hitListLength)
Sets the length of the hit list for OMSSA.
|
void |
setIntensityCutOffIncrement(Double intensityCutOffIncrement)
Sets the intensity cut-off increment.
|
void |
setIterativeReplaceEvalue(Double iterativeReplaceEvalue)
Sets the e-value threshold to use to replace a hit for the iterative
search.
|
void |
setIterativeSequenceEvalue(Double iterativeSequenceEvalue)
Sets the e-value threshold to use to consider a sequence for the
iterative search.
|
void |
setIterativeSpectrumEvalue(Double iterativeSpectrumEvalue)
Sets the e-value threshold to use consider a spectrum for the iterative
search.
|
void |
setLowIntensityCutOff(Double lowIntensityCutOff)
Sets the low intensity cut-off as percentage of the most intense ion
peak.
|
void |
setMaxEValue(Double maxEValue)
Sets the maximal e-value searched for.
|
void |
setMaxFragmentCharge(Integer maxFragmentCharge)
Sets the maximal fragment charge.
|
void |
setMaxFragmentPerSeries(Integer maxFragmentPerSeries)
Sets the maximal number of fragments to retain per series.
|
void |
setMaxHitsPerSpectrumPerCharge(Integer maxHitsPerSpectrumPerCharge)
Set the maximal number of hits searched per spectrum and per charge.
|
void |
setMaxMzLadders(Integer maxMzLadders)
Sets the maximal m/z ladder length.
|
void |
setMaxPeptideLength(Integer maxPeptideLength)
Sets the maximal peptide length allowed.
|
void |
setMemoryMappedSequenceLibraries(Boolean memoryMappedSequenceLibraries)
Sets whether sequence libraries should be mapped in memory.
|
void |
setMinAnnotatedPeaks(Integer minAnnotatedPeaks)
Sets the minimal number of annotated peaks a peptide should have.
|
void |
setMinimalChargeForMultipleChargedFragments(Charge minimalChargeForMultipleChargedFragments)
Sets the minimal precursor charge to account for multiply charged
fragments in OMSSA.
|
void |
setMinPeaks(Integer minPeaks)
Sets the minimal number of peaks a spectrum should contain.
|
void |
setMinPeptideLength(Integer minPeptideLength)
Sets the minimal peptide length allowed.
|
void |
setMinPrecPerSpectrum(Integer minPrecPerSpectrum)
Sets the minimal number of precursors per spectrum.
|
void |
setnAnnotatedMostIntensePeaks(Integer nAnnotatedMostIntensePeaks)
Sets the minimal number of annotated most intense peaks.
|
void |
setNeutronThreshold(Double neutronThreshold)
Sets the mass after which exact neutron mass should be considered in the
calculation.
|
void |
setNoProlineRuleSeries(ArrayList<Integer> noProlineRuleSeries)
Sets the id numbers of ion series to apply no product ions at proline
rule at.
|
void |
setnPeaksInDoubleChargeWindow(Integer nPeaksInDoubleChargeWindow)
Sets the number of peaks in doubly charged windows.
|
void |
setnPeaksInSingleChargeWindow(Integer nPeaksInSingleChargeWindow)
Sets the number of peaks in singly charged windows.
|
void |
setPtmIndex(String modificationName,
int ptmIndex)
Sets the index for a given modification.
|
void |
setPtmIndexes(PtmSettings modificationProfile)
Set the PTM indexes of the modifications searched.
|
void |
setRemovePrecursor(Boolean removePrecursor)
Sets whether the precursor shall be removed for OMSSA.
|
void |
setScalePrecursor(Boolean scalePrecursor)
Sets whether the precursor shall be scaled for OMSSA.
|
void |
setSearchForwardFragmentFirst(Boolean searchForwardFragmentFirst)
Sets whether forward ions (b1) should be searched first.
|
void |
setSearchPositiveIons(Boolean searchPositiveIons)
Sets whether positive ions are searched.
|
void |
setSearchRewindFragments(Boolean searchRewindFragments)
Sets whether C-terminal fragments should be searched.
|
void |
setSelectedOutput(String selectedOutput)
Sets the output type, omx, csv or pepXML.
|
void |
setSingleChargeWindow(Integer singleChargeWindow)
Sets the window size for singly charged ions.
|
void |
setUseCorrelationCorrectionScore(Boolean useCorrelationCorrectionScore)
Sets whether the correlation correction score should be used.
|
String |
toString(boolean html)
Returns the parameters as a string.
|
public Double getMaxEValue()
public void setMaxEValue(Double maxEValue)
maxEValue
- the maximal e-value searched forpublic Integer getHitListLength()
public void setHitListLength(Integer hitListLength)
hitListLength
- the length of the hit list for OMSSApublic Charge getMinimalChargeForMultipleChargedFragments()
public void setMinimalChargeForMultipleChargedFragments(Charge minimalChargeForMultipleChargedFragments)
minimalChargeForMultipleChargedFragments
- the minimal precursor
charge to account for multiply charged fragments in OMSSApublic Integer getMaxPeptideLength()
public void setMaxPeptideLength(Integer maxPeptideLength)
maxPeptideLength
- the maximal peptide length allowedpublic Integer getMinPeptideLength()
public void setMinPeptideLength(Integer minPeptideLength)
minPeptideLength
- the minimal peptide length allowedpublic Boolean isEstimateCharge()
public void setEstimateCharge(Boolean estimateCharge)
estimateCharge
- a boolean indicating whether the precursor charge
shall be estimated for OMSSApublic Boolean isRemovePrecursor()
public void setRemovePrecursor(Boolean removePrecursor)
removePrecursor
- a boolean indicating whether the precursor shall
be removed for OMSSApublic Boolean isScalePrecursor()
public void setScalePrecursor(Boolean scalePrecursor)
scalePrecursor
- a boolean indicating whether the precursor shall be
scaled for OMSSApublic String getSelectedOutput()
public void setSelectedOutput(String selectedOutput)
selectedOutput
- the output typepublic static String[] getOmssaOutputTypes()
public Boolean isMemoryMappedSequenceLibraries()
public void setMemoryMappedSequenceLibraries(Boolean memoryMappedSequenceLibraries)
memoryMappedSequenceLibraries
- a boolean indicating whether
sequence libraries should be mapped in memorypublic Double getNeutronThreshold()
public void setNeutronThreshold(Double neutronThreshold)
neutronThreshold
- the mass after which exact neutron mass should be
considered in the calculationpublic Double getLowIntensityCutOff()
public void setLowIntensityCutOff(Double lowIntensityCutOff)
lowIntensityCutOff
- the low intensity cut-off as percentage of the
most intense ion peakpublic Double getHighIntensityCutOff()
public void setHighIntensityCutOff(Double highIntensityCutOff)
highIntensityCutOff
- the high intensity cut-off as percentage of
the most intense ion peakpublic Double getIntensityCutOffIncrement()
public void setIntensityCutOffIncrement(Double intensityCutOffIncrement)
intensityCutOffIncrement
- the intensity cut-off incrementpublic Integer getSingleChargeWindow()
public void setSingleChargeWindow(Integer singleChargeWindow)
singleChargeWindow
- the window size for singly charged ionspublic Integer getDoubleChargeWindow()
public void setDoubleChargeWindow(Integer doubleChargeWindow)
doubleChargeWindow
- the window size for doubly charged ionspublic Integer getnPeaksInSingleChargeWindow()
public void setnPeaksInSingleChargeWindow(Integer nPeaksInSingleChargeWindow)
nPeaksInSingleChargeWindow
- the number of peaks in singly charged
windowspublic Integer getnPeaksInDoubleChargeWindow()
public void setnPeaksInDoubleChargeWindow(Integer nPeaksInDoubleChargeWindow)
nPeaksInDoubleChargeWindow
- the number of peaks in doubly charged
windowspublic Integer getMaxHitsPerSpectrumPerCharge()
public void setMaxHitsPerSpectrumPerCharge(Integer maxHitsPerSpectrumPerCharge)
maxHitsPerSpectrumPerCharge
- the maximal number of hits searched
per spectrum and per chargepublic Integer getnAnnotatedMostIntensePeaks()
public void setnAnnotatedMostIntensePeaks(Integer nAnnotatedMostIntensePeaks)
nAnnotatedMostIntensePeaks
- the minimal number of annotated most
intense peakspublic Integer getMinAnnotatedPeaks()
public void setMinAnnotatedPeaks(Integer minAnnotatedPeaks)
minAnnotatedPeaks
- the minimal number of annotated peaks a peptide
should havepublic Integer getMinPeaks()
public void setMinPeaks(Integer minPeaks)
minPeaks
- the minimal number of peaks a spectrum should containpublic Boolean isCleaveNterMethionine()
public void setCleaveNterMethionine(Boolean cleaveNterMethionine)
cleaveNterMethionine
- whether N-terminal methionines should be
cleavedpublic Integer getMaxMzLadders()
public void setMaxMzLadders(Integer maxMzLadders)
maxMzLadders
- the maximal m/z ladder lengthpublic Integer getMaxFragmentCharge()
public void setMaxFragmentCharge(Integer maxFragmentCharge)
maxFragmentCharge
- the maximal fragment chargepublic Double getFractionOfPeaksForChargeEstimation()
public void setFractionOfPeaksForChargeEstimation(Double fractionOfPeaksForChargeEstimation)
fractionOfPeaksForChargeEstimation
- the fraction of peaks to be
retained for charge >1 estimationpublic Boolean isDetermineChargePlusOneAlgorithmically()
public void setDetermineChargePlusOneAlgorithmically(Boolean determineChargePlusOneAlgorithmically)
determineChargePlusOneAlgorithmically
- whether charge plus one
should be determined algorithmicallypublic Boolean isSearchPositiveIons()
public void setSearchPositiveIons(Boolean searchPositiveIons)
searchPositiveIons
- a boolean indicating whether positive ions are
searchedpublic Integer getMinPrecPerSpectrum()
public void setMinPrecPerSpectrum(Integer minPrecPerSpectrum)
minPrecPerSpectrum
- the minimal number of precursors per spectrumpublic Boolean isSearchForwardFragmentFirst()
public void setSearchForwardFragmentFirst(Boolean searchForwardFragmentFirst)
searchForwardFragmentFirst
- whether forward ions (b1) should be
searched firstpublic Boolean isSearchRewindFragments()
public void setSearchRewindFragments(Boolean searchRewindFragments)
searchRewindFragments
- whether C-terminal fragments should be
searchedpublic Integer getMaxFragmentPerSeries()
public void setMaxFragmentPerSeries(Integer maxFragmentPerSeries)
maxFragmentPerSeries
- the maximal number of fragments to retain per
seriespublic Boolean isUseCorrelationCorrectionScore()
public void setUseCorrelationCorrectionScore(Boolean useCorrelationCorrectionScore)
useCorrelationCorrectionScore
- a boolean indicating whether the
correlation correction score should be usedpublic Double getConsecutiveIonProbability()
public void setConsecutiveIonProbability(Double consecutiveIonProbability)
consecutiveIonProbability
- the consecutive ion probabilitypublic Double getIterativeSequenceEvalue()
public void setIterativeSequenceEvalue(Double iterativeSequenceEvalue)
iterativeSequenceEvalue
- the e-value threshold to use to consider a
sequence for the iterative searchpublic Double getIterativeReplaceEvalue()
public void setIterativeReplaceEvalue(Double iterativeReplaceEvalue)
iterativeReplaceEvalue
- the e-value threshold to use to replace a
hit for the iterative searchpublic Double getIterativeSpectrumEvalue()
public void setIterativeSpectrumEvalue(Double iterativeSpectrumEvalue)
iterativeSpectrumEvalue
- the e-value threshold to use consider a
spectrum for the iterative searchpublic ArrayList<Integer> getNoProlineRuleSeries()
public void setNoProlineRuleSeries(ArrayList<Integer> noProlineRuleSeries)
noProlineRuleSeries
- the id numbers of ion series to apply no
product ions at proline rule atpublic void setPtmIndex(String modificationName, int ptmIndex)
modificationName
- the name of the modificationptmIndex
- the index of the modificationpublic String getModificationName(int ptmIndex)
ptmIndex
- the index of the modification to look forpublic boolean hasPtmIndexes()
public Integer getPtmIndex(String modificationName)
modificationName
- the name of the modificationpublic HashMap<Integer,String> getPtmIndexes()
public void setPtmIndexes(PtmSettings modificationProfile)
modificationProfile
- the modification profile of this searchpublic static HashMap<String,Integer> getOMSSAIndexes(File modificationsFile) throws org.xmlpull.v1.XmlPullParserException, FileNotFoundException, IOException
modificationsFile
- the modification fileorg.xmlpull.v1.XmlPullParserException
- if an XmlPullParserException occursFileNotFoundException
- if a FileNotFoundException occursIOException
- if an IOException occurspublic Advocate getAlgorithm()
IdentificationAlgorithmParameter
getAlgorithm
in interface IdentificationAlgorithmParameter
public boolean equals(IdentificationAlgorithmParameter identificationAlgorithmParameter)
IdentificationAlgorithmParameter
equals
in interface IdentificationAlgorithmParameter
identificationAlgorithmParameter
- the other
identificationAlgorithmParameterpublic String toString(boolean html)
IdentificationAlgorithmParameter
toString
in interface IdentificationAlgorithmParameter
html
- use HTML formattingCopyright © 2016. All rights reserved.