The perils of using an non-standardized ever-changing idiosyncratic
format that re-purposes a vaguely defined feature of a vaguely-defined
variant of format for which dozens of idiosyncratic, conflicting, and
non-documented variants exist to try and express rich information
rigorously.
You can submit a feature request on GitHub, and I will look into it.
My plan is to deprecate the beast summary tree at some point, mainly
because (a) DendroPy's metadata infrastructure handles this and other
cases in a more general, abstract way [albeit, with some of the work
delegated to client code] and (b) I do not want to keep chasing ever-
changing formats and format variants all over hill and dale.
In the mean time, (and, in fact, the recommended way to handle this
now and the future), you can make use of the fact that: (a) DendroPy
parses and makes available all comments associated with trees and
nodes and (b) DendroPy can optionally extract `[&...]` comments as
metadata (see below).
Simply read in the tree as a normal dendropy.Tree object, and then
examine the comments and metadata directly.
If you ask DendroPy to parse out the metadata, by, for e.g.:
TreeList.get_from_path("foo.tre",
...
extract_comment_metadata=True)
the metadata will be available in DendroPy's metadata infrastructure,
as described here:
http://pythonhosted.org/DendroPy/tutorial/working_with_metadata_annotations.html
This type of parsing is less strict than the BeastSummaryTree one, so
may get all you need.
Alternatively, you can as DendroPy *not* to parse the comments into
metadata ('extract_comment_metadata=False'), and access the comments
directly by the ``comments`` attribute of node (and tree) objects.
This will simply be a list representing the comment strings associated
with each object.
In either case, you will have to do some work to parse the data,
coerce to proper type, and promote to attributes (if needed).