Python 0.5.4
Features
-
A new
Tree.is_rootmethod avoids the need to to search the potentially
large list ofTree.roots(@hyanwong, #2669, #2620) -
The
TreeSequenceobject now has the attributesmin_timeandmax_time,
which are the minimum and maximum among the node times and mutation times,
respectively. (@szhan, #2612, #2271) -
The
draw_svgmethods now have amax_num_treesparameter to truncate
the total number of trees shown, giving a readable display for tree
sequences with many trees (@hyanwong, #2652) -
The
draw_svgmethods now accept acanvas_sizeparameter to allow
extra room on the canvas e.g. for long labels or repositioned graphical
elements (@hyanwong, #2646, #2645) -
The
Treeobject now has the methodsiblingsto get
the siblings of a node. It returns an empty tuple if the node
has no siblings, is not a node in the tree, is the virtual root,
or is an isolated non-sample node.
(@szhan, #2618, #2616) -
The
msprime.RateMapclass has been ported into tskit: functionality should
be identical to the version in msprime, apart from minor changes in the formatting
of tabular text output (@hyanwong, @jeromekelleher, #2678) -
Tskit now supports and has wheels for Python 3.11. This Python version has a significant performance boost. (@benjeffery , #2624 , #2248 )
Breaking Changes