int rewindIon = peptideShakerGUI.getSearchParameters().getIonSearched2();
// add de novo sequencing
spectrumPanel.addAutomaticDeNovoSequencing(currentPeptide, annotations,
forwardIon, rewindIon, annotationPreferences.getDeNovoCharge(),
annotationPreferences.showForwardIonDeNovoTags(),
annotationPreferences.showRewindIonDeNovoTags());
// add the spectrum panel to the frame
spectrumJPanel.removeAll();
spectrumJPanel.add(spectrumPanel);