11--------------------
2- [0.3.0] - 20XX-XX-XX
2+ [0.3.0] - 2020-07-29
33--------------------
44
5- In development
5+ Major feature release for metadata schemas, set-like operations, mutation times,
6+ SVG drawing improvements and many others.
67
78**Breaking changes **
89
@@ -11,20 +12,20 @@ In development
1112 comparable. The old behaviour is still available with ``order="tree" ``.
1213
1314- File system operations such as dump/load now raise an appropriate OSError
14- instead of tskit.FileFormatError. Loading from an empty file now raises
15- and EOFError.
15+ instead of `` tskit.FileFormatError `` . Loading from an empty file now raises
16+ and `` EOFError `` .
1617
1718- Bad tree topologies are detected earlier, so that it is no longer possible
18- to create a TreeSequence object which contains a parent with contradictory
19+ to create a `` TreeSequence `` object which contains a parent with contradictory
1920 children on an interval. Previously an error was thrown when some operation
20- building the trees was attempted. (:user: `jeromekelleher `, :pr: `709 `).
21+ building the trees was attempted (:user: `jeromekelleher `, :pr: `709 `).
2122
22- - The TableCollection object no longer implements the iterator protocol.
23+ - The `` TableCollection object `` no longer implements the iterator protocol.
2324 Previously ``list(tables) `` returned a sequence of (table_name, table_instance)
2425 tuples. This has been replaced with the more intuitive and future-proof
25- TableCollection.name_map and TreeSequence.tables_dict attributes, which
26- perform the same function. (:user: `jeromekelleher `, :issue: `500 `,
27- :pr: `694 `)
26+ `` TableCollection.name_map `` and `` TreeSequence.tables_dict `` attributes, which
27+ perform the same function (:user: `jeromekelleher `, :issue: `500 `,
28+ :pr: `694 `).
2829
2930**New features **
3031
@@ -35,39 +36,38 @@ In development
3536 (:user: `mufernando `, :user: `petrelharp `, :issue: `381 ` :pr: `623 `).
3637
3738- Mutations now have an optional double-precision floating-point ``time `` column.
38- If not specified, this defaults to a particular NaN value (``tskit.UNKNOWN_TIME ``)
39+ If not specified, this defaults to a particular `` NaN `` value (``tskit.UNKNOWN_TIME ``)
3940 indicating that the time is unknown. For a tree sequence to be considered valid
4041 it must meet new criteria for mutation times, see :ref: `sec_mutation_requirements `.
4142 Also added function ``TableCollection.compute_mutation_times ``. Table sorting orders
4243 mutations by non-increasing time per-site, which is also a requirement for a valid tree
43- sequence.
44- (:user: `benjeffery `, :pr: `672 `)
44+ sequence (:user: `benjeffery `, :pr: `672 `).
4545
4646- Add support for trees with internal samples for the Kendall-Colijn tree distance
4747 metric. (:user: `daniel-goldstein `, :pr: `610 `)
4848
4949- Add background shading to SVG tree sequences to reflect tree position along the
50- sequence (:user: `hyanwong `, :pr: `563 `)
50+ sequence (:user: `hyanwong `, :pr: `563 `).
5151
5252- Tables with a metadata column now have a ``metadata_schema `` that is used to
5353 validate and encode metadata that is passed to ``add_row `` and decode metadata
54- on calls to ``table[j] `` and e.g. ``tree_sequence.node(j) `` See :ref: `sec_metadata `.
55- (:user: `benjeffery `, :pr: `491 `, :pr: `542 `, :pr: `543 `, :pr: `601 `)
54+ on calls to ``table[j] `` and e.g. ``tree_sequence.node(j) `` See :ref: `sec_metadata `
55+ (:user: `benjeffery `, :pr: `491 `, :pr: `542 `, :pr: `543 `, :pr: `601 `).
5656
57- - The tree-sequence now has top-level metadata with a schema.
58- (:user: `benjeffery `, :pr: `666 `, :pr: `644 `, :pr: `642 `)
57+ - The tree-sequence now has top-level metadata with a schema
58+ (:user: `benjeffery `, :pr: `666 `, :pr: `644 `, :pr: `642 `).
5959
6060- Add classes to SVG drawings to allow easy adjustment and styling, and document the new
6161 ``tskit.Tree.draw_svg() `` and ``tskit.TreeSequence.draw_svg() `` methods. This also fixes
62- :issue: `467 ` for duplicate SVG entity ``id `` s in Jupyter notebooks.
63- (:user: `hyanwong `, :pr: `555 `)
62+ :issue: `467 ` for duplicate SVG entity ``id `` s in Jupyter notebooks
63+ (:user: `hyanwong `, :pr: `555 `).
6464
6565- Add a ``nexus `` function that outputs a tree sequence in Nexus format
6666 (:user: `saunack `, :pr: `550 `).
6767
6868- Add extension of Kendall-Colijn tree distance metric for tree sequences
6969 computed by ``TreeSequence.kc_distance ``
70- (:user: `daniel-goldstein `, :pr: `548 `)
70+ (:user: `daniel-goldstein `, :pr: `548 `).
7171
7272- Add an optional node traversal order in ``tskit.Tree `` that uses the minimum
7373 lexicographic order of leaf nodes visited. This ordering (``"minlex_postorder" ``)
@@ -77,24 +77,24 @@ In development
7777- Add an ``order `` argument to the tree visualisation functions which supports
7878 two node orderings: ``"tree" `` (the previous default) and ``"minlex" ``
7979 which stabilises the node ordering (making it easier to compare trees).
80- The default node ordering is changed to ``"minlex" ``.
80+ The default node ordering is changed to ``"minlex" ``
8181 (:user: `brianzhang01 `, :user: `jeromekelleher `, :issue: `389 `, :pr: `566 `).
8282
8383- Add ``_repr_html_ `` to tables, so that jupyter notebooks render them as
84- html tables (:user: `benjeffery `, :pr: `514 `)
84+ html tables (:user: `benjeffery `, :pr: `514 `).
8585
8686- Remove support for ``kc_distance `` on trees with unary nodes
87- (:user: `daniel-goldstein `, :pr: `508 `)
87+ (:user: `daniel-goldstein `, :pr: `508 `).
8888
8989- Improve Kendall-Colijn tree distance algorithm to operate in O(n^2) time
9090 instead of O(n^2 * log(n)) where n is the number of samples
91- (:user: `daniel-goldstein `, :pr: `490 `)
91+ (:user: `daniel-goldstein `, :pr: `490 `).
9292
9393- Add a metadata column to the migrations table. Works similarly to existing
94- metadata columns on other tables(:user: `benjeffery `, :pr: `505 `).
94+ metadata columns on other tables (:user: `benjeffery `, :pr: `505 `).
9595
9696- Add a metadata column to the edges table. Works similarly to existing
97- metadata columns on other tables(:user: `benjeffery `, :pr: `496 `).
97+ metadata columns on other tables (:user: `benjeffery `, :pr: `496 `).
9898
9999- Allow sites with missing data to be output by the ``haplotypes `` method, by
100100 default replacing with ``- ``. Errors are no longer raised for missing data
@@ -115,6 +115,9 @@ In development
115115
116116- Add pickle support for ``TreeSequence `` (:user: `terhorst `, :pr: `473 `).
117117
118+ - Add ``tree.as_dict_of_dicts() `` function to enable use with networkx. See
119+ :ref: `sec_tutorial_networkx ` (:user: `winni2k `, :pr: `457 `).
120+
118121**Bugfixes **
119122
120123- :issue: `453 ` - Fix LibraryError when ``tree.newick() `` is called with large node time
0 commit comments