Treeswift

Latest version: v1.1.45

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

1.1.27

* Added ability to properly load Nexus (or Newick) trees that have both node parameters *and* edge parameters
* A given node in the Newick string will look like the following: `label[node_params]:[edge_params]edge_length`
* For example: `niema[description_about_node]:[description_about_edge]42`
* The node label is `niema` and is stored in `node.label`
* The node parameters are `description_about_node` and is stored in `node.node_params`
* The edge parameters are `description_about_edge` and is stored in `node.edge_params`
* The edge length is 42 and is stored in `node.edge_length`
* Thanks pekarj for the pointers!

1.1.26

* Fixed bug when loading Nexus files that didn't have spaces around the equal sign on `Tree` lines
* Thanks for catching that, theosanderson!

1.1.25

* Updated documentation of `read_tree_nexus` function based on updated functionality

1.1.24

* Fixed bug when reading Nexus files that have information on the left side of the ` = ` of a tree
* Example: `tree STATE_0 [...] = [&R] (...);`
* BEAST seems to output trees in this format
* Now, if a Nexus tree is loaded into a variable `trees`, the information in the `[...]` block to the left of the ` = ` will be stored in `trees['info']`

1.1.23

* Fixed bug in which a comma would be added to the end of translated taxon labels in Nexus files
* Thanks for catching that, pekarj!

1.1.22

* Fixed reading taxon labels and translations when reading Nexus trees
* Thanks for catching that, pekarj!

Page 4 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.