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

Validate input tree #35

Open
1 task
ElDeveloper opened this issue Sep 7, 2017 · 3 comments
Open
1 task

Validate input tree #35

ElDeveloper opened this issue Sep 7, 2017 · 3 comments

Comments

@ElDeveloper
Copy link
Member

ElDeveloper commented Sep 7, 2017

The input tree should be validated and raise an appropriate exception in these cases:

  • duplicated tip ids are present.
    - [ ] unrooted trees are passed.
    - [ ] no branch lengths present in the tree, we should come to an agreement on what distance should be returned in this case.
@wasade
Copy link
Member

wasade commented Apr 29, 2018

@ElDeveloper, reviewing this right now. I agree with a check for duplicate tip IDs. I don't think requiring rooted trees makes sense as that disallows the use of taxonomies since they are not bifurcating, and the original implementations would support computation on these trees anyway. With missing branches, we've historically (including the original implementations of UniFrac) defaulted to a 0 value.

@ElDeveloper
Copy link
Member Author

ElDeveloper commented Apr 30, 2018 via email

@wasade
Copy link
Member

wasade commented Mar 30, 2022

This is still a nice to have, but validation needs to be structured so it is optional. Leaving open but not addressing yet

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