Class ProteinStructurePanel

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

public class ProteinStructurePanel extends JPanel
The Protein Structure tab.
Author:
Harald Barsnes, Yehia Farag
See Also:
  • Constructor Details

    • ProteinStructurePanel

      public ProteinStructurePanel(PeptideShakerGUI peptideShakerGUI)
      Creates a new ProteinPanel.
      Parameters:
      peptideShakerGUI - the PeptideShaker main frame
  • Method Details

    • getDisplayedProteins

      public long[] getDisplayedProteins()
      Returns a list of keys of the displayed proteins.
      Returns:
      a list of keys of the displayed proteins
    • getDisplayedPeptides

      public long[] getDisplayedPeptides()
      Returns a list of keys of the displayed peptides.
      Returns:
      a list of keys of the displayed peptides
    • displayResults

      public void displayResults()
      Displays the results in the result tables.
    • updateModelType

      public void updateModelType()
      Updates the model type if the Jmol structure is currently visible.
    • showSparkLines

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

      public String getPDBAccesionLink(String pdbAccession)
      Returns the PDB accession number as a web link to the given structure at https://www.rcsb.org.
      Parameters:
      pdbAccession - the PDB accession number
      Returns:
      the PDB accession web link
    • updateMainMatch

      public void updateMainMatch(String mainMatch, int proteinInferenceType)
      Update the main match for the given row in the protein table.
      Parameters:
      mainMatch - the protein match to use
      proteinInferenceType - the protein inference group type
    • spinModel

      public void spinModel(boolean spin)
      Turns the spinning of the model on or off.
      Parameters:
      spin - if true the spinning is turned on.
    • getProteinTable

      public JTable getProteinTable()
      Returns the protein table.
      Returns:
      the protein table
    • getPeptideTable

      public JTable getPeptideTable()
      Returns the peptide table.
      Returns:
      the peptide table
    • updateScores

      public void updateScores()
      Hides or displays the score columns in the protein and peptide tables.
    • updateModificationColors

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

      public void updatePeptideProteinInference(int proteinInferenceType)
      Update the protein inference type for the currently selected peptide.
      Parameters:
      proteinInferenceType - the protein inference type
    • updateSelection

      public void updateSelection(boolean scrollToVisible)
      Update the selected protein and peptide.
      Parameters:
      scrollToVisible - if true the table also scrolls to make the selected row visible
    • newItemSelection

      public void newItemSelection()
      Provides to the PeptideShakerGUI instance the currently selected protein, peptide and PSM.
    • clearData

      public void clearData()
      Clear all the data.
    • selfUpdating

      public void selfUpdating(boolean selfUpdating)
      Deactivates the self updating tables.
      Parameters:
      selfUpdating - boolean indicating whether the tables should update their content