Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readTopology with negative edge lengths #176

Closed
fogg-uw opened this issue Jun 8, 2022 · 0 comments · Fixed by #177
Closed

readTopology with negative edge lengths #176

fogg-uw opened this issue Jun 8, 2022 · 0 comments · Fixed by #177

Comments

@fogg-uw
Copy link

fogg-uw commented Jun 8, 2022

not sure if this is a bug or a feature, but PhyloNetworks.readTopology seems not to like negative edge lengths.

input

readTopology("((A:1,B:1):-1,C:2);")

gives output

┌ Warning: one colon read without double in left parenthesis 2, ignored.
└ @ PhyloNetworks ~/.julia/packages/PhyloNetworks/Wtq8B/src/readwrite.jl:270
HybridNetwork, Rooted Network
5 edges
6 nodes: 4 tips, 0 hybrid nodes, 2 internal tree nodes.
tip labels: A, B, 1, C
((A:1.0,B:1.0),1,C:2.0);

and input

readTopology("((A:1,B:-1):1,C:2);")

gives output

┌ Warning: one colon read without double in left parenthesis 2, ignored.
└ @ PhyloNetworks ~/.julia/packages/PhyloNetworks/Wtq8B/src/readwrite.jl:270
ERROR: Expected right parenthesis after left parenthesis 2 but read -. The remainder of line is 1):1,C:2);.
@fogg-uw fogg-uw changed the title readTopology with small, negative hybrid branch lengths readTopology with negative edge lengths Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant