Skip to content

Commit 3bb81d7

Browse files
committed
change get_qlin_topo to set branch length to 1
1 parent 70292ee commit 3bb81d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oggmap/qlin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def get_lineage_topo(qt,
278278
'PSname']].apply(lambda x: '/'.join(x), axis=1))
279279
qln = [x.replace(' ', '_').replace('(', '_').replace(')', '_').replace(':', '_') for x in qln]
280280
#tree = Tree('(' * len(qln) + ''.join([str(x) + '),' for x in qln[1::][::-1]])+str(qln[0])+');')
281-
newick_str = '(' * len(qln) + ''.join([str(x) + '),' for x in qln[1::][::-1]]) + str(qln[0]) + ');'
281+
newick_str = '(' * len(qln) + ''.join([str(x) + ':1.000),' for x in qln[1::][::-1]]) + str(qln[0]) + ':1.000);'
282282
tree = Phylo.read(StringIO(newick_str), 'newick')
283283
return tree
284284

0 commit comments

Comments
 (0)