Closed KlausVigo closed 2 years ago
Hello Emmanuel,
I found a bug in .write.tree2, which appears if one rotates some edges:
.write.tree2
> library(ape) > set.seed(42) > tree1 <- rcoal(5) > tree2 <- rotate(tree1, 7) > tree2 <- rotate(tree2, 8) > tree3 <- read.tree(text=write.tree(tree2)) > all.equal(tree1, tree2) [1] TRUE > all.equal(tree1, tree3) [1] FALSE > all.equal(tree2, tree3) [1] FALSE
This pull request should fix the bug.
Cheers, Klaus
Thanks!
Hello Emmanuel,
I found a bug in
.write.tree2
, which appears if one rotates some edges:This pull request should fix the bug.
Cheers, Klaus