Use an in-house database for Mendelian Randomization

My research lab is focused on maize metabolomics analysis and we were wondering if we can use R to hook up the mendelian randomization function to one of our own in-house GWAS databases. It seems like the functionality is currently hooked up to a database of a bunch of human-related studies (not maize).

I have a decent understanding of R and have already ported the Statistical Analysis and Biomarker Analysis MetaboanalystR functions to R to do more customized analysis offline of the website.

Where should I start to try to get the Mendelian randomization into R, using our own databases? I’m not exactly sure which line of code is accessing the current databases… maybe it’s the SetMRMethod(); line? not sure. Any help would be appreciated, thank you for this excellent software!