public class SpectrumMatch extends IdentificationMatch
IdentificationMatch.MatchType| Constructor and Description |
|---|
SpectrumMatch()
Constructor for the spectrum match.
|
SpectrumMatch(java.lang.String spectrumKey)
Constructor for the spectrum match.
|
SpectrumMatch(java.lang.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.
|
java.util.ArrayList<java.lang.Integer> |
getAdvocates()
Returns all advocates used referenced by their index.
|
java.util.ArrayList<SpectrumIdentificationAssumption> |
getAllAssumptions()
Return all assumptions for all identification algorithms as a list.
|
java.util.HashMap<java.lang.Double,java.util.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.
|
SpectrumIdentificationAssumption |
getFirstHit(int advocateId)
Returns the first hit obtained using the specified advocate.
|
java.lang.String |
getKey()
returns the key of a match.
|
SpectrumMatch |
getPeptidesFromTags(ProteinTree proteinTree,
AminoAcidPattern.MatchingType matchingType,
java.lang.Double massTolerance,
boolean scoreInAscendingOrder,
java.util.ArrayList<java.lang.String> fixedModifications,
java.util.ArrayList<java.lang.String> variableModifications,
boolean ascendingScore)
Creates a peptide based spectrum match where peptide assumptions are
deduced from tag assumptions.
|
java.lang.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 |
setFirstHit(int advocateId,
SpectrumIdentificationAssumption bestAssumption)
Sets the best assumption according to the search engine.
|
void |
setKey(java.lang.String newKey)
Replaces the new key.
|
void |
setSpectrumNumber(java.lang.Integer spectrumNumber)
Sets the spectrum number in the spectrum file
|
addUrParam, getParameterKey, getUrParampublic SpectrumMatch()
public SpectrumMatch(java.lang.String spectrumKey,
SpectrumIdentificationAssumption assumption)
spectrumKey - The matched spectrumKeyassumption - The matching assumptionpublic SpectrumMatch(java.lang.String spectrumKey)
spectrumKey - The matched spectrum keypublic PeptideAssumption getBestPeptideAssumption()
public void setBestPeptideAssumption(PeptideAssumption bestAssumption)
bestAssumption - the best assumption for the spectrumpublic java.lang.String getKey()
IdentificationMatchgetKey in class IdentificationMatchpublic java.util.HashMap<java.lang.Double,java.util.ArrayList<SpectrumIdentificationAssumption>> getAllAssumptions(int advocateId)
advocateId - the desired advocate IDpublic java.util.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 void setFirstHit(int advocateId,
SpectrumIdentificationAssumption bestAssumption)
advocateId - the search engine indexbestAssumption - the best assumptionpublic java.util.ArrayList<java.lang.Integer> getAdvocates()
public IdentificationMatch.MatchType getType()
IdentificationMatchgetType in class IdentificationMatchpublic void setKey(java.lang.String newKey)
newKey - the new keypublic java.lang.Integer getSpectrumNumber()
public void setSpectrumNumber(java.lang.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, java.lang.Double massTolerance, boolean scoreInAscendingOrder, java.util.ArrayList<java.lang.String> fixedModifications, java.util.ArrayList<java.lang.String> variableModifications, boolean ascendingScore) throws java.io.IOException, java.lang.InterruptedException, java.lang.ClassNotFoundException, java.sql.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 betterjava.io.IOExceptionjava.lang.InterruptedExceptionjava.lang.ClassNotFoundExceptionjava.sql.SQLExceptionCopyright © 2014. All Rights Reserved.