Skip to content

Commit ece0466

Browse files
committed
added faces to ete3 call
1 parent 52d901b commit ece0466

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ERVsearch/Trees.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def drawTree(tree, outfile, maincolour, highlightcolour,
208208
# Write the sequence name and the number of sequences it
209209
# is representing
210210
text = "%s (%i sequences)" % (item.name, sizeD[item.name])
211-
item.add_face(ete.CircleFace(radius=countn, color=col),
211+
item.add_face(ete.faces.CircleFace(radius=countn, color=col),
212212
column=0)
213213
else:
214214
# Otherwise just put the name
@@ -218,7 +218,7 @@ def drawTree(tree, outfile, maincolour, highlightcolour,
218218
text = item.name
219219

220220
# Add the text to the node
221-
TF = ete.TextFace(text)
221+
TF = ete.faces.TextFace(text)
222222
item.add_face(TF, column=1)
223223
TF.fgcolor = col
224224

@@ -228,7 +228,7 @@ def drawTree(tree, outfile, maincolour, highlightcolour,
228228
NS['size'] = 0
229229
for node in T.traverse():
230230
if not node.is_leaf():
231-
f = ete.TextFace(node.support)
231+
f = ete.faces.TextFace(node.support)
232232
# This sets the position of the branch support
233233
node.add_face(f, column=0, position="branch-top")
234234
node.set_style(NS)

0 commit comments

Comments
 (0)