liamrevell / phytools

GNU General Public License v3.0
198 stars 56 forks source link

cophylo with polytomies error #150

Open cmt2 opened 4 months ago

cmt2 commented 4 months ago

Hello! I am looking to make cophylo plots with trees that have numerous polytomies, but am running into a memory error when I attempt to use the rotate.multi = T arg in phytools::cophylo(). The trees have 112 tips with, in the most extreme case, 108 branches of length 0. Without rotate.multi it runs totally fine and relatively fast, but the plot looks a bit ridiculous since it shows lots of conflict between trees due to the order of tips in the polytomy. The exact error is:

Error in vector("list", gamma(n + 1)) : 
  vector size specified is too large

I'm running this locally on a machine with 32 GB RAM. Is there any hope? Any suggestions for making this work?