schrodinger.ui.qt.dendrogram module¶
- schrodinger.ui.qt.dendrogram.makeListOf(input)¶
- class schrodinger.ui.qt.dendrogram.DendrogramSyncer¶
Bases:
object
- __init__()¶
- addTree(tree)¶
- removeTree(tree)¶
- respondToChangeSelection(graphicTree)¶
- respondToUpdatePositions(graphicTree)¶
- class schrodinger.ui.qt.dendrogram.NewickNode¶
Bases:
object
Temporary node structure.
- __init__()¶
- addChild(node)¶
- schrodinger.ui.qt.dendrogram.assignLeaves(node)¶
Walk the tree from leaves to root, storing on each node all the leaves of its leaves
- schrodinger.ui.qt.dendrogram.buildTree(node)¶
This recursive function builds hierarchy of
DendrogramNode
nodes by traversing passed tree, and returns dendrogram root node.
- schrodinger.ui.qt.dendrogram.parseNewickString(dndstring)¶
Parses a Newick-formatted string and generates dendrogram tree.
- Return type
DendroGraphicalTree
- Returns
Graphic dendrogram tree.
- class schrodinger.ui.qt.dendrogram.GuiPanel(dendr)¶
Bases:
PyQt6.QtWidgets.QWidget
- __init__(dendr)¶
- addFloatSpinBox(name, min=0, max=1000)¶
- changeThickness()¶
- changeScaling()¶
- updateCoordinates()¶
- colorByThreshold(threshold)¶
- class schrodinger.ui.qt.dendrogram.Dendrogram(ViewCls=None)¶
Bases:
PyQt6.QtCore.QObject
- selectionChanged¶
pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- __init__(ViewCls=None)¶
- nodes()¶
- setLeaves(key, lis)¶
- isVisible()¶
- initializeLeaves(lis)¶
- addLeafProperty(key, lis)¶
- getProperty(key, index)¶
- loadTreeFromNewick(dndstring)¶
- buildTree(similarityFunction)¶
- runOnEachGraphicNode(function)¶
- showTree(initializeFunction, pref=None)¶
Show the tree as per the options in the pref.
- Parameters
initializeFunction (Method) – Method to call on all node.
pref (schrodinger.ui.dendrogram.DendrogramGraphicTreeCoordinatesPreferences) – options to display the dendrogram
- Returns
Dendrogram view.
- Return type
schrodinger.application.msv.gui.dendrogram_viewer.MSVDendrogramView
- showLeaves(number)¶
- getoptionsGUI()¶