biocore / redbiom

Sample search by metadata and features
Other
45 stars 20 forks source link

should some of the output be optional in redbiom.fetch.data_from_samples #70

Closed antgonza closed 5 years ago

antgonza commented 5 years ago

Not sure how expensive it actually is but I would suspect that is not "free" to always generate the biom and the dict; thus, should this method have 2 other counterparts that only return the biom or the dict?

wasade commented 5 years ago

Ambiguities are necessary to resolve before constructing the Table object, so it is for free.

antgonza commented 5 years ago

Right but constructing the Table actually takes resources (memory and time) so the point of this is to make the creation of the biom optional ...

wasade commented 5 years ago

I'm not aware of any consumer method that uses the ambiguity mapping, so I still don't understand the motivation.

It is almost certainly the case that the HTTP requests and responses are the bulk of the time particularly as we're loading already sparse data through optimized mechanisms, although I'd be curious to see profiling results if you have them.

antgonza commented 5 years ago

We do this in Qiita, we care about the dict, which we will use to display results, but ignore the biom ...

wasade commented 5 years ago

See here