Class PeptideMatch
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.IdentificationMatch
com.compomics.util.experiment.identification.matches.PeptideMatch
- All Implemented Interfaces:
Serializable
This class models a peptide match.
- Author:
- Marc Vaudel, Dominik Kopczynski
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.compomics.util.experiment.identification.IdentificationMatch
IdentificationMatch.MatchType -
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor for the peptide match.PeptideMatch(Peptide peptide, long matchKey, long spectrumMatchKey) Constructor for the peptide match. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSpectrumMatchKey(long spectrumMatchKey) Add a spectrum match key.longgetKey()Returns the key of a match.Getter for the peptide.intReturns the number of spectra matched.long[]Returns the keys of all spectra matched.getType()Returns the type of match.voidsetKey(long newKey) Sets a new key for the match.voidsetPeptide(Peptide peptide) Setter for the peptide.voidsetSpectrumMatchesKeys(long[] spectrumMatchesKeys) Sets the spectrum matches keys.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
PeptideMatch
public PeptideMatch()Default Constructor for the peptide match. -
PeptideMatch
Constructor for the peptide match.- Parameters:
peptide- the matching peptidematchKey- the key of the match as referenced in the identificationspectrumMatchKey- the key of a spectrum match linked to this peptide
-
-
Method Details
-
getKey
public long getKey()Description copied from class:IdentificationMatchReturns the key of a match.- Specified by:
getKeyin classIdentificationMatch- Returns:
- the key of a match
-
setKey
public void setKey(long newKey) Sets a new key for the match.- Parameters:
newKey- a new key for the match
-
getPeptide
Getter for the peptide.- Returns:
- the peptide
-
setPeptide
Setter for the peptide.- Parameters:
peptide- a peptide
-
getSpectrumMatchesKeys
public long[] getSpectrumMatchesKeys()Returns the keys of all spectra matched.- Returns:
- the keys of all spectrum matches
-
setSpectrumMatchesKeys
public void setSpectrumMatchesKeys(long[] spectrumMatchesKeys) Sets the spectrum matches keys.- Parameters:
spectrumMatchesKeys- the keys
-
addSpectrumMatchKey
public void addSpectrumMatchKey(long spectrumMatchKey) Add a spectrum match key.- Parameters:
spectrumMatchKey- the key of a spectrum match
-
getSpectrumCount
public int getSpectrumCount()Returns the number of spectra matched.- Returns:
- spectrum count
-
getType
Description copied from class:IdentificationMatchReturns the type of match.- Specified by:
getTypein classIdentificationMatch- Returns:
- the type of match
-