-
Notifications
You must be signed in to change notification settings - Fork 3
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
popularity service no list returned #319
Comments
The popularity service return no species for your provided taxa
|
OK, but the original OneZoom service returns 20 species (http://beta.onezoom.org/popularity/list?key=0&otts=991547&expand_taxa=True&max=20&names=True&sort=rank). See below. I guess @abusalehmdtayeen wrapped this and we need to ask him?
|
The problem happens when we get multiple matches for a taxon name from OpenTreeofLife API. By default, I pick the first match with score 1.0, get its ott_id and then use the One Zoom API. Since OneZoom API directly works on the ott_id and you are giving the correct ott_id you get results. Below is the TNRS match result for "Anura" from OpenTreeofLife. |
To resolve this, we may need to ask the user to provide another input. For example, if the user mentions the rank as "order" in case of "Anura", you will get the correct result. |
But if the user wants to make a tree for frogs, then this is not a solution. There is no other taxon that maps to frogs. At the very least, we need to tell the user what is happening, e.g., "The taxon could not be mapped unambiguously (see [search ressult)[https://tree.opentreeoflife.org/taxonomy/browse?name=anura]). Another possibility is to do what OT does on One way to do this would be to do what OT does on pages like this and offer a box that says "enter name or id". This way, the user who wants to resolve an ambiguity can do so by specifying the id instead of the name. The taxonomy search interface in the main OT viewer provides a pull-down in case of ambiguous matches: |
Which is the api in OT that returns different taxonomies in different kingdoms as Arlin showed? |
Hi @ducvan0212 , You don't need a separate service now. I have modified the popularity service to include popular species of all matches of the input taxon. So, you can show the user different results based on their choice. Here is an example output. |
2 cases were due to the popularity service, but Anura (frogs) eems to be our problem. This may be because this name occurs twice in OT taxonomy. Here is the pop service call: http://beta.onezoom.org/popularity/list?key=0&otts=991547&expand_taxa=True&max=20&names=True&sort=rank
The text was updated successfully, but these errors were encountered: