You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use paintBranches on a large (1201 tip) phylogeny and it gave the error:
Error in tree$edge.length[[ii[i]]] : invalid subscript type 'list'
For some reason in Line 8 of the paintBranches function sapply is returning a list with my data, although running the example code from your blog it returns a vector.
I've fixed this by defining the function in my code and adding ii <- unlist(ii) at Line 9 of the paintBranches function, not sure if you could add this fix to the function to prevent it happening for others in future?
The text was updated successfully, but these errors were encountered:
Hi @rubysaltbush. To figure this out I'd really need to see a reproducible example, as I'm not running into the same problem using example cases -- even with trees of similar size. Thanks! -- Liam
Hello!
I am trying to use paintBranches on a large (1201 tip) phylogeny and it gave the error:
For some reason in Line 8 of the
paintBranches
function sapply is returning a list with my data, although running the example code from your blog it returns a vector.I've fixed this by defining the function in my code and adding
ii <- unlist(ii)
at Line 9 of the paintBranches function, not sure if you could add this fix to the function to prevent it happening for others in future?The text was updated successfully, but these errors were encountered: