Hello,
I have a list of ~6000 taxids from NCBI taxonomy. I created a tree from them and I need to generate an image. When I use all of them, my program aborts with the messages like "QPainter::setOpacity: Painter not active". I do get a picture if I use a smaller list of nodes.
So I think I can probably collapse the nodes into higher level nodes, so that only the genus nodes are shown without species/subspecies.
When I generate the tree, I tried doing intermediate_nodes=False,collapse_subspecies=True - but my test tree still looks quite big.
What is a meaningful way to collapse this tree? And is there a way to export it in the edge format - eg (node1, node2)? I always used the networkx librabry before but I it doesn't have the NCBI module which I really need. I am not sure networx can read the newick format.
I basically need to generate a nice image of the NCBI tree that I have - what is the best way for me to do this with your or another library?
Also, in the image I was able to generate, the taxids are shown twice - is there a way to fix this? I'm attaching it.
Thank you very much! Irina.
