Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Some more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
druvus committed May 7, 2020
1 parent 32122e2 commit 3217889
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CanSNPer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,11 @@ def draw_ete2_tree(organism, snplist, tree_file_name, config, c):
'''
newick = tree_to_newick(organism, config, c)
tree = Tree(newick, format=1)
tree = ete2.Tree(newick, format=1)
tree_depth = int(tree.get_distance(tree.get_farthest_leaf()[0]))
for n in tree.traverse():
# Nodes are set to red colour
nstyle = NodeStyle()
nstyle = ete2.NodeStyle()
nstyle["fgcolor"] = "#BE0508"
nstyle["size"] = 10
nstyle["vt_line_color"] = "#000000"
Expand Down Expand Up @@ -605,7 +605,7 @@ def draw_ete2_tree(organism, snplist, tree_file_name, config, c):
nstyle["vt_line_type"] = 1
nstyle["hz_line_type"] = 1
n.set_style(nstyle)
ts = TreeStyle()
ts = ete2.TreeStyle()
ts.show_leaf_name = False # Do not print(leaf names, they are added in layout)
ts.show_scale = False # Do not show the scale
ts.layout_fn = CanSNPer_tree_layout # Use the custom layout
Expand Down

0 comments on commit 3217889

Please sign in to comment.