public class PeptideShakerGUI extends JFrame implements ClipboardOwner, com.compomics.software.dialogs.JavaHomeOrMemoryDialogParent, com.compomics.util.gui.error_handlers.notification.NotificationDialogParent
JFrame.AccessibleJFrameFrame.AccessibleAWTFrameWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATION_TAB_INDEX
The Annotation tab index.
|
static Color |
DARK_THEME_BACKGROUND_COLOR
The dark theme background color.
|
static int |
GO_ANALYSIS_TAB_INDEX
The GO Analysis tab index.
|
static int |
MODIFICATIONS_TAB_INDEX
The Modifications tab index.
|
static int |
OVER_VIEW_TAB_INDEX
The Overview tab index.
|
static int |
PROTEIN_FRACTIONS_TAB_INDEX
The Protein Fractions tab index.
|
static int |
QC_PLOTS_TAB_INDEX
The QC Plots tab index.
|
static int |
SPECTRUM_ID_TAB_INDEX
The SpectrumID tab index.
|
static int |
STRUCTURES_TAB_INDEX
The Structures tab index.
|
static String |
TITLED_BORDER_HORIZONTAL_PADDING
The horizontal padding used before and after the text in the titled
borders.
|
static String |
TITLED_BORDER_HORIZONTAL_PADDING_HTML
The horizontal padding used before and after the text in the titled
borders.
|
static int |
VALIDATION_TAB_INDEX
The Validation tab index.
|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PeptideShakerGUI()
Creates a new PeptideShaker frame.
|
PeptideShakerGUI(File psdbFile,
String zipURL,
String zipUrlDownloadFolder,
String pxAccession,
boolean pxAccessionPrivate,
boolean showWelcomeDialog)
Creates a new PeptideShaker frame.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNote(String note)
Add a note to the current list of notes.
|
void |
addTip(String tip)
Add a tip to the current list of tips.
|
void |
catchException(Exception e)
Method called whenever an exception is caught.
|
boolean |
checkForNewVersion()
Check for new version.
|
void |
checkNewsFeed()
Displays a news feed at the bottom of the GUI.
|
void |
clearData(boolean clearDatabaseFolder,
boolean updateGuiComponents)
Clear the data from the previous experiment.
|
void |
clearGeneMappings()
Clear the gene mappings.
|
void |
clearParameters()
Clears the project parameters.
|
void |
close()
Closes the frame by first checking if the project ought to be saved.
|
void |
disableSpectrumDisplay()
Method called to disable the spectrum display.
|
void |
displayResults()
This method will display results in all panels.
|
void |
editPathSettings(WelcomeDialog welcomeDialog)
Opens a dialog allowing the setting of paths.
|
void |
enableSpectrumExport(boolean enable)
Enable or disable the spectrum export in the overview panel.
|
void |
exportAnnotatedSpectrum()
Export the current spectrum annotation.
|
void |
exportBubblePlotAsFigure()
Export the current bubble plot as a figure.
|
void |
exportIntensityHistogramAsFigure()
Export the current intensity histogram as a figure.
|
void |
exportMassErrorPlotAsFigure()
Export the current mass error plot as a figure.
|
void |
exportProjectAsZip()
Export the project as a zip file.
|
void |
exportSelectedSpectraAsMgf()
Export the current spectrum as an mgf.
|
void |
exportSequenceFragmentationAsFigure()
Export the current sequence fragmentation as a figure.
|
void |
exportSpectrumAsFigure()
Export the current spectrum as a figure.
|
JMenuBar |
getAnnotationMenuBar()
Returns the annotation menu bar.
|
double |
getBubbleScale()
Returns the bubble plot scale value.
|
HashMap<Double,String> |
getCurrentMassDeltas()
Get the current delta masses for use when annotating the spectra.
|
long |
getDefaultPeptideSelection(long proteinKey)
Returns the default peptide, i.e., the "best" peptide for the given
protein.
|
long |
getDefaultPsmSelection(long peptideKey)
Returns the default PSM, i.e., the "best" PSM for the given peptide.
|
long[] |
getDisplayedAssumptions()
Returns a list of keys of the currently displayed assumptions.
|
long[] |
getDisplayedPeptides()
Returns a list of keys of the currently displayed peptides.
|
long[] |
getDisplayedProteins()
Returns a list of keys of the currently displayed proteins.
|
long[] |
getDisplayedSpectrumMatches()
Returns a list of keys of the currently displayed spectrum matches.
|
DisplayFeaturesGenerator |
getDisplayFeaturesGenerator()
Returns the display features generator.
|
DisplayParameters |
getDisplayParameters()
Return the display parameters to use.
|
com.compomics.util.exceptions.exception_handlers.FrameExceptionHandler |
getExceptionHandler()
Returns the exception handler.
|
String |
getExtendedProjectReport()
Returns an extended HTML project report.
|
com.compomics.util.gui.filtering.FilterParameters |
getFilterParameters()
Return the filter parameters to use.
|
com.compomics.util.experiment.biology.genes.GeneMaps |
getGeneMaps()
Returns the gene maps.
|
GOEAPanel |
getGOPanel()
Returns the GO Panel.
|
com.compomics.util.experiment.identification.Identification |
getIdentification()
Returns the identification displayed.
|
com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator |
getIdentificationFeaturesGenerator()
Returns the identification features generator.
|
com.compomics.util.parameters.identification.IdentificationParameters |
getIdentificationParameters()
Returns the identification parameters.
|
com.compomics.util.io.file.LastSelectedFolder |
getLastSelectedFolder()
Returns the last selected folder.
|
com.compomics.util.experiment.identification.peptide_shaker.Metrics |
getMetrics()
Returns the metrics saved while loading the files.
|
ModificationsPanel |
getModificationsPanel()
Returns the modification panel.
|
Image |
getNormalIcon()
Returns the normal icon.
|
OverviewPanel |
getOverviewPanel()
Returns the OverviewPanel.
|
int |
getPreferredColumnWidth(JTable table,
int colIndex,
int margin)
Gets the preferred width of the column specified by colIndex.
|
com.compomics.util.parameters.tools.ProcessingParameters |
getProcessingParameters()
Returns the initial processing preferences.
|
ProjectDetails |
getProjectDetails()
Returns the project details.
|
com.compomics.util.experiment.ProjectParameters |
getProjectParameters()
Returns the project parameters.
|
com.compomics.util.parameters.peptide_shaker.ProjectType |
getProjectType()
Returns the project type.
|
com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider |
getProteinDetailsProvider()
Returns the protein details provider.
|
ProteinFractionsPanel |
getProteinFractionsPanel()
Returns the fractions panel.
|
ProteinStructurePanel |
getProteinStructurePanel()
Returns the ProteinStructurePanel.
|
DecimalFormat |
getScoreAndConfidenceDecimalFormat()
Returns the decimal format used for the score and confidence columns.
|
long |
getSelectedPeptideKey()
Returns the key of the selected peptide.
|
long |
getSelectedProteinKey()
Returns the key of the selected protein.
|
String |
getSelectedSpectrumFile()
Returns the currently selected spectrum file.
|
String |
getSelectedSpectrumTitle()
Returns the currently selected spectrum title.
|
int |
getSelectedTab()
Returns the selected tab as indexed by the static fields.
|
com.compomics.util.experiment.io.biology.protein.SequenceProvider |
getSequenceProvider()
Returns the sequence provider.
|
Color |
getSparklineColor()
Get the sparklines color.
|
Color |
getSparklineColorNonValidated()
Get the non-validated sparklines color.
|
Color |
getSparklineColorNotFound()
Get the not found sparklines color.
|
Color |
getSparklineColorPossible()
Get the possible sparklines color.
|
com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters |
getSpecificAnnotationParameters(String spectrumFile,
String spectrumTitle,
com.compomics.util.experiment.identification.SpectrumIdentificationAssumption spectrumIdentificationAssumption)
Returns the specific annotation parameters corresponding to the given
spectrum, hit, and the menu selections.
|
com.compomics.util.parameters.quantification.spectrum_counting.SpectrumCountingParameters |
getSpectrumCountingParameters()
Returns the spectrum counting parameters.
|
SpectrumIdentificationPanel |
getSpectrumIdentificationPanel()
Returns the SpectrumIdentificationPanel.
|
com.compomics.util.experiment.mass_spectrometry.SpectrumProvider |
getSpectrumProvider()
Returns the spectrum provider.
|
StarHider |
getStarHider()
Returns the object responsible for starring/hiding matches.
|
UserParameters |
getUserParameters()
Returns the user parameters.
|
File |
getUserSelectedFile(String aSuggestedFileName,
String aFileEnding,
String aFileFormatDescription,
String aDialogTitle,
boolean openDialog)
Returns the file selected by the user, or null if no file was selected.
|
com.compomics.util.parameters.UtilitiesUserParameters |
getUtilitiesUserParameters() |
ValidationPanel |
getValidationPanel()
Returns the validation panel.
|
Image |
getWaitingIcon()
Returns the waiting icon.
|
void |
importPeptideShakerFile(File psFile,
boolean importFromZip)
Imports information from a PeptideShaker file.
|
void |
importPeptideShakerZipFile(File zipFile)
Imports information from a PeptideShaker zip file.
|
void |
importPeptideShakerZipFromURL(String zipURL,
String destinationFolder)
Imports a PeptideShaker zip file from a URL.
|
void |
initiateDisplay()
Initiate the display by displaying the data in the currently selected
tab.
|
void |
jumpToTab(int tabIndex)
Jumps to the desired tab
|
void |
loadRecentProjectsList(JPopupMenu menu,
WelcomeDialog welcomeDialog)
Add the list of recently used files to the file menu.
|
void |
loadUserParameters()
Loads the user parameters.
|
void |
lostOwnership(Clipboard clipboard,
Transferable contents) |
static void |
main(String[] args)
The main method used to start PeptideShaker.
|
void |
notificationClicked(String notificationType) |
void |
openExampleFile()
Open the PeptideShaker example dataset.
|
void |
openProteinLinks(String links)
Opens one or more protein links in the default web browser.
|
void |
resetDisplayFeaturesGenerator()
Resets the display features generator.
|
void |
resetFrameTitle()
Reset the frame title.
|
void |
resetIdentificationFeaturesGenerator()
Resets the feature generator.
|
void |
resetModificationFactory()
Resets the modification factory.
|
void |
resetSelectedItems()
Resets the items selection.
|
void |
restart()
Closes and restarts PeptideShaker.
|
void |
saveProject(boolean aCloseWhenDone,
boolean aExportToZipWhenDone)
Saves the modifications made to the project.
|
void |
saveProjectAs(boolean closeWhenDone,
boolean aExportToZipWhenDone)
Save the project to a new location.
|
void |
setCurentNotes(ArrayList<String> currentNotes)
Set the list of current notes.
|
void |
setCurentTips(ArrayList<String> currentTips)
Set the list of current tips.
|
void |
setDataSaved(boolean dataSaved)
Set whether the current data has been saved to a psdb file or not.
|
void |
setDefaultParameters()
Set the default parameters.
|
void |
setDisplayOptions(boolean displayProteins,
boolean displayPeptidesAndPsms,
boolean displayCoverage,
boolean displaySpectrum)
Update the display options for the overview tab.
|
void |
setDisplayParameters(DisplayParameters displayParameters)
Sets the display parameters to use.
|
void |
setFilterParameters(com.compomics.util.gui.filtering.FilterParameters filterParameters)
Sets the filter parameters to use.
|
void |
setGeneMaps(com.compomics.util.experiment.biology.genes.GeneMaps geneMaps)
Sets the gene maps.
|
void |
setIdentification(com.compomics.util.experiment.identification.Identification identification)
Sets the identification.
|
void |
setIdentificationFeaturesGenerator(com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator)
Sets the feature generator.
|
void |
setIdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters)
Sets the identification parameters.
|
void |
setLastSelectedFolder(com.compomics.util.io.file.LastSelectedFolder lastSelectedFolder)
Set the last selected folder.
|
void |
setMetrics(com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics)
Sets the metrics saved while loading the files.
|
void |
setMsFileHandler(com.compomics.util.experiment.io.mass_spectrometry.MsFileHandler msFileHandler)
Sets the mass spectrometry file handler.
|
void |
setProcessingParameters(com.compomics.util.parameters.tools.ProcessingParameters processingParameters)
Sets the initial processing preferences.
|
void |
setProject(com.compomics.util.experiment.ProjectParameters projectParameters)
Sets the project.
|
void |
setProjectDetails(ProjectDetails projectDetails)
Sets the project details.
|
void |
setProjectType(com.compomics.util.parameters.peptide_shaker.ProjectType projectType)
Sets the project type.
|
void |
setProteinDetailsProvider(com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider)
Sets the protein details provider.
|
void |
setSelectedItems()
Sets the selected item based on the selected tab.
|
void |
setSelectedItems(long proteinKey,
long peptideKey,
String spectrumFile,
String spectrumTitle)
Sets the keys of the selected protein, peptide and PSM.
|
void |
setSequenceProvider(com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider)
Sets the sequence provider.
|
void |
setSparklineColor(Color sparklineColor)
Set the sparklines color.
|
void |
setSparklineColorNonValidated(Color sparklineColorNonValidated)
Set the non-validated sparklines color.
|
void |
setSparklineColorPossible(Color sparklineColorPossible)
Set the possible sparklines color.
|
void |
setSpectrumCountingParameters(com.compomics.util.parameters.quantification.spectrum_counting.SpectrumCountingParameters spectrumCountingParameters)
Sets new spectrum counting parameters.
|
void |
setUpdated(int tabIndex,
boolean updated)
Sets that the tab was updated.
|
void |
setUpLogFile(boolean redirectOutputStream)
Set up the log file.
|
void |
setUtilitiesUserParameters(com.compomics.util.parameters.UtilitiesUserParameters utilitiesUserParameters)
Set the utilities user parameters.
|
void |
showNotesNotification()
Show a note notification pop up.
|
boolean |
showSparklines()
Returns true if the sparklines are to be shown.
|
void |
showTipsNotification()
Show a tip notification pop up.
|
void |
spectrumFileSelectionChanged(String spectrumFile)
Sets the new spectrum file selected.
|
void |
updateAnnotationMenu()
Updates the ions used for fragment annotation.
|
void |
updateAnnotationMenuBarVisableOptions(boolean showSpectrumOptions,
boolean showBubblePlotOptions,
boolean showIonTableOptions,
boolean showPtmPlotOptions,
boolean showSingleSpectrumExportOptions)
Updates the visible menu items on the settings menu of the annotation
menu bar.
|
void |
updateAnnotationMenus(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters specificAnnotationParameters,
int precursorCharge,
HashSet<String> modNames)
Update the annotation menu bar with the current annotation preferences.
|
void |
updateFilterSettingsField(String text)
Update the filter settings field.
|
void |
updateFrameTitle()
Add the experiment title to the frame title.
|
void |
updateMainMatch(String mainMatch,
int proteinInferenceType)
Update the protein match in the different tabs.
|
void |
updateModificationColorCoding()
Update the modification color coding in all tabs.
|
void |
updateNotesNotificationCounter()
Update the notification counter for the notes.
|
void |
updateRecentProjectsList()
Add the list of recently used files to the file menu.
|
void |
updateSelectionInCurrentTab()
Updates the selected items in the currently opened tab.
|
void |
updateSpectrumAnnotations()
Updates the annotations in the selected tab.
|
void |
updateSurroundingAminoAcids()
Update the number of surrounding amino acids displayed.
|
void |
updateTabbedPanes()
Update the tabbed panes.
|
void |
updateTipsNotificationCounter()
Update the notification counter for the tips.
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic static final int OVER_VIEW_TAB_INDEX
public static final int SPECTRUM_ID_TAB_INDEX
public static final int PROTEIN_FRACTIONS_TAB_INDEX
public static final int MODIFICATIONS_TAB_INDEX
public static final int STRUCTURES_TAB_INDEX
public static final int ANNOTATION_TAB_INDEX
public static final int GO_ANALYSIS_TAB_INDEX
public static final int VALIDATION_TAB_INDEX
public static final int QC_PLOTS_TAB_INDEX
public static String TITLED_BORDER_HORIZONTAL_PADDING
public static String TITLED_BORDER_HORIZONTAL_PADDING_HTML
public static final Color DARK_THEME_BACKGROUND_COLOR
public PeptideShakerGUI()
public PeptideShakerGUI(File psdbFile, String zipURL, String zipUrlDownloadFolder, String pxAccession, boolean pxAccessionPrivate, boolean showWelcomeDialog)
psdbFile - the psdb file to loadzipURL - the URL to a zipped psdb file to download and load, can be
nullzipUrlDownloadFolder - the folder to download the URL to, can be
nullpxAccession - a PX accession to open in the PRIDE Reshake, can be
nullpxAccessionPrivate - if true, the PX accession is privateshowWelcomeDialog - boolean indicating if the Welcome Dialog is to
be shownpublic static void main(String[] args)
args - the argumentspublic void loadUserParameters()
public void setProject(com.compomics.util.experiment.ProjectParameters projectParameters)
projectParameters - the experimentpublic void updateFrameTitle()
public void resetFrameTitle()
public com.compomics.util.io.file.LastSelectedFolder getLastSelectedFolder()
public void setLastSelectedFolder(com.compomics.util.io.file.LastSelectedFolder lastSelectedFolder)
lastSelectedFolder - the folder to setpublic void editPathSettings(WelcomeDialog welcomeDialog)
welcomeDialog - reference to the Welcome dialog, can be nullpublic void initiateDisplay()
public void displayResults()
public void disableSpectrumDisplay()
public void setUpLogFile(boolean redirectOutputStream)
redirectOutputStream - if true, redirects the output streampublic UserParameters getUserParameters()
public com.compomics.util.parameters.UtilitiesUserParameters getUtilitiesUserParameters()
getUtilitiesUserParameters in interface com.compomics.software.dialogs.JavaHomeOrMemoryDialogParentpublic void setUtilitiesUserParameters(com.compomics.util.parameters.UtilitiesUserParameters utilitiesUserParameters)
utilitiesUserParameters - the utilities user parameterspublic void setDefaultParameters()
public void updateAnnotationMenu()
public void updateSpectrumAnnotations()
public void updateModificationColorCoding()
public com.compomics.util.experiment.ProjectParameters getProjectParameters()
public com.compomics.util.experiment.identification.Identification getIdentification()
public com.compomics.util.experiment.io.biology.protein.SequenceProvider getSequenceProvider()
public com.compomics.util.experiment.mass_spectrometry.SpectrumProvider getSpectrumProvider()
public void setSequenceProvider(com.compomics.util.experiment.io.biology.protein.SequenceProvider sequenceProvider)
sequenceProvider - the sequence providerpublic com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider getProteinDetailsProvider()
public void setProteinDetailsProvider(com.compomics.util.experiment.io.biology.protein.ProteinDetailsProvider proteinDetailsProvider)
proteinDetailsProvider - the protein details providerpublic void setMsFileHandler(com.compomics.util.experiment.io.mass_spectrometry.MsFileHandler msFileHandler)
msFileHandler - The mass spectrometry file handler.public void setIdentification(com.compomics.util.experiment.identification.Identification identification)
identification - the identificationpublic com.compomics.util.gui.filtering.FilterParameters getFilterParameters()
public DisplayParameters getDisplayParameters()
public void setFilterParameters(com.compomics.util.gui.filtering.FilterParameters filterParameters)
filterParameters - the filter parameters to usepublic void setDisplayParameters(DisplayParameters displayParameters)
displayParameters - the display parameters to usepublic com.compomics.util.parameters.quantification.spectrum_counting.SpectrumCountingParameters getSpectrumCountingParameters()
public void setSpectrumCountingParameters(com.compomics.util.parameters.quantification.spectrum_counting.SpectrumCountingParameters spectrumCountingParameters)
spectrumCountingParameters - new spectrum counting parameterspublic com.compomics.util.parameters.identification.IdentificationParameters getIdentificationParameters()
public void setIdentificationParameters(com.compomics.util.parameters.identification.IdentificationParameters identificationParameters)
identificationParameters - the identification parameterspublic com.compomics.util.parameters.tools.ProcessingParameters getProcessingParameters()
public void setProcessingParameters(com.compomics.util.parameters.tools.ProcessingParameters processingParameters)
processingParameters - the initial processing preferencespublic void resetModificationFactory()
public Color getSparklineColor()
public void setSparklineColor(Color sparklineColor)
sparklineColor - the sparklineColor to setpublic Color getSparklineColorNonValidated()
public void setSparklineColorNonValidated(Color sparklineColorNonValidated)
sparklineColorNonValidated - the non-validated sparklineColor to setpublic Color getSparklineColorNotFound()
public Color getSparklineColorPossible()
public void setSparklineColorPossible(Color sparklineColorPossible)
sparklineColorPossible - the possible sparklineColor to setpublic double getBubbleScale()
public void setSelectedItems(long proteinKey,
long peptideKey,
String spectrumFile,
String spectrumTitle)
proteinKey - the key of the selected proteinpeptideKey - the key of the selected peptidespectrumFile - the file of the selected spectrumspectrumTitle - the title of the selected spectrumpublic void updateSelectionInCurrentTab()
public void resetSelectedItems()
public void setSelectedItems()
public long getSelectedProteinKey()
public long getSelectedPeptideKey()
public String getSelectedSpectrumFile()
public String getSelectedSpectrumTitle()
public void clearData(boolean clearDatabaseFolder,
boolean updateGuiComponents)
clearDatabaseFolder - decides if the database folder is to be
cleared or notupdateGuiComponents - true if the GUI components are to be updatedpublic void clearParameters()
public OverviewPanel getOverviewPanel()
public ProteinFractionsPanel getProteinFractionsPanel()
public ValidationPanel getValidationPanel()
public ModificationsPanel getModificationsPanel()
public ProteinStructurePanel getProteinStructurePanel()
public SpectrumIdentificationPanel getSpectrumIdentificationPanel()
public GOEAPanel getGOPanel()
public int getPreferredColumnWidth(JTable table, int colIndex, int margin)
table - the tablecolIndex - the colum indexmargin - the margin to addpublic void enableSpectrumExport(boolean enable)
enable - if true the spectrum export in the overview panel will be
enabledpublic void updateMainMatch(String mainMatch, int proteinInferenceType)
mainMatch - the protein match to useproteinInferenceType - the protein inference group typepublic void setDataSaved(boolean dataSaved)
dataSaved - whether the current data has been saved to a psdb file
or notpublic int getSelectedTab()
public long[] getDisplayedProteins()
public long[] getDisplayedPeptides()
public long[] getDisplayedSpectrumMatches()
public long[] getDisplayedAssumptions()
public void openProteinLinks(String links)
links - the links to openpublic DecimalFormat getScoreAndConfidenceDecimalFormat()
public void catchException(Exception e)
e - the exception caughtpublic com.compomics.util.exceptions.exception_handlers.FrameExceptionHandler getExceptionHandler()
public void close()
public void restart()
restart in interface com.compomics.software.dialogs.JavaHomeOrMemoryDialogParentpublic void updateAnnotationMenus(com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters specificAnnotationParameters,
int precursorCharge,
HashSet<String> modNames)
specificAnnotationParameters - the specific annotation parametersprecursorCharge - the precursor chargesmodNames - the names of the modificationspublic com.compomics.util.experiment.identification.spectrum_annotation.SpecificAnnotationParameters getSpecificAnnotationParameters(String spectrumFile, String spectrumTitle, com.compomics.util.experiment.identification.SpectrumIdentificationAssumption spectrumIdentificationAssumption)
spectrumFile - The file name of the spectrum.spectrumTitle - The title of the spectrum.spectrumIdentificationAssumption - The spectrum annotation
preferences.public JMenuBar getAnnotationMenuBar()
public void updateAnnotationMenuBarVisableOptions(boolean showSpectrumOptions,
boolean showBubblePlotOptions,
boolean showIonTableOptions,
boolean showPtmPlotOptions,
boolean showSingleSpectrumExportOptions)
showSpectrumOptions - if true, the spectrum options are shownshowBubblePlotOptions - if true, the bubble plot options are shownshowIonTableOptions - if true, the ion table options are shownshowPtmPlotOptions - if true, the PTM plot option is shownshowSingleSpectrumExportOptions - if true, the single spectrum
export options are shownpublic void updateRecentProjectsList()
public void loadRecentProjectsList(JPopupMenu menu, WelcomeDialog welcomeDialog)
menu - the menu to add the recent files list towelcomeDialog - the welcome dialog referencepublic ProjectDetails getProjectDetails()
public void setProjectDetails(ProjectDetails projectDetails)
projectDetails - the project detailspublic void importPeptideShakerZipFromURL(String zipURL, String destinationFolder)
zipURL - the PeptideShaker zip file to importdestinationFolder - the folder to download and unzip the project inpublic void importPeptideShakerZipFile(File zipFile)
zipFile - the PeptideShaker zip file to importpublic void importPeptideShakerFile(File psFile, boolean importFromZip)
psFile - The PeptideShaker file to import.importFromZip - flag that determines if psdb was imported from a zip
filepublic void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership in interface ClipboardOwnerpublic void exportSelectedSpectraAsMgf()
throws IOException
IOException - Exception thrown whenever an error occurred
while writing the mgf filepublic void exportAnnotatedSpectrum()
throws IOException
IOException - exception thrown whenever an error occurred while
reading or writing a filepublic void exportSpectrumAsFigure()
public void exportSequenceFragmentationAsFigure()
public void exportIntensityHistogramAsFigure()
public void exportMassErrorPlotAsFigure()
public void exportBubblePlotAsFigure()
public void setDisplayOptions(boolean displayProteins,
boolean displayPeptidesAndPsms,
boolean displayCoverage,
boolean displaySpectrum)
displayProteins - if the proteins panel is to be displayeddisplayPeptidesAndPsms - if the peptides and PSMs panel is to be
displayeddisplayCoverage - if the protein coverage panel is to be displayeddisplaySpectrum - if the spectrum panel is to be displayedpublic HashMap<Double,String> getCurrentMassDeltas()
public void saveProject(boolean aCloseWhenDone,
boolean aExportToZipWhenDone)
aCloseWhenDone - if true, PeptideShaker closes after savingaExportToZipWhenDone - if true, the project is also saved as a zip
filepublic void setUpdated(int tabIndex,
boolean updated)
tabIndex - integer indicating which tab (according to the static
indexing) was updated.updated - boolean indicating whether the tab is updated or notpublic void updateTabbedPanes()
public StarHider getStarHider()
public com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator getIdentificationFeaturesGenerator()
public void resetIdentificationFeaturesGenerator()
public void setIdentificationFeaturesGenerator(com.compomics.util.experiment.identification.features.IdentificationFeaturesGenerator identificationFeaturesGenerator)
identificationFeaturesGenerator - the identification features
generatorpublic void resetDisplayFeaturesGenerator()
public DisplayFeaturesGenerator getDisplayFeaturesGenerator()
public com.compomics.util.experiment.identification.peptide_shaker.Metrics getMetrics()
public void setMetrics(com.compomics.util.experiment.identification.peptide_shaker.Metrics metrics)
metrics - the metrics saved while loading the filespublic com.compomics.util.parameters.peptide_shaker.ProjectType getProjectType()
public void setProjectType(com.compomics.util.parameters.peptide_shaker.ProjectType projectType)
projectType - the project typepublic com.compomics.util.experiment.biology.genes.GeneMaps getGeneMaps()
public void setGeneMaps(com.compomics.util.experiment.biology.genes.GeneMaps geneMaps)
geneMaps - the gene mapspublic void spectrumFileSelectionChanged(String spectrumFile)
spectrumFile - the name of the new spectrum filepublic void saveProjectAs(boolean closeWhenDone,
boolean aExportToZipWhenDone)
closeWhenDone - if true, PeptideShaker closes when done savingaExportToZipWhenDone - if true, the project is also saved as a zip
filepublic File getUserSelectedFile(String aSuggestedFileName, String aFileEnding, String aFileFormatDescription, String aDialogTitle, boolean openDialog)
aSuggestedFileName - the suggested file name, can be nullaFileEnding - the file type, e.g., .txtaFileFormatDescription - the file format description, e.g., (Mascot
Generic Format) *.mgfaDialogTitle - the title for the dialogopenDialog - if true an open dialog is shown, false results in a
save dialogpublic void jumpToTab(int tabIndex)
tabIndex - index of the tab as indexed by the static fieldspublic boolean showSparklines()
public void updateSurroundingAminoAcids()
public void checkNewsFeed()
public void openExampleFile()
public void updateFilterSettingsField(String text)
text - the text to setpublic void exportProjectAsZip()
public Image getNormalIcon()
public Image getWaitingIcon()
public long getDefaultPsmSelection(long peptideKey)
peptideKey - the peptide to get the PSM forpublic long getDefaultPeptideSelection(long proteinKey)
proteinKey - the protein to get the peptide forpublic void clearGeneMappings()
public void notificationClicked(String notificationType)
notificationClicked in interface com.compomics.util.gui.error_handlers.notification.NotificationDialogParentpublic void addNote(String note)
note - the note to add, can contain HTML formatting, but not the
HTML start and end tagspublic void setCurentNotes(ArrayList<String> currentNotes)
currentNotes - the notes to setpublic void updateNotesNotificationCounter()
public void showNotesNotification()
public void addTip(String tip)
tip - the tip to add, can contain HTML formatting, but not the HTML
start and end tagspublic void setCurentTips(ArrayList<String> currentTips)
currentTips - the tips to setpublic void updateTipsNotificationCounter()
public void showTipsNotification()
public String getExtendedProjectReport()
public boolean checkForNewVersion()
Copyright © 2021. All rights reserved.