public class TreeReconciler
extends java.lang.Object
This class manages the 3 entities (species tree, gene tree and reconciled tree), during the reconciliation process.
Modifier and Type | Field and Description |
---|---|
static double |
geneCollapseThreshold
Gene tree branch collapse threshold, in term of branch support, initialized to 0.95
|
static double |
geneDepthThreshold
Depth threshold, under which no duplications are predicted (polymorphism / sequencing error).
|
Tree |
geneTree
The gene tree
|
static int |
kLevel
K-level for subtree neighbor measure.
|
Tree |
reconciledTree
The reconciled tree
|
static double |
speciesCollapseThreshold
Species tree branch collapse threshold, in term of length, initialized to 10.0.
|
Tree |
speciesTree
The species tree
|
Constructor and Description |
---|
TreeReconciler(Tree geneTree,
Tree speciesTree)
Standard constructor, from species and gene trees, constructing reconciled tree.
|
Modifier and Type | Method and Description |
---|---|
Tree |
advanceInLosses(Tree r,
Tree g)
Return the next not-loss event
|
boolean |
areCongruent(Tree g,
Tree r,
java.util.Vector congruentGeneNodes,
java.util.Vector congruentReconciledNodes,
java.util.Vector congruentReconciledLengths)
Return true if the two nodes are congruent.
|
boolean |
areMutuallyIncluded(Tree g,
Tree r)
Return true if the taxa under the two nodes are mutually included
|
int |
cardinality(Tree r)
Return the number of not-loss sons
|
int |
findReductionCandidat(Tree g,
Tree r)
Return the index of a possible candidat
|
void |
parseSpecies(Tree rootedGeneTree)
Parse labels to extract species name, and put it into pretreated structures
|
int |
reconciliation(Tree g,
Tree r)
Recursive method that reconcile gene and reconciled tree (initialized with species tree topology)
|
void |
removeUselessSubtrees(Tree tree,
java.util.Vector vector)
Parse labels to extract species name, and put it into pretreated structures
|
boolean |
sonExclusion(Tree g)
Return true if g respect the condition of son exclusion (mandatory to be congruent to a species tree).
|
public static double geneCollapseThreshold
public static double speciesCollapseThreshold
public static double geneDepthThreshold
public static int kLevel
public Tree geneTree
public Tree speciesTree
public Tree reconciledTree
public void parseSpecies(Tree rootedGeneTree)
public void removeUselessSubtrees(Tree tree, java.util.Vector vector)
tree
- The species tree to cleanvector
- The list of allowed taxapublic int reconciliation(Tree g, Tree r)
g
- The tree representing gene family evolution historyr
- The tree to reconcilepublic boolean areCongruent(Tree g, Tree r, java.util.Vector congruentGeneNodes, java.util.Vector congruentReconciledNodes, java.util.Vector congruentReconciledLengths)
g
- The tree representing gene family evolution historyr
- The tree to reconcilecongruentGeneNodes
- the list of subnode after reduction in the gene treecongruentReconciledNodes
- the list of subnode after reduction in the reconciled treecongruentReconciledLengths
- the list of cumuled lengths of congruent reconciled nodespublic boolean sonExclusion(Tree g)
g
- The tree representing gene family evolution historypublic int cardinality(Tree r)
r
- The tree to reconcilepublic int findReductionCandidat(Tree g, Tree r)
g
- The tree representing gene family evolution historyr
- The tree to reconcilepublic boolean areMutuallyIncluded(Tree g, Tree r)
g
- The tree representing gene family evolution historyr
- The tree to reconcile