Skip to content

Python 0.5.4

Compare
Choose a tag to compare
@github-actions github-actions released this 13 Jan 20:29
· 172 commits to main since this release

Features

  • A new Tree.is_root method avoids the need to to search the potentially
    large list of Tree.roots (@hyanwong, #2669, #2620)

  • The TreeSequence object now has the attributes min_time and max_time,
    which are the minimum and maximum among the node times and mutation times,
    respectively. (@szhan, #2612, #2271)

  • The draw_svg methods now have a max_num_trees parameter to truncate
    the total number of trees shown, giving a readable display for tree
    sequences with many trees (@hyanwong, #2652)

  • The draw_svg methods now accept a canvas_size parameter to allow
    extra room on the canvas e.g. for long labels or repositioned graphical
    elements (@hyanwong, #2646, #2645)

  • The Tree object now has the method siblings to 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.RateMap class 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

  • the filter_populations, filter_individuals, and filter_sites
    parameters to simplify previously defaulted to True but now default
    to None, which is treated as True. Previously, passing None
    would result in an error. (@hyanwong, #2609, #2608)