Skip to content
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

Error while running LDtrait #19

Closed
vermaa1 opened this issue Jun 9, 2022 · 3 comments
Closed

Error while running LDtrait #19

vermaa1 opened this issue Jun 9, 2022 · 3 comments

Comments

@vermaa1
Copy link

vermaa1 commented Jun 9, 2022

Hi,

I am getting an error with the LDtrait function.

mytrait<-LDtrait(snps = "rs334",
                 pop = c("YRI"),
                 r2d = "r2",
                 r2d_threshold = "0.1",
                 win_size = "500000",
                 token = "MY TOKEN"
                )

Error in LDtrait(snp = "rs334", pop = "YRI", r2d = "r2", token = "MY TOKEN") : 
  integer(0) integer(0) integer(0) integer(0) integer(0) numeric(0) numeric(0) integer(0) numeric(0) integer(0) numeric(0)

Thanks!

@timyers
Copy link
Collaborator

timyers commented Jun 10, 2022

Thank you for reporting this issue. After investigating, I determined you helped uncover a bug that is triggered when the LDtrait response data from the API contains the GWAS trait "Refractive error". This caused a problem while coming up with the strategy for handling errors. I am working on a fix and will report it here when it's available. Thank you for your interest in LDlinkR.

@timyers
Copy link
Collaborator

timyers commented Jun 10, 2022

The patch to fix this issue is now available on Github and will be included in the next version submitted to CRAN.
Thank you again for reporting this problem.

@vermaa1
Copy link
Author

vermaa1 commented Jul 8, 2022

Thank you so much! It works now.

@vermaa1 vermaa1 closed this as completed Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants