Gemma icon indicating copy to clipboard operation
Gemma copied to clipboard

Offset and limit getDatasetDifferentialExpressionAnalyses endpoint

Open oganm opened this issue 2 years ago • 2 comments

I am a bit unclear on what offset and limit arguments are doing in this enpoint. It seems like unlike all other enpdoints with an offset and limit, they don't provide a totalElements component and this probably makes sense because they always return data from a single experiment as a single object which also makes these arguments entirely pointless as far as I can see.

The example here shows the lack of difference that comes from specifying a limit to one experiment with multiple resultSets and contrasts that may have been subject to the limit albeit likely not very usefully

https://gemma.msl.ubc.ca/rest/v2/datasets/12709/analyses/differential https://gemma.msl.ubc.ca/rest/v2/datasets/12709/analyses/differential?limit=1

oganm avatar Sep 15 '23 00:09 oganm

That's right, it's completely superfluous.

arteymix avatar Sep 15 '23 16:09 arteymix

Implementation is in https://github.com/PavlidisLab/Gemma/pull/859.

I'm getting rid of offset/limit altogether and adding a parameter for including analyses of subsets in the output.

arteymix avatar Sep 20 '23 05:09 arteymix