schrodinger.trajectory.trajectory_gui_dir.interaction_plots module¶
Plot Manager for interaction plots (e.g. H-Bonds, Pi-Pi Stacking)
- class schrodinger.trajectory.trajectory_gui_dir.interaction_plots.InteractionsPlotManager(panel, mode, use_visible_atoms)[source]¶
Bases:
schrodinger.trajectory.trajectory_gui_dir.plots.TrajectoryAnalysisPlotManager
Class responsible for setting up and running an interactions plot task.
- __init__(panel, mode, use_visible_atoms)[source]¶
- Parameters
panel (QtWidget.QWidget) – Parent panel
mode (AnalysisMode) – Analysis mode
use_visible_atoms (bool) – Whether to only show interactions between visible atoms.
- configureTask(task, analysis_mode, ws_st)[source]¶
Configure the analysis task analyze Workspace interactions of given type.
- Parameters
task (tasks.AbstractTask) – Task to configure
analysis_mode (traj_plot_models.AnalysisMode) – Interactions analysis mode for this task
ws_st (structure.Structure) – Workspace structure containing the system.
- Returns
Configured analysis task
- Return type
traj_plot_model.TrajectoryAnalysisSubprocTask
- getInitialPlotTitleAndTooltip()[source]¶
Derive the interaction plot title based on the settings stored in task.
See base method for documentation of return value.
- PANEL_CLASS = None¶
- blockSignals(self, bool) bool ¶
- chart()¶
- childEvent(self, QChildEvent)¶
- children(self) List[QObject] ¶
- connectNotify(self, QMetaMethod)¶
- createCollapsiblePlotWidget()¶
- createPanel()¶
For advanced plots, creates an instance of a plot panel and returns it. For simple (panel-less) plots, returns None.
- customEvent(self, QEvent)¶
- deleteLater(self)¶
- deletePlot¶
- destroyed¶
destroyed(self, object: QObject = None) [signal]
- disconnect(QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- displayAsl¶
- displayFrameAndAsl¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- event(self, QEvent) bool ¶
- eventFilter(self, QObject, QEvent) bool ¶
- exportToCSV()¶
Export plot data to a CSV file
- exportToExcel()¶
Export data to an .xls file
- findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) QObject ¶
- findChild(self, Tuple, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) QObject
- findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject] ¶
- findChildren(self, Tuple, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- generateSettingsHash(settings_list)¶
Return a tuple that uniquely identifies this plot.
- Parameters
settings_list (list) – List of settings that can uniquely identify the plot. In addition to these, the plot class name and trajectory path will be added.
- Returns
Unique identifier for the plot.
- Return type
tuple
- getDataForExport()¶
Return a list of row data to export to CSV or Excel.
- Returns
Data to be exported
- Return type
list(list)
- getExportData()¶
Most panels export the same data whether export was selected from the plot panel or the main panel. Override this method to export different type of data when exporting from the parent panel, via the “Export Results…” button.
- getPlotTitle()¶
- getPlotType()¶
Returns what type of plot this class uses; used for grouping export data. For TRAJECTORY grouping, each plot’s data is added as a column in the same Excel sheet.
- getSettingsHash()¶
- inherits(self, str) bool ¶
- installEventFilter(self, QObject)¶
- isRunning()¶
Return True if the plot is still generating data.
- isSignalConnected(self, QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, int)¶
- loadFromTask(task)¶
Load in results from the given task.
- Parameters
task (tasks.AbstractTask) – Task to get result data from.
- metaObject(self) QMetaObject ¶
- moveToThread(self, QThread)¶
- newDataAvailable¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, str) [signal]
- onPlotClicked(value)¶
- parent(self) QObject ¶
- property(self, str) Any ¶
- pyqtConfigure(...)¶
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- receivers(self, PYQT_SIGNAL) int ¶
- removeEventFilter(self, QObject)¶
- saveImage()¶
Save a .png file of the plot
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, str)¶
- setParent(self, QObject)¶
- setProperty(self, str, Any) bool ¶
- setupView(fixed_height=250, multi_series=False)¶
- showContextMenu()¶
- showWarning¶
- signalsBlocked(self) bool ¶
- start()¶
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- staticMetaObject = <PyQt5.QtCore.QMetaObject object>¶
- thread(self) QThread ¶
- timerEvent(self, QTimerEvent)¶
- tr(self, str, disambiguation: str = None, n: int = - 1) str ¶
- class schrodinger.trajectory.trajectory_gui_dir.interaction_plots.MultiSeriesPlotManager(panel, use_visible_atoms)[source]¶
Bases:
schrodinger.trajectory.trajectory_gui_dir.interaction_plots.InteractionsPlotManager
Plot manager that contains multiple interaction series, on a single plot. Raises RuntimeError if plot could not be created.
- newDataAvailable¶
- showWarning¶
- __init__(panel, use_visible_atoms)[source]¶
- Parameters
panel (QtWidget.QWidget) – Parent panel
mode (AnalysisMode) – Analysis mode
use_visible_atoms (bool) – Whether to only show interactions between visible atoms.
- createBatchQueue()[source]¶
Get a configured task queue for running a batch of tasks.
- Returns
Configured task queue
- Return type
- getSettingsHash()[source]¶
Generates a key for use in the interactions map
- Returns
key for interaction map
- Return type
str, tuple(AnalysisMode), tuple(str)
- validateTaskQueue(task_queue)[source]¶
Validate task queue for multi-interaction plot. On error, return error message text, otherwise return None.
- getInitialPlotTitleAndTooltip()[source]¶
For multi-series plots, title will be updated when all tasks complete via if multiple ASL sets are used.
- PANEL_CLASS = None¶
- blockSignals(self, bool) bool ¶
- chart()¶
- childEvent(self, QChildEvent)¶
- children(self) List[QObject] ¶
- configureTask(task, analysis_mode, ws_st)¶
Configure the analysis task analyze Workspace interactions of given type.
- Parameters
task (tasks.AbstractTask) – Task to configure
analysis_mode (traj_plot_models.AnalysisMode) – Interactions analysis mode for this task
ws_st (structure.Structure) – Workspace structure containing the system.
- Returns
Configured analysis task
- Return type
traj_plot_model.TrajectoryAnalysisSubprocTask
- connectNotify(self, QMetaMethod)¶
- createPanel()¶
For advanced plots, creates an instance of a plot panel and returns it. For simple (panel-less) plots, returns None.
- customEvent(self, QEvent)¶
- deleteLater(self)¶
- deletePlot¶
- destroyed¶
destroyed(self, object: QObject = None) [signal]
- disconnect(QMetaObject.Connection) bool ¶
- disconnect(self) None
- disconnectNotify(self, QMetaMethod)¶
- displayAsl¶
- displayFrameAndAsl¶
- dumpObjectInfo(self)¶
- dumpObjectTree(self)¶
- dynamicPropertyNames(self) List[QByteArray] ¶
- event(self, QEvent) bool ¶
- eventFilter(self, QObject, QEvent) bool ¶
- exportToCSV()¶
Export plot data to a CSV file
- exportToExcel()¶
Export data to an .xls file
- findChild(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) QObject ¶
- findChild(self, Tuple, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) QObject
- findChildren(self, type, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject] ¶
- findChildren(self, Tuple, name: str = '', options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegExp, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, type, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- findChildren(self, Tuple, QRegularExpression, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) List[QObject]
- generateSettingsHash(settings_list)¶
Return a tuple that uniquely identifies this plot.
- Parameters
settings_list (list) – List of settings that can uniquely identify the plot. In addition to these, the plot class name and trajectory path will be added.
- Returns
Unique identifier for the plot.
- Return type
tuple
- getDataForExport()¶
Return a list of row data to export to CSV or Excel.
- Returns
Data to be exported
- Return type
list(list)
- getExportData()¶
Most panels export the same data whether export was selected from the plot panel or the main panel. Override this method to export different type of data when exporting from the parent panel, via the “Export Results…” button.
- getPlotTitle()¶
- getPlotType()¶
Returns what type of plot this class uses; used for grouping export data. For TRAJECTORY grouping, each plot’s data is added as a column in the same Excel sheet.
- inherits(self, str) bool ¶
- installEventFilter(self, QObject)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- isWidgetType(self) bool ¶
- isWindowType(self) bool ¶
- killTimer(self, int)¶
- loadFromTask(task)¶
Load in results from the given task.
- Parameters
task (tasks.AbstractTask) – Task to get result data from.
- metaObject(self) QMetaObject ¶
- moveToThread(self, QThread)¶
- objectName(self) str ¶
- objectNameChanged¶
objectNameChanged(self, str) [signal]
- parent(self) QObject ¶
- property(self, str) Any ¶
- pyqtConfigure(...)¶
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- receivers(self, PYQT_SIGNAL) int ¶
- removeEventFilter(self, QObject)¶
- saveImage()¶
Save a .png file of the plot
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- setObjectName(self, str)¶
- setParent(self, QObject)¶
- setProperty(self, str, Any) bool ¶
- setupView(fixed_height=250, multi_series=False)¶
- showContextMenu()¶
- signalsBlocked(self) bool ¶
- startTimer(self, int, timerType: Qt.TimerType = Qt.CoarseTimer) int ¶
- staticMetaObject = <PyQt5.QtCore.QMetaObject object>¶
- thread(self) QThread ¶
- timerEvent(self, QTimerEvent)¶
- tr(self, str, disambiguation: str = None, n: int = - 1) str ¶