public Object getValueAt(int row, int column) {
try {
if (row >= displayedPeptides.size()) {
return "";
}
PSParameter probabilities;
switch (column) {
case 0:
return row + 1;
case 1:
probabilities = new PSParameter();
probabilities = (PSParameter) identification.getPeptideMatchParameter(displayedPeptides.get(row), probabilities);
return probabilities.isStarred();
case 2:
probabilities = new PSParameter();
probabilities = (PSParameter) identification.getPeptideMatchParameter(displayedPeptides.get(row), probabilities);
return probabilities.getProteinInferenceClass();
case 3:
String peptideKey = displayedPeptides.get(row);
PeptideMatch peptideMatch = identification.getPeptideMatch(peptideKey);
return peptideShakerGUI.getDisplayFeaturesGenerator().getTaggedPeptideSequence(peptideMatch, true, true, true);
case 4:
PSPtmScores ptmScores = new PSPtmScores();
ptmScores = (PSPtmScores) identification.getPeptideMatch(displayedPeptides.get(row)).getUrParam(ptmScores);
if (ptmScores != null && ptmScores.getPtmScoring(getSelectedModification()) != null) {
PtmScoring ptmScoring = ptmScores.getPtmScoring(getSelectedModification());
return ptmScoring.getMinimalLocalizationConfidence();
} else {
return PtmScoring.NOT_FOUND;
}
case 5:
probabilities = new PSParameter();
probabilities = (PSParameter) identification.getPeptideMatchParameter(displayedPeptides.get(row), probabilities);
return probabilities.getPeptideConfidence();
case 6:
probabilities = new PSParameter();
probabilities = (PSParameter) identification.getPeptideMatchParameter(displayedPeptides.get(row), probabilities);
return probabilities.getMatchValidationLevel().getIndex();
default:
return "";
}
} catch (Exception e) {
peptideShakerGUI.catchException(e);