Skip to content

This code implements an improved version of the RF distribution computation by Bryant et al.

Notifications You must be signed in to change notification settings

WGS-TB/RFDistribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

804f894 · Aug 28, 2019

History

51 Commits
Aug 23, 2019
Aug 23, 2019
Aug 15, 2019
May 18, 2018
May 18, 2018
Aug 28, 2019
May 20, 2019
May 18, 2018
May 20, 2019
Jul 7, 2019
Jul 7, 2019
May 20, 2019
May 20, 2019
Aug 23, 2019
May 18, 2018
May 20, 2019
May 20, 2019
Aug 23, 2019

Repository files navigation

RFDistribution

This code implements an improved version of the RF distribution computation by Bryant et al. Here, we modified the dynamic programming algorithm introduced by Bryant et al for computing the distribution of RF distance for a given tree by leveraging the Number-Theoretic Transform (NTT), and improve the running time from O(l5) to O(l3log(l)), where l is the number of tips of the tree. Given an unrooted phylogenetic tree T with l tips, the procedure for computing the RF distribution of this tree is as follows: Denote the node adjacent to tip l in T by v0. Remove tip l, and root the resulting tree with v0 as the root. We use this rooted tree as the input to the dynamic programming algorithm.

Installation

To install the python package, open a terminal and type:

pip install rfdist

If you are interested in the R version instead, please visit https://github.com/WGS-TB/RFDistributionR.

About

This code implements an improved version of the RF distribution computation by Bryant et al.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published