Closed TankredO closed 5 years ago
Thanks. Aware of this problem and working to update ipyrad for the latest toytree.
Current workaround for this is: conda install toytree toytree=0.1.16 -c eaton-lab
I was receiving the original error associated with import ipyrad.analysis
and downgrading toytree to version 0.1.16 now causes errors associated with attributes specified in tre.draw()
and tre.root()
. Thoughts on work around for this error?
# error example from tree tutorial
import toytree
import toyplot
import numpy as np
tre = toytree.tree("https://eaton-lab.org/data/Cyathophora.tre")
tre.draw(width=300);
error message:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-55937d305770> in <module>()
1 # load a tree for this tutorial
2 tre = toytree.tree("https://eaton-lab.org/data/Cyathophora.tre")
----> 3 tre.draw(width=300);
./miniconda2/lib/python2.7/site-packages/toytree-0.1.16-py2.7.egg/toytree/Toytree.py in draw(self, tree_style, height, width, axes, orient, tip_labels, tip_labels_color, tip_labels_style, tip_labels_align, tip_labels_space, node_labels, node_labels_style, node_size, node_color, node_style, node_hover, edge_type, edge_style, edge_align_style, use_edge_lengths, scalebar, padding, **kwargs)
649 # update tree_style to custom style with user entered args
650 self._style._update_from_dict(
--> 651 {i: j for (i, j) in userargs.items() if j is not None})
652
653 # Init Drawing class object.
./miniconda2/lib/python2.7/site-packages/toytree-0.1.16-py2.7.egg/toytree/TreeStyle.py in _update_from_dict(self, kwargs)
90 if key in self.__dict__.keys():
91 if val is not None:
---> 92 self.__setattr__(key, val)
93
94 # extra style are dicts that contain CSS style '-' keys
AttributeError: TreeStyle instance has no attribute '__setattr__'
Hey. I do get the exact same error message as @mzinkgraf does. I also downgraded the to toytree=0.1.16. Any suggestions? Cheers, Tim
Fixed in 0.7.30
Hi, Is the version 0.7.30 already available? When installing ipyrad with the command conda install -c ipyrad ipyrad I install version 0.7.29. Thanks for your help. Cheers, Joan
Are you on mac? I didn't pus the 0.7.30 package for mac yet. I'll work on it.
On Wed, Mar 27, 2019 at 11:53 AM jferrerobiol notifications@github.com wrote:
Hi, Is the version 0.7.30 already available? When installing ipyrad with the command conda install -c ipyrad ipyrad I install version 0.7.29. Thanks for your help. Cheers, Joan
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/dereneaton/ipyrad/issues/318#issuecomment-477222207, or mute the thread https://github.com/notifications/unsubscribe-auth/AFsrv4XfJo6tEvYvWagrR28tP9_5fI-zks5va5QGgaJpZM4Yd_Ri .
Yes, on mac. Thanks for your fast answer!!
0.7.30 is up for mac.
Great!! Thanks!!
Hi again ,
I am trying to run abba-baba admixture tests in ipyrad and I get the following error when trying to generate tests from tree:
AttributeError Traceback (most recent call last)
I fixed this 2 hours ago: https://github.com/dereneaton/ipyrad/issues/330.
I will push a new conda package for mac and linux. Try again after dinner.
Worked fine, thanks Isaac! Nonetheless, I am getting another error now when trying to run the abba-baba tests. It looks like it is something related with ipyclient but I am not really sure of what may be the problem. Any thoughts about it:
IPyradError Traceback (most recent call last)
It's not an ipcluster issue. This is the result of calling np.max() on an empty array, so most likely there's a problem with your input. Check to make sure you're giving it reasonable inputs.
Thanks for the help! It is working fine now for me. Nonetheless, when I try to run the following command to plot the ABBA BABA tests results:
calonectris.plot(height=850, width=700, pct_tree_y=0.2, pct_tree_x=0.5, alpha=4.0);
I get this error:
TypeError Traceback (most recent call last)
It's hard to tell what's going on here because I can't see your code. The error looks like you're not importing toytree properly? Or maybe it's an old version? What version of toytree?
Hi Isaac, I am using version 0.1.24.
These are the versions I am using:
print ipa.version print toyplot.version print toytree.version
0.7.30 0.18.0 0.1.24
Can you post the code? Versions look fine.
Yes! It is basically the same code as the ABBA-BABA tutorial adapted to my data. Please, find attached the jupyter notebook: dtest.pdf
Thanks for your help!
Yeah, the baba.py code is somewhat out of date with respect to the newest version of toytree. The 'orient' and 'use_edge_lengths' arguments are now part of the draw() functiont of toytree, and no longer part of the constructor. If you remove both of those it should work fine, but no guarantees, since other stuff could be broken.
On Tue, Apr 2, 2019 at 1:16 PM jferrerobiol notifications@github.com wrote:
Yes! It is basically the same code as the ABBA-BABA tutorial adapted to my data. Please, find attached the jupyter notebook: dtest.pdf https://github.com/dereneaton/ipyrad/files/3035149/dtest.pdf
Thanks for your help!
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/dereneaton/ipyrad/issues/318#issuecomment-479102495, or mute the thread https://github.com/notifications/unsubscribe-auth/AFsrv1tshaG2BnMwKl5pi8Et5SEmZTzTks5vc5BzgaJpZM4Yd_Ri .
First of all thank you for the great package!
I encountered a problem when using the recent versions of ipyrad and toytree together:
python version: 2.7.15, ipyrad version: 0.7.28 (py27ha99686e_0) toytree version: 0.1.18 (py27_0)
throws error:
This seems to originate from tetrad.py:
The problem seems to be that newer versions of
toytree
don't have the fieldete3mini
. I solved the problem for myself by installing an older version of toytree (0.1.16, py27_0). Before looking into the code I was quite confused by the error telling me to install toytree. I guess it be very helpful for new users to add a version number for toytree to the error message.