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¶
A
pyqtSignal
emitted by instances of the class.
- __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()¶