Package schrodinger :: Package application :: Package phase :: Module phase_markers :: Class ScreeningEditFeatureDialog
[hide private]
[frames] | no frames]

Class ScreeningEditFeatureDialog

       object --+                        
                |                        
sip.simplewrapper --+                    
                    |                    
          sip.wrapper --+                
                        |                
     PyQt4.QtCore.QObject --+            
                            |            
           object --+       |            
                    |       |            
    sip.simplewrapper --+   |            
                        |   |            
 PyQt4.QtGui.QPaintDevice --+            
                            |            
          PyQt4.QtGui.QWidget --+        
                                |        
              PyQt4.QtGui.QDialog --+    
                                    |    
                    EditFeatureDialog --+
                                        |
                                       ScreeningEditFeatureDialog

Advanced version of EditFeatureDialog that adds screening options for sites in Phase hypothesis.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QDialog: DialogCode

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
setupPanel(self, feature_id)
Set up panel
 
setupConnections(self)
Set up connnections
 
initialize(self)
Initialize dialog using site attributes from the Phase hypothesis stored in the PT.
hypothesis.PhaseHypothesis
_createFragmentHypothesis(self)
This function takes current working hypothesis and creates new hypothesis using reference ct as a 'fragment'.
 
_setAdditionalCts(self, additional_sts)
Add additional cts to the current hypothesis.
int or None
_findSiteIndex(self, use_orig_name=False)
This function determines site index in a hypothesis for the current feature.
int or None
_findSiteIndexByProximity(self)
This function determines site index in a hypothesis for the current feature using mapping by proximity.
 
_modifyFragments(self, delete_current_site=False)
Modify hypothesis fragments when feature attributes were modified.
 
_updateHypothesisWithFragments(self, fragments, sites)
Creates a new hypothesis from fragments but carries over the hypothesis specific ID and properties from an the currently stored hypothesis.
 
_featureTypeChanged(self, index)
This function is called when the feature type is changed.
 
setDefaultFeatureRules(self, feature_type)
Sets default feature rules.
 
_checkDisabledMask(self, hypo_mask)
Checks mask data for all sites in the current hypothesis and counts number of sites which are not 'Disabled' for use in screening.
 
_permittedFeaturesChanged(self)
This slot is called when user makes changes to 'permitted' to match features check states.
 
_prohibitedFeaturesChanged(self)
This slot is called when user makes changes to 'prohibited' to match features check states.
 
_disableMatchFeatures(self, features, combo)
This function disables given features in a specified combo box.
 
_toleranceChanged(self)
This slot is called when user changes feature tolerance.
 
_resetFeature(self)
Reset feature attributes to its original values.
 
_deleteFeature(self)
Delete this feature and close editor dialog.
 
accept(self)
This function is called when user clicks 'Ok' button.
 
_copyHypothesisXvol(self)
Checks whether hypothesis in the PT had excluded volumes and determines whether excluded volumes need to be copied to the current hypothesis (self.hypo).
 
_updateToleranceMarkers(self)
Updates feature tolerance spheres in the Workspace.
 
_updateTolerance(self)
Updates feature tolerance data.
 
_updateSiteMask(self)
Updates site mask data.
 
_updateRules(self)
Updates feature matching rules.

Inherited from EditFeatureDialog: __init__, close, disableProjectedFeatures, reject, showAtCursor, showHelp

Inherited from PyQt4.QtGui.QDialog: accepted, closeEvent, contextMenuEvent, done, eventFilter, exec_, extension, finished, isSizeGripEnabled, keyPressEvent, minimumSizeHint, open, orientation, rejected, resizeEvent, result, setExtension, setModal, setOrientation, setResult, setSizeGripEnabled, setVisible, showEvent, showExtension, sizeHint

Inherited from PyQt4.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childrenRect, childrenRegion, clearFocus, clearMask, contentsMargins, contentsRect, contextMenuPolicy, create, cursor, customContextMenuRequested, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, enabledChange, ensurePolished, enterEvent, event, 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, keyReleaseEvent, keyboardGrabber, languageChange, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, 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, 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, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, show, 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, 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 EditFeatureDialog: FEATURE_OFFSET

Inherited from PyQt4.QtGui.QDialog: Accepted, Rejected

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]

setupPanel(self, feature_id)

 

Set up panel

Parameters:
  • feature_id (int) - feature id
Overrides: EditFeatureDialog.setupPanel

setupConnections(self)

 

Set up connnections

Overrides: EditFeatureDialog.setupConnections
(inherited documentation)

initialize(self)

 

Initialize dialog using site attributes from the Phase hypothesis stored in the PT.

Overrides: EditFeatureDialog.initialize

_createFragmentHypothesis(self)

 

This function takes current working hypothesis and creates new hypothesis using reference ct as a 'fragment'. This will later allow to edit hypothesis features.

Returns: hypothesis.PhaseHypothesis
new fragment based hypothesis

_setAdditionalCts(self, additional_sts)

 

Add additional cts to the current hypothesis.

Parameters:
  • additional_sts (list) - list of additional cts

_findSiteIndex(self, use_orig_name=False)

 

This function determines site index in a hypothesis for the current feature.

Parameters:
  • use_orig_name (bool) - defines whether original site name should be used to find site index in a hypothesis.
Returns: int or None
index of a given site in the current hypothesis

_findSiteIndexByProximity(self)

 

This function determines site index in a hypothesis for the current feature using mapping by proximity. This is need for the case when feature type changes.

Returns: int or None
index of a given site in the current hypothesis

_modifyFragments(self, delete_current_site=False)

 

Modify hypothesis fragments when feature attributes were modified. This function is called when hypothesis already has fragments.

Parameters:
  • delete_current_site (bool) - flag indicating whether current site should be deleted (this happens when user clicks 'Delete' button)

_updateHypothesisWithFragments(self, fragments, sites)

 

Creates a new hypothesis from fragments but carries over the hypothesis specific ID and properties from an the currently stored hypothesis.

Parameters:
  • fragments (list) - list of fragment cts
  • sites (list) - list of hypothesis sites

_featureTypeChanged(self, index)

 

This function is called when the feature type is changed.

Parameters:
  • index (int) - type index in features combo box
Overrides: EditFeatureDialog._featureTypeChanged

setDefaultFeatureRules(self, feature_type)

 

Sets default feature rules. Given feature type is permitted and disabled, so that user can not change it. No 'prohibited' features are specificed.

Parameters:
  • feature_type (str) - feature type

_checkDisabledMask(self, hypo_mask)

 

Checks mask data for all sites in the current hypothesis and counts number of sites which are not 'Disabled' for use in screening. If the count equals 2 disable 'Disabled' item in 'Use in screening' combo box.

Parameters:

_disableMatchFeatures(self, features, combo)

 

This function disables given features in a specified combo box.

Parameters:
  • features (list) - list of features that should be disabled
  • combo (QtWidgets.QComboBox) - combo box that contains features that should disabled.

_resetFeature(self)

 

Reset feature attributes to its original values.

Overrides: EditFeatureDialog._resetFeature

accept(self)

 

This function is called when user clicks 'Ok' button. Here we determine what attributes were modified and make calls to save modified hypothesis in the Project Table.

Overrides: PyQt4.QtGui.QDialog.accept