Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Selecting correct query info when multiple hits returned #3

Open
mreppell opened this issue Apr 2, 2018 · 1 comment
Open

Selecting correct query info when multiple hits returned #3

mreppell opened this issue Apr 2, 2018 · 1 comment
Labels

Comments

@mreppell
Copy link

mreppell commented Apr 2, 2018

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.

@slowkow
Copy link
Owner

slowkow commented Apr 2, 2018

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

@slowkow slowkow added the bug label Apr 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants