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

Map: Update floating plot plugins for varying sample size records #265

Open
d-callan opened this issue Apr 28, 2023 · 0 comments
Open

Map: Update floating plot plugins for varying sample size records #265

d-callan opened this issue Apr 28, 2023 · 0 comments
Assignees

Comments

@d-callan
Copy link
Contributor

d-callan commented Apr 28, 2023

We need to be able to accommodate in plot.data cases where one row in a data table does not represent a single 'record'. ex: the popbio megastudy sample entity contains both individuals and pooled samples. in order to average across these two types of records, we need to know how many individuals are in the pooled sample and do a weighted average. We also need to be able to accommodate cases where we need to impute 0s for tall data. This ticket is to update the APIs and plugins for the floating charts so that this data can be passed to R appropriately.

Each plugin will now have to:

  1. include config to indicate, when the output entity requires it, a variable which can be used to find the sample size per record
  2. include config to indicate, when a variable requires it, that it has a row-dependent vocabulary, which ancestor variable defines the complete vocabulary and what filters were applied to that variable
  3. hit a dedicated metadata endpoint to find row-specific vocabularies
  4. pass the vocabulary, the variable filters, and the sample sizes per record to plot.data

Depends on #264
Depends on VEuPathDB/plot.data#220
Depends on VEuPathDB/EdaLoadingIssues#62

Related to #266

@d-callan d-callan self-assigned this May 3, 2023
@d-callan d-callan changed the title Map: Update floating plot plugins for row-dependent vocabularies and varying sample size records Map: Update floating plot plugins for varying sample size records Aug 17, 2023
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

1 participant