Package pal.tree
Class ReadTree
java.lang.Object
pal.tree.SimpleTree
pal.tree.ReadTree
- All Implemented Interfaces:
Serializable,IdGroup,Report,Units,UnitsProvider,Tree
constructs a tree reading in a New Hampshire treefile, taking care
for internal labels and branch lengths and binary/nonbinary and
rooted/unrooted trees
- Version:
- $Id: ReadTree.java,v 1.10 2002/10/14 06:54:25 matt Exp $
- Author:
- Korbinian Strimmer, Alexei Drummond
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface pal.misc.IdGroup
IdGroup.UtilsNested classes/interfaces inherited from interface pal.tree.Tree
Tree.TreeBase -
Field Summary
Fields inherited from interface pal.misc.Units
DAYS, EXPECTED_SUBSTITUTIONS, GENERATIONS, MONTHS, SAMPLE, SHORT_UNIT_NAMES, UNIT_NAMES, UNKNOWN, YEARS -
Constructor Summary
ConstructorsConstructorDescriptionReadTree(PushbackReader input) read tree from input streamread tree from file -
Method Summary
Methods inherited from class pal.tree.SimpleTree
createNodeList, findNode, getAttribute, getCopy, getExternalNode, getExternalNodeCount, getIdCount, getIdentifier, getInternalNode, getInternalNodeCount, getRoot, getUnits, report, reroot, reroot, setAttribute, setIdentifier, setRoot, setUnits, toString, whichIdNumber
-
Constructor Details
-
ReadTree
read tree from input stream- Parameters:
input- input stream- Throws:
TreeParseException
-
ReadTree
read tree from file- Parameters:
file- name of file- Throws:
TreeParseExceptionIOException
-