MATLAB interaction data visualization

Use the method of phytree object to create the basic framework of an evolutionary tree, in which the graph elements are all static.
tr=phytreeread('pf00002.tree');
plot(tr)
imports Phytree object information into Biograph object in order to create a dynamic frame. First, extract information from PHYTREE. Use the get function to obtain the PHYTREE attribute, and use the getmatrix method to obtain the connection matrix.
[names,nn,nb,n1]=get(tr,'NodeNames','NumNodes','NumBranches','NumLeaves');
cm=getmatrix(tr);
cm=flipud(fliplr(cm));
names= flipud(names);
bg=biograph(cm,names)
dolayout(bg)
bgInViewer=view(bg)
Insert picture description here
evolutionary tree 1
Insert picture description here
evolutionary tree 2
Insert picture description here
evolutionary tree 3
Insert picture description here
Branch node color
bioinformatics analysis and practice------MATLAB biology Informatics Toolbox Application----Edited by Liu Wei, Sun Zhiqiang, Yang Sen-----【M】Beijing: China Industry and Information Technology Press and Electronic Industry Press

Guess you like

Origin blog.csdn.net/m0_38127487/article/details/114023476