etetoolkit / ete

Python package for building, comparing, annotating, manipulating and visualising trees. It provides a comprehensive API and a collection of command line tools, including utilities to work with the NCBI taxonomy tree.
http://etetoolkit.org
GNU General Public License v3.0
773 stars 216 forks source link

random collapse of partial internal node #659

Open dengzq1234 opened 1 year ago

dengzq1234 commented 1 year ago

As I observe, ete4 collapse branchs or nodes based on the collpase level(defautl is 10), which usually collapse the internal nodes. But here I find some sitaution that ete4 collapse partial children of internal nodes which cause lack of information of collapsed clade

image

As the picture above, the big grey triangle is the default collapse clade but is only half of the children leaves of the internal node which make the collapsed clade meanless

test example: https://github.com/compgenomicslab/MetaTreeDrawer/blob/main/examples/gtdb_example1.nw