ga4gh-beacon / specification-v2

GA4GH Beacon v2 specification.
Apache License 2.0
3 stars 6 forks source link

Redefine inconsistent use of dataset specific responses #63

Closed mbaudis closed 3 years ago

mbaudis commented 3 years ago

The includeDatasetResponses parameter - picked up from the v1 schema - allows o specify if dataset specific responses should be provided:

However, only for variants dataset specific responses exists (BeaconDatasetAlleleResponse) but this isn't a consistent feature of the other endpoints (biosamples ...). Here, AFAIK it currently is not supported to deliver the results in per-dataset objects.

Overall, the "datasetAlleleResponse" etc. is a bit confusing. The straightforward options would be:

OR

Maybe it is just me missing some simplicity here...

Tom-Shorter commented 3 years ago

I agree with dataset specific objects idea.

Not only does this idea help to resolve the above but it can also help with AAI and pagination. This is an area I had planned to discuss in the next meeting (please remind me!) so I'll save writing any lengthy comments here until after the meeting.

mbaudis commented 3 years ago

The whole concept of "datasets" as a special grouping item is tricky. We have now a large interest in e.g. cohorts, which may span datasets. The datasets concept itself derives a lot from the "single VCF/collection with pre-computed frequencies" etc. which is extremely limiting.

So:

But this may just reflect some lack of understanding from my side how a /biosamples response for 2 selected datasets would look.

jrambla commented 3 years ago

This has been addressed in the Beacon v2 Model.