|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcs195z.support.PTreeVisualizer
public class PTreeVisualizer
Visualizer for testing PTreeAlgorithms methods. Also contains the generator for the mappings and matrices passed into the PTreeAlgorithms implementation. Requires forester-ATV.
Constructor Summary | |
---|---|
PTreeVisualizer()
|
Method Summary | |
---|---|
static org.forester.phylogeny.Phylogeny |
convertTree(net.datastructures.LinkedBinaryTree<PSpeciesNode> tree)
Converts an nds4 LinkedBinaryTree into an org.forester.phylogeny.Phylogeny |
static void |
main(String[] args)
Runs the visualizer. |
static void |
treeHelper(net.datastructures.LinkedBinaryTree<PSpeciesNode> t,
net.datastructures.Position<PSpeciesNode> n,
org.forester.phylogeny.PhylogenyNode parent)
Helper method for the preorder traversal recursion of convertTree() |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PTreeVisualizer()
Method Detail |
---|
public static org.forester.phylogeny.Phylogeny convertTree(net.datastructures.LinkedBinaryTree<PSpeciesNode> tree)
tree
- is a net.datastructures.LinkedBinaryTree tree with PSpeciesNode elements
public static void treeHelper(net.datastructures.LinkedBinaryTree<PSpeciesNode> t, net.datastructures.Position<PSpeciesNode> n, org.forester.phylogeny.PhylogenyNode parent)
t
- = treen
- = current nodeparent
- public static void main(String[] args)
args[0]
- "data" shows data set, "sankoff" runs Sankoff, "felsenstein" runs felsenstein, default is Sankoffargs[1]
- selects data set from {"WINGED", "DNA"}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |