myvariant.info icon indicating copy to clipboard operation
myvariant.info copied to clipboard

Batch query API via list of variant positions in chr:pos

Open willgdjones opened this issue 4 years ago • 2 comments

I know that this is possible with a list of rsids, but is it possible with a list of variants in chr:pos format?

I have asked the Biostars community but have not received a response just yet. https://www.biostars.org/p/395745/

Thanks very much in advance!

willgdjones avatar Aug 25 '19 18:08 willgdjones

I don't see it possible to use batch query service if you only provide chr:pos... Here are some alternatives you might want to try:

  1. If you have the hgvs id (chr, pos, ref, alt), e.g. chr1:g.35367C>T, you can use the POST batch query service, see myvariant batch query doc
  2. If you only have chr:pos, you have to use the GET query service as documented myvariant query doc. Example: http://myvariant.info/v1/query?q=chr7:73657626

kevinxin90 avatar Aug 27 '19 17:08 kevinxin90

@willgdjones I want to add that, although the current myvariant batch query does not support the type of batch queries you asked, I think it could be a very useful feature to add.

(reopening this issue for us to explore the possible solution)

newgene avatar Aug 27 '19 18:08 newgene