Class PeptideVariantMatches

java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.matches.PeptideVariantMatches
All Implemented Interfaces:
Serializable

public class PeptideVariantMatches
extends ExperimentObject
This class represents a set of variants found on a peptide.
Author:
Marc Vaudel, Dominik Kopczynski
See Also:
Serialized Form
  • Constructor Details

    • PeptideVariantMatches

      public PeptideVariantMatches()
      Empty default constructor
    • PeptideVariantMatches

      public PeptideVariantMatches​(HashMap<Integer,​Variant> variantMatches, int lengthDiff)
      Constructor.
      Parameters:
      variantMatches - the variants in a map indexed by 0 based position on the peptide
      lengthDiff - the length difference induced by the variants
  • Method Details

    • getLengthDiff

      public int getLengthDiff()
      Returns the length difference induced by the variants. +1 corresponds at a protein sequence of 1 amino acid longer than the peptide sequence.
      Returns:
      the length difference induced by the variants
    • getVariantMatches

      public HashMap<Integer,​Variant> getVariantMatches()
      Returns the map of variants indexed by 0 based position on the peptide.
      Returns:
      the map of variants