Class SpectrumIdentificationPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
eu.isas.peptideshaker.gui.tabpanels.SpectrumIdentificationPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SpectrumIdentificationPanel extends JPanel
The Spectrum ID panel.
Author:
Marc Vaudel, Harald Barsnes
See Also:
  • Field Details

    • NO_ID

      public static final int NO_ID
      Static index for the ID software agreement: no psm found.
      See Also:
    • CONFLICT

      public static final int CONFLICT
      Static index for the ID software agreement: the ID software have different top ranking peptides.
      See Also:
    • PARTIALLY_MISSING

      public static final int PARTIALLY_MISSING
      Static index for the ID software agreement: one or more of the softwares did not identify the spectrum, while one or more of the others did.
      See Also:
    • AGREEMENT

      public static final int AGREEMENT
      Static index for the ID software agreement: the ID softwares all have the same top ranking peptide without accounting for modification localization.
      See Also:
    • AGREEMENT_WITH_MODS

      public static final int AGREEMENT_WITH_MODS
      Static index for the ID software agreement: the ID softwares all have the same top ranking peptide.
      See Also:
  • Constructor Details

    • SpectrumIdentificationPanel

      public SpectrumIdentificationPanel(PeptideShakerGUI peptideShakerGUI)
      Create a new SpectrumIdentificationPanel.
      Parameters:
      peptideShakerGUI - the PeptideShaker parent frame
  • Method Details

    • showSparkLines

      public void showSparkLines(boolean showSparkLines)
      Displays or hide sparklines in the tables.
      Parameters:
      showSparkLines - boolean indicating whether sparklines shall be displayed or hidden
    • displayResults

      public void displayResults()
      Displays the results in the panel.
    • getSelectedSpectrumTitle

      public String getSelectedSpectrumTitle()
      Returns the title of the currently selected spectrum.
      Returns:
      the title of the currently selected spectrum
    • getSelectedSpectrumTitles

      public TreeMap<String,TreeSet<String>> getSelectedSpectrumTitles()
      Returns the titles of the selected spectra in the PSM table in a map by file name.
      Returns:
      The titles of the selected spectra in the PSM table in a map by file name.
    • getSelectedIdentificationAssumptions

      public HashMap<Long,ArrayList<com.compomics.util.experiment.identification.SpectrumIdentificationAssumption>> getSelectedIdentificationAssumptions()
      Returns a map of the selected spectrum identification assumptions as a map: spectrum key | assumption
      Returns:
      an ArrayList of the keys of the selected spectra in the PSM table
    • updateSelection

      public void updateSelection()
      Updates the spectrum selected according to the user's last selection.
    • updateSpectrum

      public void updateSpectrum()
      Update the spectrum based on the currently selected PSM.
    • getSpectrum

      public Component getSpectrum()
      Returns the spectrum panel.
      Returns:
      the spectrum panel
    • showSpectrumAnnotationMenu

      public void showSpectrumAnnotationMenu()
      Makes sure that the annotation menu bar is visible.
    • getBubblePlot

      public Component getBubblePlot()
      Returns the bubble plot.
      Returns:
      the bubble plot
    • setIntensitySliderValue

      public void setIntensitySliderValue(int value)
      Set the intensity slider value.
      Parameters:
      value - the intensity slider value
    • setAccuracySliderValue

      public void setAccuracySliderValue(int value)
      Set the accuracy slider value.
      Parameters:
      value - the accuracy slider value
    • updateModificationColors

      public void updateModificationColors()
      Update the PTM color coding.
    • updateSeparators

      public void updateSeparators()
      Method called whenever the component is resized to maintain the look of the GUI.
    • isBestPsmEqualForAllIdSoftware

      public static int isBestPsmEqualForAllIdSoftware(com.compomics.util.experiment.identification.matches.SpectrumMatch spectrumMatch, com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters sequenceMatchingPreferences, Integer numberOfAdvocatesUsed)
      Returns true if all the used id software tools agree on the top PSM without accounting for modification localization, false otherwise.
      Parameters:
      spectrumMatch - the PSM to check
      sequenceMatchingPreferences - the sequence matching preferences
      numberOfAdvocatesUsed - the total number of advocates used for the search
      Returns:
      true if all the used id software agree on the top PSM
    • updateScores

      public void updateScores()
      Hides or displays the search engine scores in the spectrum identifications table.