千家信息网

iTOL如何对进化树添加外部标签

发表于:2025-02-01 作者:千家信息网编辑
千家信息网最后更新 2025年02月01日,小编给大家分享一下iTOL如何对进化树添加外部标签,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!iTOL对进化树添加外部标
千家信息网最后更新 2025年02月01日iTOL如何对进化树添加外部标签

小编给大家分享一下iTOL如何对进化树添加外部标签,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

iTOL对进化树添加外部标签

在画进化树,需要对标签添加一些信息时,可以使用iTOL对其添加外部标签。

准备好要添加信息的注释文件,如下:

DATASET_TEXT#In text datasets, each ID is associated to text label, which can be displayed directly on the node branch, or outside the tree#lines starting with a hash are comments and ignored during parsing#=================================================================##                    MANDATORY SETTINGS                           ##=================================================================##select the separator which is used to delimit the data below (TAB,SPACE or COMMA).This separator must be used throughout this file (except in the SEPARATOR line, which uses space).#SEPARATOR TAB#SEPARATOR SPACESEPARATOR COMMA#label is used in the legend table (can be changed later)DATASET_LABEL,example text dataset 2#dataset color (can be changed later)COLOR,#ff00ff#=================================================================##                    OPTIONAL SETTINGS                            ##=================================================================##=================================================================##     all other optional settings can be set or changed later     ##           in the web interface (under 'Datasets' tab)           ##=================================================================##left margin, used to increase/decrease the spacing to the next dataset. Can be negative, causing datasets to overlap. Used only for text labels which are displayed on the outsideMARGIN,0#applies to external text labels only; if set, text labels associated to internal nodes will be displayed even if these nodes are not collapsed. It could cause overlapping in the dataset display.SHOW_INTERNAL,0#Rotate all labels by the specified angleLABEL_ROTATION,0#applies to external text labels only; If set to 1, labels will be displayed in arcs aligned to the tree (in circular mode) or vertically (in normal mode). All rotation parameters (global or individual) will be ignored.ALIGN_TO_TREE,0#font size factor; For external text labels, default font size will be slightly less than the available space between leaves, but you can set a multiplication factor here to increase/decrease it (values from 0 to 1 will decrease it, values above 1 will increase it)SIZE_FACTOR,1#Internal tree nodes can be specified using IDs directly, or using the 'last common ancestor' method described in iTOL help pages#=================================================================##       Actual data follows after the "DATA" keyword              ##=================================================================##the following fields are possible for each node:#ID,label,position,color,style,size_factor,rotation#position defines the position of the pie chart on the tree:#  -1 = external label#  a number between 0 and 1 = internal label positioned at the specified value along the node branch (for example, position 0 is exactly at the start of node branch, position 0.5 is in the middle, and position 1 is at the end)#style can be 'normal',''bold','italic' or 'bold-italic'#size factor will be multiplied with the standard font sizeDATA#Examples9606,Homo sapiens,-1,#ff0000,bold,0.2,04932,Eukaryota,-1,#000000,italic,2,90160,Bacteria,-1,#0000ff,bold,2,902234,Archaea,-1,#0000ff,normal,2,-45727,Something is here with a long label,-1,#ff0000,bold-italic,0.5,0

DATA之前的部分都是格式声明,照抄即可。之后就是具体标签添加的信息,以","键分隔,第一列为原始标签;第二列是添加的外部标签;第三列是-1,代表外部标签;之后几列分别是颜色、字体、大小以及方向设置。准备好数据后就可以加到进化树中了。

以上是"iTOL如何对进化树添加外部标签"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!

0