You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please make sure that this is a bug! If you have questions about how to use TwoSampleMR please use the Discussions function instead.
Describe the bug (required)
Hi, I am trying to run an MR analysis using TwoSampleMR (version 5.11.0).
First, I read in exposure (protein - GDF15) and outcome data (dementia) and formatted them using read_exposure_data() and read_outcome_data(),
Then, I subsetted significant GWAS using the threshold p< 5*10^(-8)) and filtered significant proteins in outcome GWAS before clumping.
The first issue found is that when I tried filtering significant proteins in outcome GWAS, all the observations were removed.
So I skipped the step of filtering for significant proteins in outcome GWAS, and when for clumping using clump_data() function but I receive error message saying
"Please look at vignettes for options on running this locally if you need to run many instances of this command.
Clumping NA, 0 variants, using EUR population reference
Clumping , 0 variants, using EUR population reference
Error in res[[i]] <- ld_clump_api(x, clump_kb = clump_kb, clump_r2 = clump_r2, :
attempt to select less than one element in integerOneIndex"
Provide a clear and concise description of what the bug is
R code to reproduce the issue (required)
Please provide a minimal code snippet that will reproduce this issue
Please make sure that this is a bug! If you have questions about how to use TwoSampleMR please use the Discussions function instead.
Describe the bug (required)
Hi, I am trying to run an MR analysis using TwoSampleMR (version 5.11.0).
First, I read in exposure (protein - GDF15) and outcome data (dementia) and formatted them using read_exposure_data() and read_outcome_data(),
Then, I subsetted significant GWAS using the threshold p< 5*10^(-8)) and filtered significant proteins in outcome GWAS before clumping.
The first issue found is that when I tried filtering significant proteins in outcome GWAS, all the observations were removed.
So I skipped the step of filtering for significant proteins in outcome GWAS, and when for clumping using clump_data() function but I receive error message saying
"Please look at vignettes for options on running this locally if you need to run many instances of this command.
Clumping NA, 0 variants, using EUR population reference
Clumping , 0 variants, using EUR population reference
Error in res[[i]] <- ld_clump_api(x, clump_kb = clump_kb, clump_r2 = clump_r2, :
attempt to select less than one element in integerOneIndex"
Provide a clear and concise description of what the bug is
R code to reproduce the issue (required)
Please provide a minimal code snippet that will reproduce this issue
#STEP2: To get the largest number of IVs, filter the protein_sig in outcome GWAS before clumping
#STEP3: Clump the Significant SNPs
Could you please help me solve this issue?
The same code ran perfectly fine before but all of sudden it is not working.
Thank you.
The text was updated successfully, but these errors were encountered: