public class HierarchyTree
extends java.lang.Object
Constructor and Description |
---|
HierarchyTree(java.lang.String n,
int taxid,
java.lang.String rank,
int leaves,
int gIndex) |
HierarchyTree(java.lang.String n,
int taxid,
java.lang.String rank,
int leaves,
int gIndex,
double copyNumber)
Creates new HierarchyTree given the taxonomic information.
|
Modifier and Type | Method and Description |
---|---|
void |
addParent(HierarchyTree p)
Adds the parent HierarchyTree, also adds this node to the parent treenode as a child.
|
HierarchyTree |
getChild(java.lang.String name) |
double |
getCopyNumber() |
int |
getGenusIndex()
Gets the index of the genus treenode in the genusNodeList.
|
int |
getLeaveCount()
Gets the size of sequence leaves directly belong to this treenode.
|
java.lang.String |
getName()
Gets the name of the treenode.
|
HierarchyTree |
getParent()
Gets the parent treenode.
|
java.lang.String |
getRank()
Gets the rank of the treenode.
|
int |
getSizeofSubclasses()
Gets the list of the child treenodes.
|
java.util.List<HierarchyTree> |
getSubclasses()
Gets the name of the treenode.
|
int |
getTaxid()
Gets the taxon id of the treenode.
|
boolean |
hasCopyNumberInfo() |
public HierarchyTree(java.lang.String n, int taxid, java.lang.String rank, int leaves, int gIndex, double copyNumber)
public HierarchyTree(java.lang.String n, int taxid, java.lang.String rank, int leaves, int gIndex)
public void addParent(HierarchyTree p)
public java.lang.String getName()
public HierarchyTree getParent()
public java.lang.String getRank()
public int getTaxid()
public java.util.List<HierarchyTree> getSubclasses()
public int getSizeofSubclasses()
public HierarchyTree getChild(java.lang.String name)
public int getLeaveCount()
public int getGenusIndex()
public double getCopyNumber()
public boolean hasCopyNumberInfo()