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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PeptideVariantMatches()
Empty default constructorPeptideVariantMatches(HashMap<Integer,Variant> variantMatches, int lengthDiff)
Constructor. -
Method Summary
Modifier and Type Method Description int
getLengthDiff()
Returns the length difference induced by the variants.HashMap<Integer,Variant>
getVariantMatches()
Returns the map of variants indexed by 0 based position on the peptide.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
PeptideVariantMatches
public PeptideVariantMatches()Empty default constructor -
PeptideVariantMatches
Constructor.- Parameters:
variantMatches
- the variants in a map indexed by 0 based position on the peptidelengthDiff
- 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
Returns the map of variants indexed by 0 based position on the peptide.- Returns:
- the map of variants
-