Skip to content

Commit

Permalink
Get rid of root annotation when writing newick
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrycobb committed Sep 28, 2023
1 parent 426d5d9 commit 3b8de80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/phylogeni/io/writeNewick.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ func writeNewickData[T](node: Node[T], str: var string) =
func writeNewickString*[T](tree: Tree[T]): string =
## Write newick string for Node object
var str = ""
if tree.rooted:
str.add("[&R]")
else:
str.add("[&U]")
# if tree.rooted:
# str.add("[&R]")
# else:
# str.add("[&U]")
for i in tree.newickorder():
if i.firstVisit == true:
if i.node.isLeaf():
Expand Down

0 comments on commit 3b8de80

Please sign in to comment.