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

Add endpoint that returns the taxonomic distribution of the Datanator #97

Closed
jonrkarr opened this issue May 26, 2020 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@jonrkarr
Copy link
Member

We need another endpoint to add a chart of the taxonomic distribution of Datanator to the stats page. See also KarrLab/datanator_frontend/#256.

Endpoint:

  • Return the number of observations of each organism for the most frequently observed organisms.
  • The results can be paginated. We only need ~10 most frequent organisms for the chart.
  • Also return the total number of observations so that the number of observations for all other organisms can be calculated
@jonrkarr jonrkarr added the enhancement New feature or request label May 26, 2020
lzy7071 added a commit to KarrLab/datanator_query_python that referenced this issue May 28, 2020
lzy7071 added a commit to KarrLab/datanator_query_python that referenced this issue May 28, 2020
lzy7071 added a commit to KarrLab/datanator_query_python that referenced this issue May 28, 2020
lzy7071 added a commit that referenced this issue May 28, 2020
@lzy7071
Copy link
Contributor

lzy7071 commented May 28, 2020

This has turned out to be a lot more complicated than I expected. The endpoint is finally up https://testapi.datanator.info/taxon/summary/taxon_distribution. I stored the equivalence of the returned distribution object here: https://github.com/KarrLab/datanator_query_python/blob/testapi/docs/taxon_distribution_frontend.json The less processed file can be seen here: https://github.com/KarrLab/datanator_query_python/blob/testapi/docs/taxon_distribution.json

@jonrkarr
Copy link
Member Author

I integrated this into the frontend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants