Skip to content

addAlpha: place tip abundances by node in allen and rao - #919

Merged
antagomir merged 3 commits into
develfrom
tree-diversity-tips
Nov 22, 2026
Merged

antagomir merged 3 commits into
develfrom
tree-diversity-tips

Conversation

@0xMuluh

@0xMuluh 0xMuluh commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

Allen and Rao placed the tip abundances by row of the post-ordered tree table instead of by node, so the values were wrong on most trees. On ((A:1,B:2):1,C:0.5) with counts 6/3/1, allen was 1.069 (correct 1.239) and rao 1.56 (correct 1.59); the test compares both with the hand calculation. The existing tests used trees where the two orders coincide. A bug fix, so it can go into 3.24.

@antagomir
antagomir merged commit 6b99931 into devel Nov 22, 2026
2 checks passed
@antagomir
antagomir deleted the tree-diversity-tips branch November 22, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants