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

[BUG]: Error in mv_extract_exposures_local() #562

Open
trprice08 opened this issue Sep 23, 2024 · 0 comments
Open

[BUG]: Error in mv_extract_exposures_local() #562

trprice08 opened this issue Sep 23, 2024 · 0 comments
Labels

Comments

@trprice08
Copy link

I am attempting to use local data for MVMR. I use the mv_extract_exposures_local function; package runs through all my traits and assesses LD structure. It runs through all the traits, but gives the following error at the end of running through my traits and identifying which variants to keep/discard.

All required function components are in my dataset.
I have attempted running only lead SNPs for each locus and running datasets with all SNPs present (no LD restrictions). With both iterations, I get the same errors.

The last few lines of my console output (including the error) are below:
Clumping TNFRSF6B, 309 variants, using EUR population reference
Removing 308 of 309 variants due to LD with other variants or absence from LD reference panel
Identified 15 hits for trait CD160_log
Please look at vignettes for options on running this locally if you need to run many instances of this command.
Clumping 1, 15 variants, using EUR population reference
Removing 1 of 15 variants due to LD with other variants or absence from LD reference panel
Identified 14 variants to include
Error in mv_extract_exposures_local("/Users/Tara08/Downloads/2SampleMR_UKBB_CRIC_allSNPs/Data/UKBB_proteins/sig_SNPs/All_withRSID_IDexposure.tsv", :
length(unique(d1$id)) == length(unique(id_exposure)) is not TRUE

@trprice08 trprice08 added the bug label Sep 23, 2024
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

1 participant