public class PeptideMatch extends IdentificationMatch
IdentificationMatch.MatchType
NO_KEY
Constructor and Description |
---|
PeptideMatch()
Default Constructor for the peptide match.
|
PeptideMatch(Peptide peptide,
long matchKey,
long spectrumMatchKey)
Constructor for the peptide match.
|
Modifier and Type | Method and Description |
---|---|
void |
addSpectrumMatchKey(long spectrumMatchKey)
Add a spectrum match key.
|
long |
getKey()
Returns the key of a match.
|
Peptide |
getPeptide()
Getter for the peptide.
|
int |
getSpectrumCount()
Returns the number of spectra matched.
|
long[] |
getSpectrumMatchesKeys()
Returns the keys of all spectra matched.
|
IdentificationMatch.MatchType |
getType()
Returns the type of match.
|
void |
setKey(long newKey)
Sets a new key for the match.
|
void |
setPeptide(Peptide peptide)
Setter for the peptide.
|
void |
setSpectrumMatchesKeys(long[] spectrumMatchesKeys)
Sets the spectrum matches keys.
|
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
public PeptideMatch()
public PeptideMatch(Peptide peptide, long matchKey, long spectrumMatchKey)
peptide
- the matching peptidematchKey
- the key of the match as referenced in the identificationspectrumMatchKey
- the key of a spectrum match linked to this peptidepublic long getKey()
IdentificationMatch
getKey
in class IdentificationMatch
public void setKey(long newKey)
newKey
- a new key for the matchpublic Peptide getPeptide()
public void setPeptide(Peptide peptide)
peptide
- a peptidepublic long[] getSpectrumMatchesKeys()
public void setSpectrumMatchesKeys(long[] spectrumMatchesKeys)
spectrumMatchesKeys
- the keyspublic void addSpectrumMatchKey(long spectrumMatchKey)
spectrumMatchKey
- the key of a spectrum matchpublic int getSpectrumCount()
public IdentificationMatch.MatchType getType()
IdentificationMatch
getType
in class IdentificationMatch
Copyright © 2021. All rights reserved.