分析方法

DU8:iTOL的配置文件

2019-04-25  本文已影响6人  纳灰灰

iTOL除了可以用control面板调整进化树的性状,分支颜色,标签字体等之外,还可以利用配置文件进行批量修改,配置文件直接拖到进化树上。

配置文件需要包括的信息:

1、dataset的类型

TREE_COLORS

2、指定文件分隔符

SEPARATOR TAB
SEPARATOR SPACE
SEPARATOR COMMA

3、按照不同dataset的模板设置注释信息

DATA
"Template"

以下为不同dataset的模板:

1、Branch and label colors and styles
前3列表示节点数据,类型(5种),颜色
range: defines a colored range (colored background for labels/clade)
clade: defines color/style for all branches in a clade
branch: defines color/style for a single branch
label: defines font color/style for the leaf label
label_background: defines the leaf label background color
不同类型的其他列有差异
for range, field 4 defines the colored range label (used in the legend)
for label, field 4 defines the font style ('normal','bold', 'italic' or 'bold-italic') and field 5 defines the numeric scale factor for the font size (eg. with value 2, font size for that label will be 2x the standard size)
for clade and branch, field 4 defines the branch style ('normal' or 'dashed') and field 5 defines the branch width scale factor (eg. with value 0.5, branch width for that clade will be 0.5 the standard width)

TREE_COLORS
SEPARATOR SPACE
DATA
9031|9606 clade #0000ff normal 2
601|340 clade #ff0000 dashed 0.5
915|777 branch #00ff00 dashed 5
184922|9606 range #ff0000 Eukaryota
2190|2287 range #aaffaa Archaea
623|1502 range #aaaaff Bacteria
9606 label #00ff00 bold 2
9031 label #ffff00 bold-italic 0.5
8015 label #0000ff
9606 label_background rgba(255,0,0,0.5)

2、Changing leaf labels text and internal node names

LABELS
SEPARATOR TAB
DATA
9031|9606  Metazoa
9606  Homo sapiens

3、Defining node popup information

POPUP_INFO
SEPARATOR COMMA
DATA
#NODE_ID,POPUP_TITLE,POPUP_CONTENT
#internal node with simple HTML in its popup
9031|9606,This is the popup title,<h1>Some header</h1><p>Information comes here</p><img src='http://website.com/images/image.jpg'/>
#popup for leaf node 9606
9606,Homo sapiens info popup,<h1>Homo sapiens</h1><p style='color:blue'>More info at <a target='_blank' href='http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=9606'>NCBI</a></p>

4、Binary
标记形状
1: rectangle
2: circle
3: star
4: right pointing triangle
5: left pointing triangle
6: check mark
标记形状是否填充颜色及显示
1 : filled shape
0 : empty shape
-1 : shape completely omitted

DATASET_BINARY
SEPARATOR COMMA
#label is used in the legend table (can be changed later)
DATASET_LABEL,label1
#dataset color (can be changed later)
FIELD_SHAPES,2,4,5,1
FIELD_LABELS,f1,f2,f3,f4
FIELD_COLORS,#ff0000,#00ff00,#ffff00,#0000ff
DATA
#node 9606 will have a filled circle, empty left triangle, nothing in the 3rd column and an empty rectangle
9606,1,0,-1,0

参考链接:
https://itol.embl.de/help.cgi

上一篇下一篇

猜你喜欢

热点阅读