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

A question about the function“MRlap” #15

Open
Shiyuan-228 opened this issue Nov 27, 2023 · 8 comments
Open

A question about the function“MRlap” #15

Shiyuan-228 opened this issue Nov 27, 2023 · 8 comments

Comments

@Shiyuan-228
Copy link

Hi,
When I use the function “MRlap”,there is always a problem:
Error in tidy_inputGWAS(exposure, need_chrpos, verbose) : 'HeaderGWAS' not found
OR
Error in h (simpleError (msg, call)):
An error occurred in evaluating the 'x' parameter when selecting a method for the't 'function: non integrated parameter
After referring to your suggestion, I have reinstalled "MRlap" package, but there is still a problem:Error in h (simpleError (msg, call)):
An error occurred in evaluating the 'x' parameter when selecting a method for the't 'function: non integrated parameter.
The data I used has already been uploaded to the image
code process
EXP OUTCOME

Please advise.Thanks

@lcpilling
Copy link
Contributor

Hi. I deleted my first response actually as I realise I was wrong: Ninon's function can take data frame as the input (so my suggestion would not fix the issue).

I've downloaded and had a quick look at the FinnGen GWAS and it looks fine. Thanks for providing your code to show how to renamed the columns etc. I do not know what would produce your error, You are using quite a strict p-value threshold of 5e-10 -- does your exposure definitely have SNPs below this? Is the heritability high enough to perform genetic correlation? These are just suggestions. Ninon may have the better answer as she is the expert here - I am merely a keen user of the package!

@Shiyuan-228
Copy link
Author

Shiyuan-228 commented Nov 29, 2023 via email

@xz-xxz
Copy link

xz-xxz commented Aug 2, 2024

@Shiyuan-228 Hi. Have you found a solution to this?

1 similar comment
@yangyizhixiaomaomi
Copy link

@Shiyuan-228 Hi. Have you found a solution to this?

@lcpilling
Copy link
Contributor

Hi @yangyizhixiaomaomi - I've not seen this error before when using it myself - do you have a reproducible example?

@yangyizhixiaomaomi

This comment was marked as resolved.

@lcpilling
Copy link
Contributor

lcpilling commented Aug 23, 2024

Are you providing the full GWAS summary statistics files? Looks like you might only be passing the instruments like for TwoSampleMR... MRlap need the whole GWAS file for both exposure and outcome.

It automatically prunes to find the lead SNPs to use as instruments, then uses LDSC to adjust for sample overlap.

If you want to specify the lead SNPs you want it to use, set do_pruning=FALSE and provide a vector of the RSIDs with user_SNPsToKeep=rsids

@yangyizhixiaomaomi
Copy link

@lcpilling thank you vary much! In fact,when I try to use the whole GWAS and delete unnecessary column,it works.Thank you

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

4 participants