Skip to content

AttributeError: 'TreeNode' object has no attribute 'lambda_group' #9

@wangzhennan14

Description

@wangzhennan14

Hi,
CAFE_fig is cool to plot a gene family tree. When I used CAFE_fig to plot my result of cafe (version=4.2.1), there was an error as follow:
Parsing CAFE report... done!
Writing test/summary.pdf
Traceback (most recent call last):
File "/CAFE_fig/CAFE_fig.py", line 520, in
main(**vars(args))
File "/CAFE_fig/CAFE_fig.py", line 465, in main
c.summary_tree()
File "/CAFE_fig/CAFE_fig.py", line 306, in summary_tree
self.show_or_dump_tree(tree_obj=t, tree_style=ts, fname='summary')
File "/CAFE_fig/CAFE_fig.py", line 410, in show_or_dump_tree
tree_obj.render(out_path, tree_style=tree_style)
File "/Anaconda3/lib/python3.8/site-packages/ete3/coretype/tree.py", line 1392, in render
return drawer.render_tree(self, file_name, w=w, h=h,
File "/Anaconda3/lib/python3.8/site-packages/ete3/treeview/drawer.py", line 104, in render_tree
tree_item, n2i, n2f = render(t, img)
File "/Anaconda3/lib/python3.8/site-packages/ete3/treeview/qt4_render.py", line 254, in render
set_style(n, layout_fn)
File "/Anaconda3/lib/python3.8/site-packages/ete3/treeview/qt4_render.py", line 777, in set_style
func(n)
File "/CAFE_fig/CAFE_fig.py", line 270, in fam_size_piechart_layout
circle_color = self.lambda_colors[node.lambda_group]
AttributeError: 'TreeNode' object has no attribute 'lambda_group'
What is the matter about my result of cafe? Thank you very much!
wang

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions