read_newick_dictionary

visualife.data.read_newick_dictionary(newick, if_read_file=False)

Reads a tree in the Newick format :param newick: (string) - a file name or the data itself :param if_read_file: (boolean) - if true, it’s assumed the input is a file name

and the data must be loaded from a file. Otherwise, the string will be parsed
Returns:a dictionary of tree nodes