PeptideAssumption mascotAssumption = null;
double bestScore = 0;
for (ArrayList<SpectrumIdentificationAssumption> peptideAssumptionList : spectrumMatch.getAllAssumptions(Advocate.mascot.getIndex()).values()) {
for (SpectrumIdentificationAssumption assumption : peptideAssumptionList) {
PeptideAssumption peptideAssumption = (PeptideAssumption) assumption;
MascotScore mascotScore = new MascotScore();
mascotScore = (MascotScore) peptideAssumption.getUrParam(mascotScore);
if (mascotScore.getScore() > bestScore) {
mascotAssumption = peptideAssumption;
bestScore = mascotScore.getScore();
}
}
}
if (mascotAssumption != null) {
Peptide mascotPeptide = mascotAssumption.getPeptide();