溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

iTOL如何對(duì)進(jìn)化樹(shù)添加外部標(biāo)簽

發(fā)布時(shí)間:2022-03-19 11:31:24 來(lái)源:億速云 閱讀:2093 作者:小新 欄目:開(kāi)發(fā)技術(shù)

小編給大家分享一下iTOL如何對(duì)進(jìn)化樹(shù)添加外部標(biāo)簽,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

iTOL對(duì)進(jìn)化樹(shù)添加外部標(biāo)簽

在畫(huà)進(jìn)化樹(shù),需要對(duì)標(biāo)簽添加一些信息時(shí),可以使用iTOL對(duì)其添加外部標(biāo)簽。

準(zhǔn)備好要添加信息的注釋文件,如下:

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 SPACE
SEPARATOR 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 outside
MARGIN,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 angle
LABEL_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 size
DATA
#Examples
9606,Homo sapiens,-1,#ff0000,bold,0.2,0
4932,Eukaryota,-1,#000000,italic,2,90
160,Bacteria,-1,#0000ff,bold,2,90
2234,Archaea,-1,#0000ff,normal,2,-45
727,Something is here with a long label,-1,#ff0000,bold-italic,0.5,0

DATA之前的部分都是格式聲明,照抄即可。之后就是具體標(biāo)簽添加的信息,以","鍵分隔,第一列為原始標(biāo)簽;第二列是添加的外部標(biāo)簽;第三列是-1,代表外部標(biāo)簽;之后幾列分別是顏色、字體、大小以及方向設(shè)置。準(zhǔn)備好數(shù)據(jù)后就可以加到進(jìn)化樹(shù)中了。

以上是“iTOL如何對(duì)進(jìn)化樹(shù)添加外部標(biāo)簽”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注億速云行業(yè)資訊頻道!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI