tskit-dev/tskit: Python 0.5.3
- Jerome Kelleher1
- Ben Jeffery2
- Yan Wong1
- Peter Ralph3
- Georgia Tsambos4
- Daniel Goldstein5
- Kevin R. Thornton6
- Shing Hei Zhan7
- Anthony Wilder Wohns8
- pyup.io bot9
- Graham Gower10
- Hugo van Kemenade11
- Brian Zhang
- Murillo R.3
- Castedo Ellerman12
- Clemens Weiss
- Gertjan Bisschop
- Jeremy Guez
- Savita Karthikeyan
- Inés Rebollo
- Saurabh Belsare13
- Andrew Kern3
- Duncan Palmer
- marianne-aspbury
- Jeet Sukumaran14
- Jonathan Terhorst
- Roohy (Ruhollah) Shemirani15
- 1. Big Data Institute
- 2. Oxford University
- 3. University of Oregon
- 4. University of Melbourne
- 5. Broad Institute of MIT and Harvard
- 6. University of California Irvine
- 7. University of Oxford
- 8. Broad Institute
- 9. @pyupio
- 10. University of Copenhagen
- 11. Nord Software
- 12. geneheritage.com
- 13. Kern-Ralph Co-Lab, University of Oregon
- 14. http://sukumaranlab.org
- 15. Icahn School of Medicine at Mount Sinai
Description
Fixes
The
Variantobject can now be initialized with 64 bit numpy ints as returned e.g. from np.where (@hyanwong, #2518, #2514)Fix
tree.mrcafor the case of a tree with multiple roots. (@benjeffery, #2533, #2521)
Features
The
ts.nodesmethod now takes anorderparameter so that nodes can be visited in time order (@hyanwong, #2471, #2370)Add
samplesargument toTreeSequence.genotype_matrix. Default isNone, where all the sample nodes are selected. (@szhan, #2493, #678)ts.drawand thedraw_svgmethods now have an optionalomit_sitesparameter, aiding drawing large trees with many sites and mutations (@hyanwong, #2519, #2516)
Breaking Changes
Single statistics computed with
TreeSequence.general_statare now returned as numpy scalars if windows=None, AND; samples is a single list or None (for a 1-way stat), OR indexes is None or a single list of length k (instead of a list of length-k lists). (@gtsambos, #2417, #2308)Accessor methods such as ts.edge(n) and ts.node(n) now allow negative indexes (@hyanwong, #2478, #1008)
ts.subset()produces valid tree sequences even if nodes are shuffled out of time order (@hyanwong, #2479, #2473), and the same fortables.subset()(@hyanwong, #2489). This involves sorting the returned tables, potentially changing the returned edge order.
Performance improvements
Files
tskit-dev/tskit-0.5.3.zip
Additional details
Related works
- Is supplement to
- https://github.com/tskit-dev/tskit/tree/0.5.3 (URL)