These are chat archives for dereneaton/ipyrad

13th
Feb 2019
Isaac Overcast
@isaacovercast
Feb 13 18:02
@serenaacha_twitter Yes, this is an api change in scikit allel. I fixed this in the ipyrad repo, but haven't pushed a new package yet. The easiest fix is to roll back scikit-allel to a version prior to 1.2.0 using conda. That will work 100%.
serena acha
@serenaacha_twitter
Feb 13 23:49

@isaacovercast Thank you very much! That worked perfectly. Now I am trying the Tetrad cookbook and I found an issue when trying to draw the tree. Could you please help me?

      ## create a toytree object from the newick file path:

tre = toytree.tree(tet.trees.nhx)
tre.draw(
width=350,
node_labels=tre.get_node_values("support"),
); AttributeErrorTraceback (most recent call last)

<ipython-input-15-43d4a23cf10e> in <module>()
3 tre.draw(
4 width=350,
----> 5 node_labels=tre.get_node_values("support"),
6 );

/home/brigette.williams/.conda/envs/conda-env/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.

/home/brigette.williams/.conda/envs/conda-env/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'