Replies: 1 comment
-
I am having the same issue I am trying to perform clumping using the 1000 genomes as reference dataset. Here is my code clump_data( Error in api_query("ld/clump", query = list(rsid = dat[["rsid"]], pval = dat[["pval"]], : I tried another approach. Running local LD operations. To get a path to plink you can do the following:devtools::install_github("explodecomputer/genetics.binaRies") To get the same LD reference dataset that is used by the API, you can download it directly from here:http://fileserve.mrcieu.ac.uk/ld/1kg.v3.tgzand tried this orru_clump <- ld_clump( The outcome is Clumping ebi-a-GCST90001942, 15141982 variants, using EUR population reference 65210 MB RAM detected; reserving 32605 MB for main workspace. |
Beta Was this translation helpful? Give feedback.
-
Hi, sometimes the server was fine one week ago, but recently the server is busy and always show the following message:
Clumping sJAd2e, 2 variants, using EUR population reference
Server code: 503; Server is possibly experiencing traffic, trying again...
Server code: 502; Server is possibly experiencing traffic, trying again...
Server code: 502; Server is possibly experiencing traffic, trying again...
Server code: 502; Server is possibly experiencing traffic, trying again...
Server code: 502; Server is possibly experiencing traffic, trying again...
Server code: 502; Server is possibly experiencing traffic, trying again...
Server error: 502
Failed to retrieve results from server. See error status message in the returned object and contact the developers if the problem persists.
Removing 2 of 2 variants due to LD with other variants or absence from LD reference panel
Thus I decided to run ld_clump locally as described on https://rdrr.io/github/MRCIEU/gwasglue/f/vignettes/mr.Rmd. I got an error Saying : Error in file(file, "rt") : cannot open the connection
Here is the code: mr_dat_exp_clumped <- ieugwasr::ld_clump(mr_dat_exp, clump_r2 = 0.8, plink_bin=get_plink_binary(), bfile="C:/data_maf0.01_rs_ref",clump_kb=1000,clump_p=5E-2)
Here is the file of "mr_dat_exp":
SNP pval.exposure beta.exposure chr.exposure pos.exposure other_allele.exposure effect_allele.exposure se.exposure
1 rs140121611 2e-06 3.3 chr15 75762711 A G 0.649873
2 rs191669673 2e-06 3.3 chr15 75788091 T C 0.649873
exposure mr_keep.exposure pval_origin.exposure id.exposure eaf.exposure pval id
1 Brain - Spinal cord (cervical c-1) TRUE reported sJAd2e NA 2e-06 Brain - Spinal cord (cervical c-1)
2 Brain - Spinal cord (cervical c-1) TRUE reported sJAd2e NA 2e-06 Brain - Spinal cord (cervical c-1)
rsid
1 rs140121611
2 rs191669673
I also downloaded the plink, but the error popped out.
Beta Was this translation helpful? Give feedback.
All reactions