proxysnps icon indicating copy to clipboard operation
proxysnps copied to clipboard

Selecting correct query info when multiple hits returned

Open mreppell opened this issue 6 years ago • 1 comments

In main function:

v <- myvariant::queryVariant(query)
if (v$total > 0) {
  chrom <- v$hits$dbsnp$chrom[1]
  pos <- v$hits$dbsnp$hg19$start[1]
}

query SNP 'rs6025' returns 4 results, the first of which is "NA" in all fields, and the third entry which is correct. Instead of selecting 'v$hits$dpsnp$chrom[1] it would probably be better to select first entry that is not "NA", because otherwise program is unable to return correct information.

mreppell avatar Apr 02 '18 14:04 mreppell

Thanks for reporting this issue! You're totally right.

slowkow avatar Apr 02 '18 15:04 slowkow