veg / hyphy

HyPhy: Hypothesis testing using Phylogenies
http://www.hyphy.org
Other
213 stars 69 forks source link

Decoding internal branches from RELAX's JSON output #1543

Closed mchaney1 closed 1 year ago

mchaney1 commented 1 year ago

Hello, I am working with some JSON files that I have generated using RELAX, and I really would like to map the k values from that output onto a tree for a nice figure (similar to others I've seen in papers that have used RELAX in the past). However, all of the internal nodes/branches are given names like "NodeX" where X is a number. I can't quickly discern which branch attribute from the JSON file refers to any given internal branch. I've checked into the documentation for HyPhy's JSON output, but I can't find a clear codex for finding this information.

Any help with this issue would be greatly appreciated! Thank you all for your time.

spond commented 1 year ago

Dear @mchaney1,

Give this notebook a go https://observablehq.com/@spond/plotting-relax-k-values-on-branches-of-the-tree

Best, Sergei

mchaney1 commented 1 year ago

Thanks very much! This will be very helpful. I also found that the trees block near the bottom of the JSON output contains labeled nodes. So, I am now able to parse which branch labels go with the correct parts of the tree.

github-actions[bot] commented 1 year ago

Stale issue message