-
Notifications
You must be signed in to change notification settings - Fork 30
Methods description
Tomas Flouri edited this page Oct 30, 2017
·
1 revision
- Clone species tree and gene trees, and from now on, work on the cloned copies.
- Calculate the weight of each branch of the species tree as the reciprocal of the square root of its length.
- Randomly select an internal (non-terminal) branch according to weight (higher weight, more probable), and name the node closer to the root (parent) as node X, and the other one node Y.
- Find all nodes that are candidates to become node C. Such node must fulfill three properties:
- It is not a descendant of node Y.
- It is younger than Y.
- Its parent is older than Y.
- For each C candidate node p, compute its weight as the reciprocal of number of nodes on the shortest path between p and Y. Once all weights are computed, normalize them.
- Randomly select node C from the candidates according to their weights (higher weight, more probably).
- Find node Z, the lowest common ancestor of nodes C and Y.
- for each gene tree do the following: