-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for reporting the hg19/37 position (if available) in ncbi_snp_query_api() #95
Comments
Test
|
I needed this function to work with hg19/37, so I had a look at your ncbi_snp_api.R code and the NCBI api output of one of the SNPs in your examples (rs420358), and it seems to me line 8 in your code decides whether you get assembly 38 or 37. Looking at some more NCBI api output, within the If the above turns out to be correct - I did not thoroughly look into this any further than the above - perhaps you can add an argument to the function this way where you can toggle between hg19/37 and hg38? As an aside, running this function, especially for a vector of variants, relatively often gives me an error: |
@arjanboltjes thanks for your input! Regarding |
Yes this would be super useful! Should we expect a fix soon? |
I made a fork and try to solve this problem, check in: https://github.com/cruzpazv/rsnps/blob/master/R/ncbi_snp_api.R |
Thanks @cruzpazv we will try to have a look at your solution this week. |
Thanks @cruzpazv. Could you make a pull request so we can easily check the changes you made in your fork? |
As brought up in #92. It would be nice to add support for reporting the hg19/37 position (if available) in ncbi_snp_query_api().
The text was updated successfully, but these errors were encountered: