Change log
The changelog will be updated on each packaged release beginning with
toytree v.3.0. Please see the GitHub repo for more detailed commit
messages and the history prior to v.3.0.
2023/6/5 (v.3.0.0)
- new unittest framework for testing methods on GitHub CI.
- new subpackage structure to organize growing code base.
- new functools wrap to keep API and module-level methods synced.
cliNew CLI for fast tree drawings in browsertoytree --ts p --width X --height YcolorNew ToyColor module for easier color type validation and conversion.ioImproved inference of internal label type intoytree.treeioSupport defaults to np.nan if not present in parsed tree.ioCompletely new newick parser function. More flexible parsing.ioNexus parser can handle more types of nexus formatting.ioShow informative message on NHX parsing errors/formatting.ioWrite Node and Edge features separately to NHX format.distanceseparated tree and node distance methods in submodules.distancenew faster node distance functions for path, up or down.distancemuch faster algorithm for computing node distances.distancebipartition based tree distance functions developed and tested.distancequartet based tree distance functions developed and tested.modnew rooting functions including minimal ancestor deviation (MAD).modadded unittests for root and mod methods across wide variety of cases.coreset default Node.dist to 0, including for root on random trees.coreimplemented new generic Node query method. Replace regex arg w/ "~name".coresimplified Node object, exposed iter functions, made edit funcs private.coreToyTree now has.edge_featuresset to store default and additional features that should be treated as edge data. Edge data in NHX is stored as such.enumcreated enum subpackage to group partition iterators and counters.datareplacedget_node_valueswithget_node_data.datamissing values in Node data default to np.nan onget_node_data()datanew expand_node_mapping for faster expansion of Node queries w/ regex.drawingrenamed ToytreeMark to ToyTreeMarkdrawingUse text extents when auto-building canvas size.drawingStore tip coords in layout/ToyTreeMark for extents, tip angles, etc.drawingused aspect='fit-range' on circular layouts.drawingbugfix for circular trees 'p' edge type SVG paths.drawingbugfix to allow ts='p' with new validators when no Ne feature.drawingunrooted layout EA or ED algorithms with improved tip angles.styleNew TreeStyle serialization and validation is faster and easier to debug.stylegeneral color_mapping approach developed as (feature, ...).stylegeneral value_mapping approach developed as (feature, ...). Replacenormalize_values.stylecreate a 'b' builtin style for showing support values easily.styleuse same validation method for tip and node data w/sizearg.annotateNew annotation subpackage created for extensible add-on plots.annotateBasic Node/Edge annotation drawing methods developed.annotatePie charts and general rectangle/bar methods developed.annotateCustom Marks to allow for shift in px units, not just data units.annotatemovedadd_scale_barandaxes_stylingmethods to annotate.pcmcontinuous and discrete brownian sim funcs w/ similar syntax.networknetwork parsing module.