Package schrodinger :: Package application :: Package bioluminate :: Module protein_structure_quality :: Class MultiReportWithChart
[hide private]
[frames] | no frames]

Class MultiReportWithChart

       object --+                        
                |                        
sip.simplewrapper --+                    
                    |                    
          sip.wrapper --+                
                        |                
     PyQt4.QtCore.QObject --+            
                            |            
           object --+       |            
                    |       |            
    sip.simplewrapper --+   |            
                        |   |            
 PyQt4.QtGui.QPaintDevice --+            
                            |            
          PyQt4.QtGui.QWidget --+        
                                |        
               PyQt4.QtGui.QFrame --+    
                                    |    
    protein_report_widget.ReportFrame --+
                                        |
                                       MultiReportWithChart

A Protein Report widget that can deal with multiple protein structures and also has a slider chart that can be used to select residues.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QFrame: Shadow, Shape, StyleMask

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Create the MultiReportWithChart object.
 
changeBFactorPlot(self)
 
toolbar_feedback_override(self, message)
Overrides the matplotlib toolbar set_message method to display the information in the first column of the row of the table that corresponds to the current X coordinate of the plot.
 
selectRows(self, rows)
Select the set of rows in the table given by the list rows
 
sliderMoved(self, slider)
Callback for when the user moves a slider on the sliderchart.
 
setChanged(self, selected_title)
In addition to calling the parent class method, this also replots the sliderchart when the user selects a different set of data.
 
changeProtein(self, entry_id, chains='all')
Change the Protein whose data is displayed in the report widget & chart.
QtCore.QAbstractTableModel class
getDataModelClass(self)
Returns the proper data model to use, allows easy subclassing of the Model in subclasses
 
updateTables(self, *args, **kwargs)
Calculate the data for the current protein and display it in the report widget & chart.
dict
getSummaryData(self, chains='all')
Returns a dictionary with the summary data in it
 
replotChart(self)
Replot the sliderchart with the current data
 
workspaceChanged(self, changed)
Override the parent routine to not change the syncd Value when Everything changes in the workspace, since that's the signal that we've switched proteins, which we do on purpose.

Inherited from protein_report_widget.ReportFrame: close, closePanel, exportAllTables, exportCurrentTable, exportTables, getSelectedDataTitles, getStructure, openHelp, selectionChangedCallback

Inherited from PyQt4.QtGui.QFrame: changeEvent, drawFrame, event, frameRect, frameShadow, frameShape, frameStyle, frameWidth, lineWidth, midLineWidth, paintEvent, setFrameRect, setFrameShadow, setFrameShape, setFrameStyle, setLineWidth, setMidLineWidth, sizeHint

Inherited from PyQt4.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, closeEvent, contentsMargins, contentsRect, contextMenuEvent, contextMenuPolicy, create, cursor, customContextMenuRequested, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, enabledChange, ensurePolished, enterEvent, find, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontChange, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, handle, hasFocus, hasMouseTracking, height, heightForWidth, hide, hideEvent, inputContext, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyPressEvent, keyReleaseEvent, keyboardGrabber, languageChange, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, paletteChange, parentWidget, pos, previousInFocusChain, raise_, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, repaint, resetInputContext, resize, resizeEvent, restoreGeometry, saveGeometry, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputContext, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setShown, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, show, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, width, winId, window, windowActivationChange, windowFilePath, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, x, x11Info, x11PictureHandle, y

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from PyQt4.QtGui.QPaintDevice: colorCount, depth, heightMM, logicalDpiX, logicalDpiY, numColors, paintingActive, physicalDpiX, physicalDpiY, widthMM

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from PyQt4.QtGui.QFrame: Box, HLine, NoFrame, Panel, Plain, Raised, Shadow_Mask, Shape_Mask, StyledPanel, Sunken, VLine, WinPanel

Inherited from PyQt4.QtGui.QWidget: DrawChildren, DrawWindowBackground, IgnoreMask

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Inherited from PyQt4.QtGui.QPaintDevice: PdmDepth, PdmDpiX, PdmDpiY, PdmHeight, PdmHeightMM, PdmNumColors, PdmPhysicalDpiX, PdmPhysicalDpiY, PdmWidth, PdmWidthMM

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 

Create the MultiReportWithChart object. See parent class for argument definition.

Parameters:
  • parent_layout - If given the ReportFrame will add itself to this layout
  • update_button - True if the report should have an update button, False if not.
  • app_parent - if given will be used to supply GUI dialog boxes and busy cursors
  • load_proteins - If True, the panel will attempt to load proteins when created. If False (default), not attempt is made - the widgets are merely created.
Overrides: object.__init__

toolbar_feedback_override(self, message)

 

Overrides the matplotlib toolbar set_message method to display the information in the first column of the row of the table that corresponds to the current X coordinate of the plot. This will usually be something like a residue name or atom name.

Parameters:
  • message (str) - The string to be displayed in the toolbar. Will usually have x and y coordinates in the form of x=.... y=....

selectRows(self, rows)

 

Select the set of rows in the table given by the list rows

Parameters:
  • rows (list) - list (or other iterable) of row numbers to select. Selection will be ONLY these rows - any previous selection is removed.

sliderMoved(self, slider)

 

Callback for when the user moves a slider on the sliderchart. Selects those rows of the table that are contained within the sliderchart box.

Parameters:
  • slider (sliderchart.SlidableLine) - The line that was moved

setChanged(self, selected_title)

 

In addition to calling the parent class method, this also replots the sliderchart when the user selects a different set of data.

Parameters:
  • selected_title (str) - The title of the new set of data
Overrides: protein_report_widget.ReportFrame.setChanged

changeProtein(self, entry_id, chains='all')

 

Change the Protein whose data is displayed in the report widget & chart. If the protein has already been calculated, we just replace the Report Widget's models with the models that contain the data for this protein. If this is a new protein, we run the report and store the data in the models.

Parameters:
  • entry_id (str) - The entry ID of the new protein to display. Use None to clear the table and plot

getDataModelClass(self)

 

Returns the proper data model to use, allows easy subclassing of the Model in subclasses

Returns: QtCore.QAbstractTableModel class
The data model CLASS (not object) to use with this chart
Overrides: protein_report_widget.ReportFrame.getDataModelClass

updateTables(self, *args, **kwargs)

 

Calculate the data for the current protein and display it in the report widget & chart.

Parameters:
  • entry_id (str) - Entry ID of the structure to use, or None (default) if the workspace structure is to be used. If entry_id is given, the structure is taken from the project table row for that entry_id (which may be different from the current workspace structure). If entry_id is None, the workspace structure is used, but crystal structure properties are taken from the included project table row
Overrides: protein_report_widget.ReportFrame.updateTables

getSummaryData(self, chains='all')

 

Returns a dictionary with the summary data in it

Returns: dict
Dictionary with summary data

workspaceChanged(self, changed)

 

Override the parent routine to not change the syncd Value when Everything changes in the workspace, since that's the signal that we've switched proteins, which we do on purpose.

Parameters:
  • changed - What changed in the workspace
Overrides: protein_report_widget.ReportFrame.workspaceChanged