VEuPathDB / veupathUtils

A collection of general purpose R helper functions for use in the VEuPathDB project.
Apache License 2.0
0 stars 1 forks source link

Backend: Optionally impute 0s for numeric terms. #3

Closed d-callan closed 2 years ago

d-callan commented 2 years ago

The use case we have currently is for mbio, discussed in slack #eda-backend. from that conversation @steve-fischer-200 said " i just have to do an initial query to see if any samples in my subset have a value for this variable. if so, then fill in zeros".

There are variables that represent abundance values that we would like to automatically impute 0 values for when they are requested for vizs. We may still require some discussion, particularly around whether we also want this behavior in the subset tab histos.

d-callan commented 2 years ago

update from @steve-fischer-200 on slack: "ruh roh... i might be revising my thinking on this. somebody has to make a pass over the data, and gather a list of all variables (taxa) that are present. it seems possibly easiest, and least data bloat(?), if the data service does it."

i think that would practically mean implementing a helper for this in veupathUtils, which both the data service and compute service could use. i'll transfer.

asizemore commented 2 years ago

Nothing for outreach to QA