Class ModificationPeptideMapping
java.lang.Object
com.compomics.util.experiment.identification.modification.peptide_mapping.ModificationPeptideMapping
Functions for the mapping of modifications on peptides.
- Author:
- Dafni Skiadopoulou, Marc Vaudel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmapModifications(HashMap<Double, int[]> modificationToPossibleSiteMap, HashMap<Double, Integer> modificationOccurrenceMap, HashMap<Double, HashMap<Integer, Double>> modificationToSiteToScore) Returns map of site to modification mapping.mapModificationsDeprecated(HashMap<Double, int[]> modificationToPossibleSiteMap, HashMap<Double, Integer> modificationOccurrenceMap, HashMap<Double, HashMap<Integer, Double>> modificationToSiteToScore) Deprecated.does not handle corner cases
-
Field Details
-
SEPARATOR
Separator for the keys of vertices.- See Also:
-
-
Constructor Details
-
ModificationPeptideMapping
public ModificationPeptideMapping()
-
-
Method Details
-
mapModificationsDeprecated
public static HashMap<Double,TreeSet<Integer>> mapModificationsDeprecated(HashMap<Double, int[]> modificationToPossibleSiteMap, HashMap<Double, Integer> modificationOccurrenceMap, HashMap<Double, HashMap<Integer, Double>> modificationToSiteToScore) Deprecated.does not handle corner casesReturns map of site to modification mapping.- Parameters:
modificationToPossibleSiteMap- Map of modification mass to site to modification names.modificationOccurrenceMap- Map of modification mass to number of modifications.modificationToSiteToScore- Map of modification mass to modification site to localization score.- Returns:
- The list of best sites per modification.
-
mapModifications
public static HashMap<Double,TreeSet<Integer>> mapModifications(HashMap<Double, int[]> modificationToPossibleSiteMap, HashMap<Double, Integer> modificationOccurrenceMap, HashMap<Double, HashMap<Integer, Double>> modificationToSiteToScore) Returns map of site to modification mapping.- Parameters:
modificationToPossibleSiteMap- Map of modification mass to site to modification names.modificationOccurrenceMap- Map of modification mass to number of modifications.modificationToSiteToScore- Map of modification mass to modification site to localization score.- Returns:
- The list of best sites per modification.
-