Class ModificationNameMapper
java.lang.Object
com.compomics.util.experiment.identification.modification.search_engine_mapping.ModificationNameMapper
Functions mapping search engine modifications to utilities by name.
- Author:
- Marc Vaudel, Harald Barsnes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe mass tolerance to be used to match modifications from search engines and expected modifications. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPossibleModificationNames(Peptide peptide, ModificationMatch modificationMatch, IdfileReader idfileReader, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible modification names from a search engine modification indexed by site.getPossibleModificationNamesAndromeda(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible Andromeda modification names.getPossibleModificationNamesByMass(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible modifications names by mass.getPossibleModificationNamesByName(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible modifications by name.getPossibleModificationNamesOmssa(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible OMSSA modification names.
-
Field Details
-
MOD_MASS_TOLERANCE
public static final double MOD_MASS_TOLERANCEThe mass tolerance to be used to match modifications from search engines and expected modifications. 0.01 by default, the mass resolution in X!Tandem result files.- See Also:
-
-
Constructor Details
-
ModificationNameMapper
public ModificationNameMapper()
-
-
Method Details
-
getPossibleModificationNames
public static HashMap<Integer,HashSet<String>> getPossibleModificationNames(Peptide peptide, ModificationMatch modificationMatch, IdfileReader idfileReader, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible modification names from a search engine modification indexed by site.- Parameters:
peptide- the peptidemodificationMatch- the modification matchidfileReader- the ID file readersearchParameters- the search parameterssequenceMatchingParameters- the sequence matching parameterssequenceProvider- the sequence providermodificationProvider- the modification provider- Returns:
- the possible modification names
-
getPossibleModificationNamesByMass
public static HashMap<Integer,HashSet<String>> getPossibleModificationNamesByMass(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible modifications names by mass.- Parameters:
peptide- the peptidemodificationMatch- the modification matchsearchParameters- the search parameterssequenceMatchingParameters- the sequence matching parameterssequenceProvider- the sequence providermodificationProvider- the modification provider- Returns:
- the possible modifications names by mass
-
getPossibleModificationNamesByName
public static HashMap<Integer,HashSet<String>> getPossibleModificationNamesByName(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible modifications by name.- Parameters:
peptide- the peptidemodificationMatch- the modification matchsearchParameters- the search parameterssequenceMatchingParameters- the sequence matching parameterssequenceProvider- the sequence providermodificationProvider- the modification provider- Returns:
- the possible modifications by name
-
getPossibleModificationNamesOmssa
public static HashMap<Integer,HashSet<String>> getPossibleModificationNamesOmssa(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible OMSSA modification names.- Parameters:
peptide- the peptidemodificationMatch- the modification matchsearchParameters- the search parameterssequenceMatchingParameters- the sequence matching parameterssequenceProvider- the sequence providermodificationProvider- the modification provider- Returns:
- the possible OMSSA modification names
-
getPossibleModificationNamesAndromeda
public static HashMap<Integer,HashSet<String>> getPossibleModificationNamesAndromeda(Peptide peptide, ModificationMatch modificationMatch, SearchParameters searchParameters, SequenceMatchingParameters sequenceMatchingParameters, SequenceProvider sequenceProvider, ModificationProvider modificationProvider) Returns the possible Andromeda modification names.- Parameters:
peptide- the peptidemodificationMatch- the modification matchsearchParameters- the search parameterssequenceMatchingParameters- the sequence matching parameterssequenceProvider- the sequence providermodificationProvider- the modification provider- Returns:
- the possible Andromeda modification names
-