You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to calculate PD weighted by the abundance of the terminals, where a branch's abundance is the sum of the abundances of its terminals.
PDA = \sum_{c \in C}(abundance \times l_c)
The text was updated successfully, but these errors were encountered:
The abundance of each branch is the sum of its named descendant abundance, multiplied by the branch length.
This is on the basis that PD is feature diversity thus if a branch is 10 units long then it represents 10 features. If that branch has 5 named descendants, each with unit abundance (=1) then there are 10 * 5 features from that branch in the sample.
Updates issue #559
Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
This avoids the need to repeatedly traverse the path to the root node and get the lengths along the way. The paths are cached so the overall code speed is improved.
Updates issue #559.
Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
shawnlaffan
changed the title
Indices - add abundance weighted PD
Indices - add phylogenetic abundance
Jul 7, 2015
It would be useful to calculate PD weighted by the abundance of the terminals, where a branch's abundance is the sum of the abundances of its terminals.
PDA = \sum_{c \in C}(abundance \times l_c)
The text was updated successfully, but these errors were encountered: