-
Notifications
You must be signed in to change notification settings - Fork 25
Handling wildcards #223
Comments
+1 for a specific response (not overloading |
Proposed update to the specification: add two new fields ( Response for query is currently:
Proposed format:
|
Parsing this I see 2 differences
So: The ref/alt values in the response then would correspond to a match each, i.e. different matches to a wildcard ... would lead to multiple
There is an argument to be made to use a handoff scenario for this (we have this e.g. in Beacon+ - handoff, where one just loads all the data of the matched variants.). But this then requires a specified handover response format, too. I don't get the change in the |
Building on what @teemukataja mentioned, we made this suggestion based on our experience loading and analysing the data from 1000 genome project. We would like for the user to be able to differentiate between wildcard results in the UI (we have an example here: CSCfi/beacon-python#24), however the API specification did not provide any fields we can utilise for this purpose. Thus we made a suggestion how this could be implemented, and we rely on the people defining the specification for the solution. Regarding "BRK", we had not fully tackled Regarding the
However that is equivalent to:
This second option is easier to parse and work with, and we have not encountered any use cases for the first option. |
@blankdots @teemukataja As said, I think the concept of returning the different matched alleles looks good to me, but needs some work/discussion about the implementation:
I'm highly in favour of doing some rapid development here - so suggestions, discussions, PRs welcome (IMO)! |
@blankdots Btw., those (list vs. object) are not equivalent since only a list allows repeated keys (making it harder to parse, but better as a wrapper). |
@mbaudis probably should have mentioned i was focusing on content (and how to it could be used), not structure |
I have written up a page about proposed range matches and wildcards, which also demonstrates a handover [H->O] variant object, which in turn can be analysed for its variant flavours. This should be considered a (working) prototype, which may look different in the implementation brought forward by the dev team (@sdelatorrep?). |
This is more a feature request / question.
Now that #221 has been preliminarily accepted, we have implemented it into the Beacon API. We have thus arrived at a new complication described in CSCfi/beacon-python#24.
In some cases the reference bases may have multiple alternate alleles. The specification doesn't offer a direct solution to this issue, and the quickest solution we came up with, is to add these fields into the
info
key of thedatasetAlleleResponses
object.Should we carry on with this solution, or should these fields be added into the response object, as they are quite important in all wildcard queries?
Choices
datasetAlleleResponses
should contain these two values that reflect the wildcard results (RECOMMENDED);info
key.The text was updated successfully, but these errors were encountered: