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

Subtree method with nexson doesn't work #180

Open
josephwb opened this issue Jun 15, 2016 · 3 comments
Open

Subtree method with nexson doesn't work #180

josephwb opened this issue Jun 15, 2016 · 3 comments

Comments

@josephwb
Copy link
Member

This is the result of the call used in the documentation:

curl https://api.opentreeoflife.org/v3/study/pg_10/subtree/tree3?subtree_id=ingroup
{"description": "Cannot convert from 1.2.1 to NexSON v0.0.0", "error": 1}

By pulling a Homer, I fluked upon a permutation that worked by specifying a newick return:

curl https://api.opentreeoflife.org/v3/study/pg_10/subtree/tree3.tre?subtree_id=ingroup

This also works with Nexus. So the problem seems to be localized to nexson.

@jimallman suggested appending &output_nexml2json=1.2.1:

curl https://api.opentreeoflife.org/v3/study/pg_10/subtree/tree3?subtree_id=ingroup&output_nexml2json=1.2.1

but that did not work.

@mtholder
Copy link
Member

Hi, getting parts of the tree has never been supported with NexSON. I have just clarified that in the README. I agree that the "cannot convert..." error messages are not helpful and should be more targeted.

@josephwb
Copy link
Member Author

Thanks. I clarified it a bit more with 580ba3a.

@josephwb
Copy link
Member Author

Maybe the default format should be set to newick, so no suffix need be specified? This would get around the nexson error.

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

No branches or pull requests

2 participants