public class SpectrumMatch extends IdentificationMatch
IdentificationMatch.MatchType| Constructor and Description |
|---|
SpectrumMatch()
Constructor for the spectrum match.
|
SpectrumMatch(String spectrumKey)
Constructor for the spectrum match.
|
SpectrumMatch(String spectrumKey,
SpectrumIdentificationAssumption assumption)
Constructor for the spectrum match.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHit(int otherAdvocateId,
SpectrumIdentificationAssumption otherAssumption,
boolean ascendingScore)
Add a first hit.
|
ArrayList<Integer> |
getAdvocates()
Returns all advocates used referenced by their index.
|
ArrayList<SpectrumIdentificationAssumption> |
getAllAssumptions()
Return all assumptions for all identification algorithms as a list.
|
HashMap<Double,ArrayList<SpectrumIdentificationAssumption>> |
getAllAssumptions(int advocateId)
Return all assumptions for the specified search engine indexed by their
e-value.
|
PeptideAssumption |
getBestPeptideAssumption()
Getter for the best peptide assumption.
|
TagAssumption |
getBestTagAssumption()
Getter for the best tag assumption.
|
SpectrumIdentificationAssumption |
getFirstHit(int advocateId)
Returns the first hit obtained using the specified advocate.
|
ArrayList<SpectrumIdentificationAssumption> |
getFirstHits(int advocateId)
Returns a list of the top scoring assumptions for the given advocate.
|
String |
getKey()
Returns the key of a match.
|
SpectrumMatch |
getPeptidesFromTags(ProteinTree proteinTree,
AminoAcidPattern.MatchingType matchingType,
Double massTolerance,
boolean scoreInAscendingOrder,
ArrayList<String> fixedModifications,
ArrayList<String> variableModifications,
boolean ascendingScore,
boolean reportFixedPtms)
Creates a peptide based spectrum match where peptide assumptions are
deduced from tag assumptions.
|
Integer |
getSpectrumNumber()
Returns the spectrum number in the spectrum file.
|
IdentificationMatch.MatchType |
getType()
Returns the type of match.
|
boolean |
hasAssumption()
Indicates whether the spectrum match contains a peptide assumption from a
search engine.
|
boolean |
hasAssumption(int advocateId)
Indicates whether the spectrum match contains a peptide assumption for
the given advocate (for example a search engine, see the Advocate class)
|
void |
removeAssumption(SpectrumIdentificationAssumption assumption)
Removes an assumption from the mapping.
|
void |
setBestPeptideAssumption(PeptideAssumption bestAssumption)
Setter for the best peptide assumption.
|
void |
setBestTagAssumption(TagAssumption bestTagAsssumption)
Setter for the best tag assumption.
|
void |
setFirstHit(int advocateId,
SpectrumIdentificationAssumption bestAssumption)
Sets the best assumption according to the search engine.
|
void |
setKey(String newKey)
Replaces the new key.
|
void |
setSpectrumNumber(Integer spectrumNumber)
Sets the spectrum number in the spectrum file.
|
addUrParam, getParameterKey, getUrParampublic SpectrumMatch()
public SpectrumMatch(String spectrumKey, SpectrumIdentificationAssumption assumption)
spectrumKey - The matched spectrumKeyassumption - The matching assumptionpublic SpectrumMatch(String spectrumKey)
spectrumKey - The matched spectrum keypublic PeptideAssumption getBestPeptideAssumption()
public void setBestPeptideAssumption(PeptideAssumption bestAssumption)
bestAssumption - the best peptide assumption for the spectrumpublic TagAssumption getBestTagAssumption()
public void setBestTagAssumption(TagAssumption bestTagAsssumption)
bestTagAsssumption - the best tag assumption for the spectrumpublic String getKey()
IdentificationMatchgetKey in class IdentificationMatchpublic HashMap<Double,ArrayList<SpectrumIdentificationAssumption>> getAllAssumptions(int advocateId)
advocateId - the desired advocate IDpublic ArrayList<SpectrumIdentificationAssumption> getAllAssumptions()
public void addHit(int otherAdvocateId,
SpectrumIdentificationAssumption otherAssumption,
boolean ascendingScore)
otherAdvocateId - the index of the new advocateotherAssumption - the new identification assumptionascendingScore - indicates whether the score is ascending when hits
get betterpublic SpectrumIdentificationAssumption getFirstHit(int advocateId)
advocateId - the specified advocate indexpublic ArrayList<SpectrumIdentificationAssumption> getFirstHits(int advocateId)
advocateId - the index of the advocate of interestpublic void setFirstHit(int advocateId,
SpectrumIdentificationAssumption bestAssumption)
advocateId - the search engine indexbestAssumption - the best assumptionpublic ArrayList<Integer> getAdvocates()
public IdentificationMatch.MatchType getType()
IdentificationMatchgetType in class IdentificationMatchpublic void setKey(String newKey)
newKey - the new keypublic Integer getSpectrumNumber()
public void setSpectrumNumber(Integer spectrumNumber)
spectrumNumber - the spectrum number in the spectrum filepublic void removeAssumption(SpectrumIdentificationAssumption assumption)
assumption - the peptide assumption to removepublic boolean hasAssumption()
public boolean hasAssumption(int advocateId)
advocateId - The index of the advocatepublic SpectrumMatch getPeptidesFromTags(ProteinTree proteinTree, AminoAcidPattern.MatchingType matchingType, Double massTolerance, boolean scoreInAscendingOrder, ArrayList<String> fixedModifications, ArrayList<String> variableModifications, boolean ascendingScore, boolean reportFixedPtms) throws IOException, InterruptedException, ClassNotFoundException, SQLException
proteinTree - the protein tree to use to map tags to peptidesmatchingType - the sequence matching typemassTolerance - the mass tolerance to usescoreInAscendingOrder - boolean indicating whether the tag score is
in the ascending order; ie the higher the score, the better the match.fixedModifications - the fixed modifications to account forvariableModifications - the variable modifications to account forascendingScore - indicates whether the score is ascending when hits
get betterreportFixedPtms - a boolean indicating whether fixed PTMs should be
reported in the Peptide objectIOExceptionInterruptedExceptionClassNotFoundExceptionSQLExceptionCopyright © 2014. All rights reserved.