I am working with this POST request from Ensembl. Let us suppose, as a starting example, that we have the following variant (in the form of a R code snippet):
{ "variants" : ["21 26960070 26960070 G A . . ."]}
.
Please note that this is the required structure of the payload that is assigned to the body (i.e. a parameter of POST) of the aforementioned POST request in R. For clarity, the information within the square brackets mean the chromosome number, starting coordinate variant, ending coordinate variant, reference allele and alternate allele(s), respectively.
Now suppose that I have another variant, but this variant has two alternate alleles, for example: TA and TAAA. How do I adjust the aforementioned structure to accommodate a POST request for a variant that has multiple alternate alleles?
Have you tried doing this (inspired by the link that you shared) - { "variants" : ["21 26960070 26960070 G A . . .", "21 26960070 G C . . ." ] }. POST endpoints are meant for submitting more than one request (from my very limited knowledge).
Correct, but I wrote it like this for simplicity.
You can add multiple alternate alleles separated by a ",". Does that work for you?
I marked your account as spammer because your username looks a lot like spammy usernames we see on the forum. I've restored your account but please consider using a more professional or even mainstream username.