nuget server logo nuget api documents
↑

API Docs / SMRUCC.genomics.Interops.Visualize.Phylip / PhyloNode

PhyloNode

Full name SMRUCC.genomics.Interops.Visualize.Phylip.Evolview.PhyloNode Assembly SMRUCC.genomics.Interops.Visualize.Phylip Members 51

01 Syntax

SMRUCC.genomics.Interops.Visualize.Phylip.Evolview.PhyloNode

02 Methods

03 Properties

NameOverloadsSummary
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

NameOverloadsSummary
__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

method Clone #
Clone

make a new copy of current node

Remarks

这里返回的是当前节点以及其所有子树节点的深拷贝:原实现只是复制了 PhyloNode.Descendents 的引用,导致克隆出来的树共享子树,无法用于 树搜索(NNI/SPR)中的拓扑状态保存与回滚。

method AddColorToBranch #
AddColorToBranch(String, String)
  • branch colors
Parameters
NameTypeDescription
colorsetIDString

-

colorString

-

method addColorToLeaf #
addColorToLeaf(String, String)
  • leaf colors
Parameters
NameTypeDescription
colorsetIDString

-

colorString

-

property LevelHorizontal #
LevelHorizontal

ˮƽ������������λ��

' 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: ""

property LevelVertical #
LevelVertical

��ֱ������������λ��

property LevelVerticalSlanted #
LevelVerticalSlanted

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;

property minLeafVerticalLevel #
minLeafVerticalLevel

jan 7, 2011; if leaf node, min_leaf_vertical_level and max_leaf_vertical_level = level_vertical for slanted normal mode

property ID #
ID

id is actually a lable that will be printed

property Descendents #
Descendents

The descendents of current node.(��ǰ�ڵ�ĺ���ڵ�)

field __descendentsList #
__descendentsList

multiple (>= two) descendents are allowed

field Max_Distance_To_Tip #
Max_Distance_To_Tip

total branch length from current node to root - max_distance_to_tip (height) is the max branchlength to get to the tip;

field Branchlength_To_Root #
Branchlength_To_Root

total branch length from current node to root - max_distance_to_tip (height) is the max branchlength to get to the tip;

field _Processed #
_Processed

May 20, 2011; check if current node is processed; used to fix a bug

property maxLeafVerticalLevel #
maxLeafVerticalLevel
property InternalID #
InternalID
property Description #
Description
property BranchLength #
BranchLength
property BootStrap #
BootStrap
property Parent #
Parent
property IsFork #
IsFork
property NumberOfDescendents #
NumberOfDescendents
property NumberOfLeafDescendents #
NumberOfLeafDescendents
property IsLeaf #
IsLeaf
property IsRoot #
IsRoot
property MaxDistanceToTip #
MaxDistanceToTip
property BranchLengthToRoot #
BranchLengthToRoot
property NodeComplete #
NodeComplete
property Processed #
Processed
property AdditionalAttributs #
AdditionalAttributs
property DistanceToRoot #
DistanceToRoot
method ToString #
ToString()
method AddDescendent #
AddDescendent(PhyloNode)
method RemoveDescendent #
RemoveDescendent(PhyloNode)
method RemoveFromParent #
RemoveFromParent()
method getBranchColorByColorsetID #
getBranchColorByColorsetID(String)
method removeBranchColorByColorsetID #
removeBranchColorByColorsetID(String)
method removeAllBranchColors #
removeAllBranchColors()
method getLeafColorByColorsetID #
getLeafColorByColorsetID(String)
method removeLeafColorByColorsetID #
removeLeafColorByColorsetID(String)
method removeAllLeafColors #
removeAllLeafColors()
method addColorToLeafBK #
addColorToLeafBK(String, String)
method getLeafBKColorByColorsetID #
getLeafBKColorByColorsetID(String)
method removeLeafBKColorByColorsetID #
removeLeafBKColorByColorsetID(String)
method removeAllLeafBKColors #
removeAllLeafBKColors()
method getColorByDatasetID #
getColorByDatasetID(String)
method addColorWithID #
addColorWithID(String, String)
method getColorByDataTypeAndID #
getColorByDataTypeAndID(String, String)
method addColorByDataTypeAndID #
addColorByDataTypeAndID(TreeDecoType, String, String)
method removeColorByDataTypeAndID #
removeColorByDataTypeAndID(TreeDecoType, String)
method SetProcessed #
SetProcessed(Boolean)
method RemoveAllDescendents #
RemoveAllDescendents()