public class SequenceMatchingPreferences extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SequenceMatchingPreferences.MatchingType
The different types of amino acid matching.
|
Modifier and Type | Field and Description |
---|---|
static SequenceMatchingPreferences |
defaultStringMatching
Default string matching.
|
Constructor and Description |
---|
SequenceMatchingPreferences()
Constructor for empty preferences.
|
Modifier and Type | Method and Description |
---|---|
static SequenceMatchingPreferences |
getDefaultSequenceMatching(SearchParameters searchParameters)
Returns default preferences from amino acid matching.
|
Double |
getLimitX()
Returns the maximal share of Xs a match can contain.
|
Integer |
getMaxMutationsPerPeptide()
Returns the maximal number of mutations allowed per peptide.
|
Double |
getMs2MzTolerance()
Returns the ms2 m/z tolerance for amino acid distinction.
|
MutationMatrix |
getMutationMatrix()
Returns the mutation matrix to use.
|
SequenceMatchingPreferences.MatchingType |
getSequenceMatchingType()
Returns the sequence matching type.
|
static SequenceMatchingPreferences |
getStringMatching()
Returns preferences for simple string matching.
|
boolean |
hasLimitX()
Indicates whether the share of Xs should be limited.
|
boolean |
hasMutationMatrix()
Indicates whether a mutation matrix shall be used.
|
boolean |
isSameAs(SequenceMatchingPreferences proteinInferencePreferences)
Indicates whether another protein inference preferences is the same as
this one.
|
void |
setLimitX(Double limitX)
Sets the maximal share of Xs a match can contain.
|
void |
setMaxMutationsPerPeptide(Integer maxMutationsPerPeptide)
Sets the maximal number of mutations allowed per peptide.
|
void |
setMs2MzTolerance(Double ms2MzTolerance)
Sets the ms2 m/z tolerance for amino acid distinction.
|
void |
setMutationMatrix(MutationMatrix mutationMatrix)
Sets the mutation matrix to use.
|
void |
setSequenceMatchingType(SequenceMatchingPreferences.MatchingType sequenceMatchingType)
Sets the sequence matching type.
|
public static final SequenceMatchingPreferences defaultStringMatching
public SequenceMatchingPreferences()
public static SequenceMatchingPreferences getStringMatching()
public static SequenceMatchingPreferences getDefaultSequenceMatching(SearchParameters searchParameters)
searchParameters
- the identification parameters usedpublic SequenceMatchingPreferences.MatchingType getSequenceMatchingType()
public void setSequenceMatchingType(SequenceMatchingPreferences.MatchingType sequenceMatchingType)
sequenceMatchingType
- the sequence matching typepublic Double getMs2MzTolerance()
public void setMs2MzTolerance(Double ms2MzTolerance)
ms2MzTolerance
- the ms2 m/z tolerance for amino acid distinctionpublic Double getLimitX()
public boolean hasLimitX()
public void setLimitX(Double limitX)
limitX
- the maximal share of Xs a match can containpublic MutationMatrix getMutationMatrix()
public void setMutationMatrix(MutationMatrix mutationMatrix)
mutationMatrix
- the mutation matrix to usepublic boolean hasMutationMatrix()
public Integer getMaxMutationsPerPeptide()
public void setMaxMutationsPerPeptide(Integer maxMutationsPerPeptide)
maxMutationsPerPeptide
- the maximal number of mutations allowed per
peptidepublic boolean isSameAs(SequenceMatchingPreferences proteinInferencePreferences)
proteinInferencePreferences
- the other protein inference
preferencesCopyright © 2014. All rights reserved.