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 in if (out == "[]") { : argument is of length zero #76

Open
morculture opened this issue May 22, 2024 · 1 comment
Open

Error in if (out == "[]") { : argument is of length zero #76

morculture opened this issue May 22, 2024 · 1 comment

Comments

@morculture
Copy link

options(ieugwasr_api = 'gwas-api.mrcieu.ac.uk/')
exp_data <- extract_instruments(outcomes = dat$GWAS ID[i],

  •                                   p1=pvalue,
    
  •                                   clump = FALSE)
    

Error in if (out == "[]") { : argument is of length zero

traceback()
2: ieugwasr::tophits(outcomes, pval = p1, clump = clump, r2 = r2,
kb = kb, force_server = FALSE, opengwas_jwt = opengwas_jwt)
1: extract_instruments(outcomes = dat$GWAS ID[i], p1 = pvalue,
clump = FALSE)

@ManqiZh
Copy link

ManqiZh commented Oct 8, 2024

Many GWAS IDs are experiencing the same problem.
By trying to modify the pval parameter, I found out that the probable reason for this error is that no matching SNPs were filtered.

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