|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.experiment.identification.Match
com.compomics.util.experiment.identification.matches.SpectrumMatch
public class SpectrumMatch
This class models a spectrum match.
Created by IntelliJ IDEA. User: Marc Date: Jun 18, 2010 Time: 8:58:26 AM
Constructor Summary | |
---|---|
SpectrumMatch()
Constructor for the spectrum match |
|
SpectrumMatch(java.lang.String spectrumKey)
Constructor for the spectrum match |
|
SpectrumMatch(java.lang.String spectrumKey,
PeptideAssumption assumption)
Constructor for the spectrum match |
Method Summary | |
---|---|
void |
addHit(int otherAdvocateId,
PeptideAssumption otherAssumption)
add a first hit |
java.util.ArrayList<java.lang.Integer> |
getAdvocates()
Returns all advocates used referenced by their index |
java.util.ArrayList<PeptideAssumption> |
getAllAssumptions()
Return all assumptions for all search engines as a list |
java.util.HashMap<java.lang.Double,java.util.ArrayList<PeptideAssumption>> |
getAllAssumptions(int advocateId)
Return all assumptions for the specified search engine indexed by their e-value |
PeptideAssumption |
getBestAssumption()
Getter for the best assumption |
PeptideAssumption |
getFirstHit(int advocateId)
Returns the first hit obtained using the specified advocate |
java.lang.String |
getKey()
returns the key of a match |
void |
setBestAssumption(PeptideAssumption bestAssumption)
Setter for the best assumption |
void |
setFirstHit(int advocateId,
PeptideAssumption peptideAssumption)
Sets the best peptideAssumption according to the search engine |
Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject |
---|
addUrParam, getParameterKey, getUrParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpectrumMatch()
public SpectrumMatch(java.lang.String spectrumKey, PeptideAssumption assumption)
spectrumKey
- The matched spectrumKeyassumption
- The matching peptide assumptionpublic SpectrumMatch(java.lang.String spectrumKey)
spectrumKey
- The matched spectrum keyMethod Detail |
---|
public PeptideAssumption getBestAssumption()
public void setBestAssumption(PeptideAssumption bestAssumption)
bestAssumption
- the best assumption for the spectrumpublic java.lang.String getKey()
Match
getKey
in class Match
public java.util.HashMap<java.lang.Double,java.util.ArrayList<PeptideAssumption>> getAllAssumptions(int advocateId)
advocateId
- the desired advocate ID
public java.util.ArrayList<PeptideAssumption> getAllAssumptions()
public void addHit(int otherAdvocateId, PeptideAssumption otherAssumption)
otherAdvocateId
- The index of the new advocateotherAssumption
- The new peptide assumptionpublic PeptideAssumption getFirstHit(int advocateId)
advocateId
- the specified advocate index
public void setFirstHit(int advocateId, PeptideAssumption peptideAssumption)
advocateId
- the search engine indexpeptideAssumption
- the best assumptionpublic java.util.ArrayList<java.lang.Integer> getAdvocates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |