tree_from_dictionary

visualife.data.tree_from_dictionary(dict_root, node_class=<class 'visualife.diagrams.TreeNode.DendrogramNode'>)

Transforms a tree from a dictionary representation into a “true” tree of DendrogramNode nodes :param node_dict: (string) - dictionary of nodes, e.g. loaded by read_newick_dictionary() function :param node_class: (class) - use DendrogramNode (which is the default) or MSADendrogramNode :return: a root node of the tree