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 r$status_code : $ operator is invalid for atomic vectors OR Error in tophits_query(id = id, pval = pval, clump = clump, r2 = r2, kb = kb, : There was an error, please contact the developers[BUG]: #498

Open
cainiaomengxin opened this issue Apr 3, 2024 · 6 comments
Labels

Comments

@cainiaomengxin
Copy link

Describe the bug (required)

The code I run is as follows:
"> library(TwoSampleMR) #Load R package
TwoSampleMR version 0.5.11
[>] New: Option to use non-European LD reference panels for clumping etc
[>] Some studies temporarily quarantined to verify effect allele
[>] See news(package = 'TwoSampleMR') and https://gwas.mrcieu.ac.uk for further details

options(ieugwasr_api = 'gwas-api.mrcieu.ac.uk/')
library(ieugwasr)
OpenGWAS updates:
Date: 2024-03-07
[>] There is exceptional load on the OpenGWAS servers.
[>] Urgent infrastructure development being performed.
[>] See local options for analysis: https://mrcieu.github.io/gwasvcf/.

Loading the program package: ‘ieugwasr’

The following object is masked from ‘package:TwoSampleMR’:

 ld_matrix

exposure_dat <- extract_instruments(outcomes='eqtl-a-ENSG00000077809',p1 = 5e-06,clump = FALSE)
Error in r$status_code : $ operator is invalid for atomic vectors
OR
Error in tophits_query(id = id, pval = pval, clump = clump, r2 = r2, kb = kb, : There was an error, please contact the developers"

Describe the current behaviour you observe (required)

exposure_dat <- extract_instruments(outcomes='GWAS ID',p1 = 5e-06,clump = FALSE)
OR
exposure_clump <- clump_data(exposure_dat,clump_kb = 10000,clump_r2 = 0.001,clump_p1 = 1,clump_p2 = 1, pop = "EUR")

Describe the behaviour you expect (required)

Hope it can be back up and running.

R code to reproduce the issue (required)

exposure_dat <- extract_instruments(outcomes='GWAS ID',p1 = 5e-06,clump = FALSE)
OR
exposure_clump <- clump_data(exposure_dat,clump_kb = 10000,clump_r2 = 0.001,clump_p1 = 1,clump_p2 = 1, pop = "EUR")

System information

windows

@docZ9
Copy link

docZ9 commented Apr 7, 2024

I met the same problems like you. did you solve this?

@cainiaomengxin
Copy link
Author

I met the same problems like you. did you solve this?

I think it may be that non-local data acquisition is unstable. You can choose local data acquisition.

@docZ9
Copy link

docZ9 commented Apr 7, 2024

I met the same problems like you. did you solve this?

I think it may be that non-local data acquisition is unstable. You can choose local data acquisition.

but my classmate's computer can do it smoothly, i don't know why

@Jiang337
Copy link

Jiang337 commented Apr 7, 2024

I met the same problems like you. did you solve this?

@zjralkc
Copy link

zjralkc commented Apr 9, 2024

try remove the package TwoSampleMR and reinstall it.

@dzhaobio
Copy link

I also ran into this problem. Is this bug newly introduced? Does any release work without this problem? If any, I would like to try. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants