SpectrumMatch spectrumMatch = identification.getSpectrumMatch(key);
PSParameter probabilities = new PSParameter();
probabilities = (PSParameter) identification.getSpectrumMatchParameter(key, probabilities);
// fill peptide shaker table
DisplayFeaturesGenerator displayFeaturesGenerator = peptideShakerGUI.getDisplayFeaturesGenerator();
String proteins = "";
String sequence;
if (spectrumMatch.getBestPeptideAssumption() != null) {
proteins = displayFeaturesGenerator.addDatabaseLinks(spectrumMatch.getBestPeptideAssumption().getPeptide().getParentProteins(peptideShakerGUI.getSequenceMatchingPreferences()));
sequence = displayFeaturesGenerator.getTaggedPeptideSequence(spectrumMatch, true, true, true);
peptideShakerJTablePeptideTooltip = displayFeaturesGenerator.getPeptideModificationTooltipAsHtml(spectrumMatch);
} else if (spectrumMatch.getBestTagAssumption() != null) {
sequence = spectrumMatch.getBestTagAssumption().getTag().getTaggedModifiedSequence(peptideShakerGUI.getSearchParameters().getModificationProfile(), true, true, true, false, false);
peptideShakerJTablePeptideTooltip = displayFeaturesGenerator.getTagModificationTooltipAsHtml(spectrumMatch.getBestTagAssumption().getTag());
} else {
throw new IllegalArgumentException("No best hit found for spectrum " + spectrumMatch.getKey());
}
((DefaultTableModel) peptideShakerJTable.getModel()).addRow(new Object[]{
1,