ete icon indicating copy to clipboard operation
ete copied to clipboard

Slow rending in circular layout with low collapse

Open dengzq1234 opened this issue 2 years ago • 0 comments

When I compared circular layout with rectangular layout with low collapse level(1, for example), I noticed the circular tree has more delay than the rectangular, which caused very obvious "laggy" feeling. Here you can see the pending time in circular mode sometimes can arrive > 5s comapring to rectangular tree, which contains no layout.

Screenshot from 2023-01-23 12-52-23 Screenshot from 2023-01-23 12-45-02

Here I provide tree and the script

progenome3_annotated.nw.zip

scirpt that I executed

from ete4 import Tree


TREEFILE = './progenome3_annotated.nw.txt'

popup_prop_keys = ['name', 'dist', 'support', 'rank', 'sci_name', 
                    'taxid', 'lineage', 'named_lineage', 
                    'aquatic_habitat', 'host_associated',  
                    'soil_habitat', 'GC']

t = Tree(TREEFILE, format=1)
level = 2 
layouts = [

]

t.explore(tree_name='example',layouts=layouts, \
            popup_prop_keys=popup_prop_keys)

dengzq1234 avatar Jan 23 '23 12:01 dengzq1234