Skip to content

Parse node lengths from Newick datasets

Ghost User requested to merge feature/node-lengths into develop

Created by: Masboes

It turns out that our parser does actually support lengths, we were just not using it. Here it's shown: https://github.com/octav47/NewickJS/wiki/NewickTools.parse

This adds the length property to a node, if the data does not have lengths the default length is 1.0. I realize testing this is hard since we don't use the length anywhere, so I recommend replacing label: label, on line 40 of newick-parser.ts with label: label+length, so you can see the lengths in the names in the navigator. Example dataset: ((raccoon:19.19959,bear:6.80041):0.84600,((sea_lion:11.99700, seal:12.00300):7.52973,((monkey:100.85930,cat:47.14069):20.59201, weasel:18.87953):2.09460):3.87382,dog:25.46154); Result: image

fixes #43 (closed)

Merge request reports

Loading