Class PrideReshakeGUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class PrideReshakeGUI extends JFrame
Frame for talking to the PRIDE Archive web service to select projects for reshaking.
Author:
Harald Barsnes, Marc Vaudel
See Also:
  • Constructor Details

    • PrideReshakeGUI

      public PrideReshakeGUI(PeptideShakerGUI peptideShakerGUI)
      Creates a new PrideReShakeGUI frame.
      Parameters:
      peptideShakerGUI - the PeptideShakerGUI parent
    • PrideReshakeGUI

      public PrideReshakeGUI(PeptideShakerGUI peptideShakerGUI, String pxAccession, boolean privateData)
      Creates a new PrideReShakeGUI frame.
      Parameters:
      peptideShakerGUI - the PeptideShakerGUI parent
      pxAccession - the PX accession to display
      privateData - if true, the private data login screen is displayed
  • Method Details

    • getProjectsTable

      public JTable getProjectsTable()
      Returns the projects table.
      Returns:
      the projects table
    • getPeptideShakerGUI

      public PeptideShakerGUI getPeptideShakerGUI()
      Returns a reference to the main GUI.
      Returns:
      a reference to the main GUI
    • downloadPrideDatasets

      public void downloadPrideDatasets(String aWorkingFolder, ArrayList<String> selectedSpectrumFileLinks, ArrayList<String> selectedFileNames, String selectedSearchSettingsFileLink, String database, String aSpecies, ArrayList<Integer> fileSizes)
      Download and convert a PRIDE project.
      Parameters:
      aWorkingFolder - the working folder
      selectedSpectrumFileLinks - the selected spectrum files
      selectedFileNames - the file names of the selected spectrum files
      selectedSearchSettingsFileLink - the selected search settings file, can be null
      database - the database
      aSpecies - the current species
      fileSizes - the file sizes
    • asMgf

      public boolean asMgf(uk.ac.ebi.pride.jaxb.model.Spectrum spectrum, BufferedWriter bw) throws IOException
      Writes the given spectrum to the buffered writer.
      Parameters:
      spectrum - the spectrum
      bw - the buffered writer
      Returns:
      true of the spectrum could be converted to mgf
      Throws:
      IOException - thrown if a problem occurs when writing to the file
    • showProjectFilterRemovalOption

      public void showProjectFilterRemovalOption(boolean show)
      Show/hide the clear projects filters option.
      Parameters:
      show - if the option is to be shown or not
    • updateProjectTableSelection

      public void updateProjectTableSelection()
      Updates the project table selection.
    • setCurrentFilterValues

      public void setCurrentFilterValues(String[] currentFilterValues, boolean assaysGreaterThanFiler)
      Set the current filter values.
      Parameters:
      currentFilterValues - the current filter values
      assaysGreaterThanFiler - the assays greater than filter
    • getFilesTable

      public JTable getFilesTable()
      Returns the files table.
      Returns:
      the files table
    • getCurrentPxAccession

      public String getCurrentPxAccession()
      Returns the current PX accession number. Null if no project is selected.
      Returns:
      the current PX accession number
    • getReshakeableFiles

      public HashMap<String,ArrayList<String>> getReshakeableFiles()
      Returns the list of reshakable file types.
      Returns:
      the reshakeableFiles
    • getSearchSettingsFiles

      public HashMap<String,ArrayList<String>> getSearchSettingsFiles()
      Returns the list of files that search settings can be extracted from.
      Returns:
      the searchSettingsFiles
    • getCurrentSpeciesList

      public String getCurrentSpeciesList()
      Returns the list of species for the currently selected assay or project. Null if no assay or project is currently selected.
      Returns:
      the list of species for the currently selected assay or project
    • getUserName

      public String getUserName()
      Returns the current user name.
      Returns:
      the userName
    • getPassword

      public String getPassword()
      Returns the current password.
      Returns:
      the password