ccpn.AnalysisAssign.modules package¶
Module Documentation here
Submodules¶
ccpn.AnalysisAssign.modules.AssignmentInspectorModule module¶
This file contains AssignmentInspectorModule class
modified by Geerten 1-9/12/2016: - initialisation with ‘empty’ settings possible, - now responsive to current.nmrResidues
- class ccpn.AnalysisAssign.modules.AssignmentInspectorModule.AssignmentInspectorModule(mainWindow, name='Assignment Inspector', chemicalShiftList=None, selectFirstItem=False)[source]¶
Bases:
ccpn.ui.gui.modules.CcpnModule.CcpnModule
This Module allows inspection of the NmrAtoms of a selected NmrResidue It responds to current.nmrResidues, taking the last added residue to this list The NmrAtom listWidget allows for selection of the nmrAtom; subsequently its assignedPeaks are displayed.
- LARGE_STRETCH = 100000¶
- SETTING_PADDING = 4¶
- attributeName = 'peaks'¶
- className = 'AssignmentInspectorModule'¶
- includeSettingsWidget = True¶
- maxSettingsState = 2¶
Navigate in selected displays to nmrResidue; skip if none defined
- settingsPosition = 'top'¶
- class ccpn.AnalysisAssign.modules.AssignmentInspectorModule.AssignmentInspectorTable(parent=None, mainWindow=None, moduleParent=None, actionCallback=None, selectionCallback=None, **kwds)[source]¶
Bases:
ccpn.ui.gui.widgets.GuiTable.GuiTable
Class to present a NmrResidue Table and a NmrChain pulldown list, wrapped in a widget
- OBJECT = 'object'¶
- TABLE = 'table'¶
- attributeName = 'chemicalShifts'¶
- className = 'AssignmentInspectorTable'¶
ccpn.AnalysisAssign.modules.BackboneAssignmentModule module¶
Module Documentation here
- class ccpn.AnalysisAssign.modules.BackboneAssignmentModule.BackboneAssignmentModule(mainWindow=None, name='Backbone Assignment')[source]¶
Bases:
ccpn.ui.gui.modules.NmrResidueTable.NmrResidueTableModule
- activePulldownClass¶
alias of
ccpn.core.NmrChain.NmrChain
- className = 'BackboneAssignmentModule'¶
- includeDisplaySettings = True¶
- includeSettingsWidget = True¶
- maxSettingsState = 2¶
Navigate in selected displays to nmrResidue; skip if no displays defined If matchCheckbox is checked, also call findAndDisplayMatches
Navigate in selected displays to nmrResidue; skip if none defined
- settingsMinimumSizes = (500, 200)¶
- settingsPosition = 'left'¶
- ccpn.AnalysisAssign.modules.BackboneAssignmentModule.markNmrAtoms(mainWindow, nmrAtoms: List[ccpn.core.NmrAtom.NmrAtom])[source]¶
ccpn.AnalysisAssign.modules.NmrAtomAssigner module¶
AtomSelector module:
used for backbone and sidechain assignments to set the nmrAtom of a (number of) selected peaks to a specific nucleus. Thus far, it set the ‘y-axis’ dimension of the peak (to be made flexible in the settings tab). Options other than ‘protein’ are not yet implemented.
Original by SS First rework by GWV Reworked by EJB
- class ccpn.AnalysisAssign.modules.NmrAtomAssigner.NmrAtomAssignerModule(mainWindow=None, name='NmrAtomAssigner', nmrAtom=None)[source]¶
Bases:
ccpn.ui.gui.modules.CcpnModule.CcpnModule
Module to be used with PickAndAssignModule for prediction of nmrAtom names and assignment of nmrAtoms to peak dimensions Responds to current.nmrResidue and current.peaks; accepts nmrResidue pid drops
- className = 'NmrAtomAssignerModule'¶
- defaultSettingsState = 0¶
- getResidueTypes(moleculeType: str = 'protein')[source]¶
return a list of residue types assiciated with the moleculeType :param moleculeType - str [‘protein’, ‘DNA’, ‘RNA’, ‘carbohydrate’, ‘other’] :return list of str:
- includeSettingsWidget = True¶
- maxSettingsState = 2¶
- settingsPosition = 'top'¶
ccpn.AnalysisAssign.modules.PeakAssigner module¶
Module to assign peaks Responds to current.peaks
- class ccpn.AnalysisAssign.modules.PeakAssigner.AssignmentTable(parent=None, mainWindow=None, dataFrameObject=None, actionCallback=None, selectionCallback=None, checkBoxCallback=None, clearSelectionCallback=None, _pulldownKwds=None, enableMouseMoveEvent=True, multiSelect=False, selectRows=True, numberRows=False, autoResize=False, enableExport=True, enableDelete=True, enableSearch=True, allowRowDragAndDrop=True, hideIndex=True, stretchLastSection=True, **kwds)[source]¶
Bases:
ccpn.ui.gui.widgets.GuiTable.GuiTable
Subclassed for some added functionality
- class ccpn.AnalysisAssign.modules.PeakAssigner.AxisAssignmentObject(parent, parentModule, dimIndex, mainWindow, grid=None, **kwds)[source]¶
Bases:
ccpn.ui.gui.widgets.Frame.Frame
Create a new frame for displaying information in 1 axis of peakassigner
- class ccpn.AnalysisAssign.modules.PeakAssigner.EditNmrAtomBalloon(mainWindow=None, project=None, *args, **kwds)[source]¶
Bases:
ccpn.ui.gui.widgets.SpeechBalloon.SpeechBalloon
Balloon to hold the pulldown lists for editing the nmrAtom
- class ccpn.AnalysisAssign.modules.PeakAssigner.NotOnLine[source]¶
Bases:
object
Small ‘fake’ object to get a message the user in the assignment Table that a specific dimension can not be assigned in one go since the frequencies of the peaks in this dimension are not on one line (i.e. the C frequencies of the CA and CB in a strip for instance).
- class ccpn.AnalysisAssign.modules.PeakAssigner.PeakAssigner(mainWindow, name='Peak Assigner')[source]¶
Bases:
ccpn.ui.gui.modules.CcpnModule.CcpnModule
Module for assignment of nmrAtoms to the different axes of a peak. Module responds to current.peak
- activePulldownClass = None¶
- className = 'PeakAssigner'¶
- includeSettingsWidget = True¶
- maxSettingsState = 2¶
- settingsPosition = 'left'¶
ccpn.AnalysisAssign.modules.PickAndAssignModule module¶
Do a restricted peak pick along the ‘y-axis’ of (a set of) spectra. Use settings to define the spectral displays, the active spectra and the tolerances for peak picking
This module closely works with the Atom Selector module
First version by SS Refactored by GWV to be responsible to active state on start; proper callbacks and to include “Restricted pick and assign” button.
- class ccpn.AnalysisAssign.modules.PickAndAssignModule.PickAndAssignModule(mainWindow, name='Pick and Assign')[source]¶
Bases:
ccpn.ui.gui.modules.NmrResidueTable.NmrResidueTableModule
Do a restricted peak pick along the ‘y-axis’ of (a set of) spectra. Use settings to define the spectral displays, the active spectra and the tolerances for peak picking
This module closely works with the Atom Selector module
- className = 'PickAndAssignModule'¶
- goToPositionInModules(nmrResidue=None, row=None, col=None)[source]¶
Go to the positions defined my NmrAtoms of nmrResidue in the active displays
- includeDisplaySettings = True¶
- includeNmrChains = False¶
- includePeakLists = False¶
- includeSettingsWidget = True¶
- includeSpectrumTable = True¶
- maxSettingsState = 2¶
- restrictedPick(nmrResidue=None)[source]¶
Routine refactored in revision 9381.
Takes an NmrResidue feeds it into restricted pick lib functions and picks peaks for all spectrum displays specified in the settings tab. Pick uses X and Z axes for each spectrumView as centre points with tolerances and the y as the long axis to pick the whole region.
- restrictedPickAndAssign(nmrResidue=None)[source]¶
Functionality for beta2 to include the Assign part
Takes an NmrResidue feeds it into restricted pick lib functions and picks peaks for all spectrum displays specified in the settings tab. Pick uses X and Z axes for each spectrumView as centre points with tolerances and the y as the long axis to pick the whole region.
Calls assignSelected to assign
- settingsMinimumSizes = (500, 200)¶
- settingsPosition = 'top'¶
ccpn.AnalysisAssign.modules.SequenceGraph module¶
Module Documentation here
- class ccpn.AnalysisAssign.modules.SequenceGraph.AssignmentLine(x1, y1, x2, y2, colour, width, parent=None, style=None, peak=None, guiAtom1: Optional[ccpn.AnalysisAssign.modules.SequenceGraph.GuiNmrAtom] = None, guiAtom2: Optional[ccpn.AnalysisAssign.modules.SequenceGraph.GuiNmrAtom] = None, displacement=None)[source]¶
Bases:
PyQt5.QtWidgets.QGraphicsLineItem
Object to create lines between GuiNmrAtoms with specific style, width, colour and displacement. Displacement allows multiplet peak lines to be shown as adjacent lines between the same nmrAtom.
- class ccpn.AnalysisAssign.modules.SequenceGraph.GuiNmrAtom(mainWindow, text, pos=None, nmrAtom=None)[source]¶
Bases:
PyQt5.QtWidgets.QGraphicsSimpleTextItem
A graphical object specifying the position and name of an atom when created by the Assigner. Can be linked to a Nmr Atom.
- class ccpn.AnalysisAssign.modules.SequenceGraph.GuiNmrResidue(parent, nmrResidue, caAtom, lineSpacing)[source]¶
Bases:
PyQt5.QtWidgets.QGraphicsSimpleTextItem
Object linking residues displayed in Assigner and Nmr Residues. Contains functionality for drag and drop assignment in conjunction with the Sequence Module.
- class ccpn.AnalysisAssign.modules.SequenceGraph.GuiNmrResidueGroup(parent, nmrResidue, caAtom, pos, lineSpacing)[source]¶
Bases:
PyQt5.QtWidgets.QGraphicsItemGroup
Group item to group all nmrAtoms/connecting lines of nmrResidue
- class ccpn.AnalysisAssign.modules.SequenceGraph.GuiSelection(guiRes, colour, width, style, spacing, type)[source]¶
Bases:
PyQt5.QtWidgets.QGraphicsItemGroup
Item to hold the lines for a selection
- class ccpn.AnalysisAssign.modules.SequenceGraph.GuiSelectionBoxes(scene)[source]¶
Bases:
PyQt5.QtWidgets.QGraphicsItemGroup
Group item to group all selection boxes
- class ccpn.AnalysisAssign.modules.SequenceGraph.NmrResidueList(mainWindow, settingsWidget, lineColour, textColour, atomSpacing, lineSpacing, lineWidth, lineConnectWidth, scene, module, defaultResidueAtoms, atomPositionDict)[source]¶
Bases:
object
A Class to hold the information about each gui object in the scene
- addNmrResidue(nmrChainId, nmrResidue, index=0, _insertNmrRes=True, spacing=66, residueAtoms=None, showPredictions=True, showSideChain=False)[source]¶
Add a new nmrResidue at the required position.
- addSideChainAtoms(nmrResidue, cbAtom, atomNames, guiAtoms)[source]¶
Add the sideChain atoms above the backbone line.
- createNmrAtoms(nmrAtoms)[source]¶
Create new peak lines associated with the created/undeleted nmrAtoms.
- getAssignmentLinesFromPeaks(peaks)[source]¶
Get the list of assignment lines attached o the given peaks.
- getIndexNmrResidue(nmrResidue)[source]¶
get the index in the nmrResidueList of the required nmrResidue.
- rebuildPeakAssignments()[source]¶
Rebuild all the peak assignments in the display after changing the number of spectra.
- rebuildPeakLines(peaks, rebuildPeakLines=False, makeListFromPeak=False)[source]¶
Clear all lines on the display associated with peak.
- class ccpn.AnalysisAssign.modules.SequenceGraph.SequenceGraphModule(mainWindow=None, name='Sequence Graph', nmrChain=None)[source]¶
Bases:
ccpn.ui.gui.modules.CcpnModule.CcpnModule
A module for the display of stretches of sequentially linked and assigned stretches of NmrResidues.
- activePulldownClass¶
alias of
ccpn.core.NmrChain.NmrChain
- className = 'SequenceGraph'¶
- deassignPeak(selectedPeak=None, selectedNmrAtom=None)[source]¶
Deassign the peak by removing the assigned nmrAtoms from the list
- includeSettingsWidget = True¶
- maxSettingsState = 2¶
Navigate in selected displays to nmrResidue; skip if none defined
- predictSequencePosition(nmrResidueList: list, showPredictions=True)[source]¶
Predicts sequence position for Nmr residues displayed in the Assigner and highlights appropriate positions in the Sequence Module if it is displayed.
- settingsPosition = 'left'¶
- showNmrChainFromPulldown(data=None)[source]¶
Clear and redraw the nmrChain selected from the pulldown.
ccpn.AnalysisAssign.modules.SideChainAssignmentModule module¶
Module Documentation here
- class ccpn.AnalysisAssign.modules.SideChainAssignmentModule.SideChainAssignmentModule(mainWindow, name='Sidechain Assignment')[source]¶
Bases:
ccpn.AnalysisAssign.modules.PickAndAssignModule.PickAndAssignModule
- className = 'SideChainAssignmentModule'¶