java.lang.Object
com.compomics.util.experiment.identification.modification.peptide_mapping.ModificationPeptideMapping

public class ModificationPeptideMapping extends Object
Functions for the mapping of modifications on peptides.
Author:
Dafni Skiadopoulou, Marc Vaudel
  • Field Details

  • 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 cases
      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.
    • 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.