PhyloNode
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Clone | 1 | make a new copy of current node |
| AddColorToBranch | 1 | branch colors |
| addColorToLeaf | 1 | leaf colors |
| ToString | 1 | |
| AddDescendent | 1 | |
| RemoveDescendent | 1 | |
| RemoveFromParent | 1 | |
| getBranchColorByColorsetID | 1 | |
| removeBranchColorByColorsetID | 1 | |
| removeAllBranchColors | 1 | |
| getLeafColorByColorsetID | 1 | |
| removeLeafColorByColorsetID | 1 | |
| removeAllLeafColors | 1 | |
| addColorToLeafBK | 1 | |
| getLeafBKColorByColorsetID | 1 | |
| removeLeafBKColorByColorsetID | 1 | |
| removeAllLeafBKColors | 1 | |
| getColorByDatasetID | 1 | |
| addColorWithID | 1 | |
| getColorByDataTypeAndID | 1 | |
| addColorByDataTypeAndID | 1 | |
| removeColorByDataTypeAndID | 1 | |
| SetProcessed | 1 | |
| RemoveAllDescendents | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| LevelHorizontal | 1 | ˮƽ������������λ�� ' April 8, 2011; NOTE: use this instead of branchcolors, leafcolors and leafbackground colors ... |
| LevelVertical | 1 | ��ֱ������������λ�� |
| LevelVerticalSlanted | 1 | jan 7, 2011; if current node is leaf, level_vertical_slanted = level_vertical so there is not necessary to assign level_vertical_slanted to leaf node; for slanted middle mode; |
| minLeafVerticalLevel | 1 | jan 7, 2011; if leaf node, min_leaf_vertical_level and max_leaf_vertical_level = level_vertical for slanted normal mode |
| ID | 1 | id is actually a lable that will be printed |
| Descendents | 1 | The descendents of current node.(��ǰ�ڵ�ĺ���ڵ�) |
| maxLeafVerticalLevel | 1 | |
| InternalID | 1 | |
| Description | 1 | |
| BranchLength | 1 | |
| BootStrap | 1 | |
| Parent | 1 | |
| IsFork | 1 | |
| NumberOfDescendents | 1 | |
| NumberOfLeafDescendents | 1 | |
| IsLeaf | 1 | |
| IsRoot | 1 | |
| MaxDistanceToTip | 1 | |
| BranchLengthToRoot | 1 | |
| NodeComplete | 1 | |
| Processed | 1 | |
| AdditionalAttributs | 1 | |
| DistanceToRoot | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| __descendentsList | 1 | multiple (>= two) descendents are allowed |
| Max_Distance_To_Tip | 1 | total branch length from current node to root - max_distance_to_tip (height) is the max branchlength to get to the tip; |
| Branchlength_To_Root | 1 | total branch length from current node to root - max_distance_to_tip (height) is the max branchlength to get to the tip; |
| _Processed | 1 | May 20, 2011; check if current node is processed; used to fix a bug |
05 Members
make a new copy of current node
这里返回的是当前节点以及其所有子树节点的深拷贝:原实现只是复制了 PhyloNode.Descendents 的引用,导致克隆出来的树共享子树,无法用于 树搜索(NNI/SPR)中的拓扑状态保存与回滚。
String, String)- branch colors
| Name | Type | Description |
|---|---|---|
colorsetID | String | - |
color | String | - |
String, String)- leaf colors
| Name | Type | Description |
|---|---|---|
colorsetID | String | - |
color | String | - |
ˮƽ������������λ��
' April 8, 2011; NOTE: use this instead of branchcolors, leafcolors and leafbackground colors ...
level_vertical is the relative vertical level from the top, start with 1; for example, given a tree like the following: |----- A 1 ---| C |--- E 2 |------| B 2.5 a sample tree |----F 3 A is level 1, E is level 2, F is 3, B is 2.5 (2+3)/2; C is (2.5 + 1) / 2 = 1.725 level_horizontal is the relative horizontal level from the right, start with 1; therefore all leaves are at level 1 in this sample tree, AEF are at level 1, B is 2, C is 3 here I use two integers to store the two levels >>>> how levels are assigned >>>> vertical levels: in a tree like ((A,B), (C,D)), levels for ABCD are 1,2,3,4 respectively; internal levels are assigned using a function: "" horizontal levels: all leaf are assigned with 1, internal levels are assigned using a function: ""
��ֱ������������λ��
jan 7, 2011; if current node is leaf, level_vertical_slanted = level_vertical so there is not necessary to assign level_vertical_slanted to leaf node; for slanted middle mode;
jan 7, 2011; if leaf node, min_leaf_vertical_level and max_leaf_vertical_level = level_vertical for slanted normal mode
id is actually a lable that will be printed
The descendents of current node.(��ǰ�ڵ�ĺ���ڵ�)
multiple (>= two) descendents are allowed
total branch length from current node to root - max_distance_to_tip (height) is the max branchlength to get to the tip;
total branch length from current node to root - max_distance_to_tip (height) is the max branchlength to get to the tip;
May 20, 2011; check if current node is processed; used to fix a bug
String)String)String)String)String, String)String)String)String)String, String)String, String)TreeDecoType, String, String)TreeDecoType, String)Boolean)