|
||||||||||
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.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(String spectrumKey)
Constructor for the spectrum match |
|
SpectrumMatch(String spectrumKey,
PeptideAssumption assumption)
Constructor for the spectrum match |
Method Summary | |
---|---|
void |
addHit(int otherAdvocateId,
PeptideAssumption otherAssumption)
add a first hit |
ArrayList<Integer> |
getAdvocates()
Returns all advocates used referenced by their index |
ArrayList<PeptideAssumption> |
getAllAssumptions()
Return all assumptions for all search engines as a list |
HashMap<Double,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 |
String |
getKey()
Getter for the spectrum key |
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, 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(String spectrumKey, PeptideAssumption assumption)
spectrumKey
- The matched spectrumKeyassumption
- The matching peptide assumptionpublic SpectrumMatch(String spectrumKey)
spectrumKey
- The matched spectrum keyMethod Detail |
---|
public PeptideAssumption getBestAssumption()
public void setBestAssumption(PeptideAssumption bestAssumption)
bestAssumption
- the best assumption for the spectrumpublic String getKey()
public HashMap<Double,ArrayList<PeptideAssumption>> getAllAssumptions(int advocateId)
advocateId
- the desired advocate ID
public 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 ArrayList<Integer> getAdvocates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |