Ensembl's POST "vep/:species/region": multiple alternate alleles for a single variant in R
1
0
Entering edit mode
13 months ago

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?

R Ensembl POST VEP • 791 views
ADD COMMENT
0
Entering edit mode

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).

ADD REPLY
0
Entering edit mode

Correct, but I wrote it like this for simplicity.

ADD REPLY
0
Entering edit mode

You can add multiple alternate alleles separated by a ",". Does that work for you?

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
2
Entering edit mode
13 months ago

this is a VCF format, so use comma for multiple ALT alleles:

{ "variants" : ["21 26960070 26960070 G A,T,C . . ."]}.
ADD COMMENT
0
Entering edit mode

Thanks for your reply. It works! I have tried your option before, but somehow it did not work. Probably a typo or something.

ADD REPLY

Login before adding your answer.

Traffic: 2664 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6