There is a newer version of the record available.

Published January 13, 2023 | Version 0.5.4

tskit-dev/tskit: Python 0.5.4

Description

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)

Files

tskit-dev/tskit-0.5.4.zip

Files (1.3 MB)

Name Size
md5:8b79d7ca09292f11eb42fb4e074126f7
1.3 MB Preview Download

Additional details

Related works