Open mightyphil2000 opened 3 years ago
I've created a new branch called instrument_from_gwascatalog that extracts genetic associations from the EBI GWAS catalog and formats these into the expected exposure format for the harmonise_data function: https://github.com/MRCIEU/TwoSampleMR/tree/instrument_from_gwascatalog
@mightyphil2000 Hello - Is there any documentation showing how to use this function? Thank you.
Hi Naomi
The function is still in development but to use it you have to switch to the instrument_from_gwascatalog branch of the github repository.
The function is defined within instruments.R. The name of the function is : extract_instruments_gwas_catalog(trait=NULL,efo=NULL,efo_id=NULL,map_association_to_study=TRUE)
From: Naomi Huntley @.> Sent: 29 April 2024 22:47 To: MRCIEU/TwoSampleMR @.> Cc: Philip Haycock @.>; Mention @.> Subject: Re: [MRCIEU/TwoSampleMR] Design instruments by calling the GWAS catalog API (#297)
@mightyphil2000https://github.com/mightyphil2000 Hello - Is there any documentation showing how to use this function? Thank you.
— Reply to this email directly, view it on GitHubhttps://github.com/MRCIEU/TwoSampleMR/issues/297#issuecomment-2083739814, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACSDAPQAVLGS7RZBMD6UTFLY725W3AVCNFSM5B44Z3T2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBYGM3TGOJYGE2A. You are receiving this because you were mentioned.Message ID: @.***>
Describe the feature you would like to see
A new function that creates instruments using the GWAS catalog by calling the gwasrapidd R package (this package accesses the GWAS catalog API) https://github.com/ramiromagno/gwasrapidd This could replace the current system whereby we load a local copy of the GWAS catalog using the mrinstruments package. This would allow one to design instruments using the most up-to-date version of the GWAS catalog.
Describe the anticipated value of this feature to the wider research community
It would allow users to create instruments based on the latest version of the GWAS catalog. We wouldn't have to periodically download and format the GWAS catalog for incorporation into the mrinstruments package.
Contribute a solution
I've already created a function for the CheckSumStats package that calls gwasrapidd that could be repurposed for this new instrument function