Package schrodinger :: Module antibody_db_manage_gui :: Class DBManagePanel
[hide private]
[frames] | no frames]

Class DBManagePanel

       object --+                        
                |                        
sip.simplewrapper --+                    
                    |                    
          sip.wrapper --+                
                        |                
     PyQt4.QtCore.QObject --+            
                            |            
           object --+       |            
                    |       |            
    sip.simplewrapper --+   |            
                        |   |            
 PyQt4.QtGui.QPaintDevice --+            
                            |            
          PyQt4.QtGui.QWidget --+        
                                |        
          PyQt4.QtGui.QMainWindow --+    
                                    |    
      ui.qt.appframework.AppFramework --+
                                        |
                                       DBManagePanel

The Main Panel Class

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QMainWindow: DockOption, DockOptions

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
__init__(self)
Create a DBManagePanel instance
 
setDefaultDB(self)
Set the current database file as the default database to open on panel initialization.
 
deleteSelectedRows(self)
Delete selected rows in the database table
 
deleteDatabase(self)
Delete the entire database
 
exportTable(self)
Export the table to a comma-separated file
 
filterAll(self)
Reset the filter, including any custom set of filter columns
 
selectFilterColumns(self)
Pop up a dialog to let the user select which columns to filter on
 
setSearchColumns(self, columns)
Set the list of columns to filter on.
 
toggleAllColumns(self, state)
Show either all columns or a subset of columns
 
removeSearchType(self, search_type)
Remove a search type from the list of objects to search for antibodies
 
addSearchDB(self)
Add a database to search for antibodies
 
addSearchDirectory(self)
Add a directory to search for antibodies
 
addSearchFiles(self)
Add a set of files to search for antibodies
 
addSearchWS(self)
Add the workspace to the set of objects to search for antibodies
 
browseDB(self)
Open a file browser to allow the user to pick a new database file
 
openDatabase(self, filename)
Read in an existing database file and populate the DB table
 
resizeTableColumns(self)
Set the table columns to a reasonable size to show the full header
 
prepDatabase(self)
Add new structures to the database file.
psd.PrimeStructureDBEntry
getDBEntry(self, key, display_name='Key')
Get the database entry associated with the value key associated with property display_name.
 
valueEdited(self, row, column, value)
Changes the database entry to reflect the new value of an edited table cell.

Inherited from ui.qt.appframework.AppFramework: __del__, addCentralWidget, askOverwrite, askOverwriteIfNecessary, closeEvent, closePanel, createMenus, error, exec_, getApp, getInputFile, getInputSource, getOpenFileName, getOpenFileNames, info, interior, isDockableInMaestro, monitorJob, processEvents, question, quitPanel, restoreCursor, runCommand, setButtonEnabled, setButtonState, setProgress, setProgressError, setWaitCursor, setupJobParameters, show, showEvent, timerEvent, trackJobProgress, warning

Inherited from PyQt4.QtGui.QMainWindow: addDockWidget, addToolBar, addToolBarBreak, centralWidget, contextMenuEvent, corner, createPopupMenu, dockOptions, dockWidgetArea, documentMode, event, iconSize, iconSizeChanged, insertToolBar, insertToolBarBreak, isAnimated, isDockNestingEnabled, isSeparator, menuBar, menuWidget, removeDockWidget, removeToolBar, removeToolBarBreak, restoreDockWidget, restoreState, saveState, setAnimated, setCentralWidget, setCorner, setDockNestingEnabled, setDockOptions, setDocumentMode, setIconSize, setMenuBar, setMenuWidget, setStatusBar, setTabPosition, setTabShape, setToolButtonStyle, setUnifiedTitleAndToolBarOnMac, splitDockWidget, statusBar, tabPosition, tabShape, tabifiedDockWidgets, tabifyDockWidget, toolBarArea, toolBarBreak, toolButtonStyle, toolButtonStyleChanged, unifiedTitleAndToolBarOnMac

Inherited from PyQt4.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, contentsMargins, contentsRect, 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, paintEvent, 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, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeHint, 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, setObjectName, setProperty, signalsBlocked, startTimer, thread, 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.QMainWindow: AllowNestedDocks, AllowTabbedDocks, AnimatedDocks, ForceTabbedDocks, VerticalTabs

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)
(Constructor)

 

Create a DBManagePanel instance

Overrides: object.__init__

toggleAllColumns(self, state)

 

Show either all columns or a subset of columns

Parameters:
  • state (bool) - True if all columns should be shown, False if only a subset

removeSearchType(self, search_type)

 

Remove a search type from the list of objects to search for antibodies

Parameters:
  • search_type (SearchType instance) - The SearchType instance to remove

openDatabase(self, filename)

 

Read in an existing database file and populate the DB table

Parameters:
  • filename (str) - The path to an existing database file

prepDatabase(self)

 

Add new structures to the database file. Searches all specified SearchTypes, curates the resulting structures and adds valid antibodies to the database

getDBEntry(self, key, display_name='Key')

 

Get the database entry associated with the value key associated with property display_name.

Parameters:
  • key (any) - The value to grab an entry for. This should be a unique value for property display_name
  • display_name (str) - The property to search for the key value. By default, this property is 'Key', which is the unique database key. The strings to use for with argument are the strings displayed in the column headers of the table, not the database property names.
Returns: psd.PrimeStructureDBEntry
The database entry associated with key value of display_name property.

valueEdited(self, row, column, value)

 

Changes the database entry to reflect the new value of an edited table cell.

Parameters:
  • row (int) - The row of the edited cell
  • column (int) - The column of the editied cell
  • value (any) - The new value of the cell