jennasimit / mgflashfm Goto Github PK
View Code? Open in Web Editor NEWMGflashfm: joint fine-mapping of genetic association signals in several traits amongst multiple population groups.
Home Page: https://jennasimit.github.io/MGflashfm/
MGflashfm: joint fine-mapping of genetic association signals in several traits amongst multiple population groups.
Home Page: https://jennasimit.github.io/MGflashfm/
Hi Dr. Asimit,
I am working on applying MGfm to simulated datasets, which is single trait with two ancestries (groups) scenario. However, basically, I got completely empty results from MGfm on all datasets. I assumed I might wrongfully use MGfm, but I do want to know how to get the PIPs of all the testing SNPs from MGfm, so that I could analyze the results to find out where I got it wrong. For now, MGfm only provided the information/results regarding the credible sets, which are empty.
Thank you in advance. Your help would be greatly appreciated.
Best,
Zikun
Hi Dr. Asimit,
I tried to use MGflashfm on my local Mac, which worked well. My colleague and I found the reason that it didn't work on our cluster is due to "OpenJDK version 1.8.0" used on the cluster. Further, we found that Java is called by the package R2BGLiMS. The R2BGLiMS::JAM function has a parameter (extra.java.arguments) to pass the java arguments ([https://github.com/pjnewcombe/R2BGLiMS/blob/master/R/JAM.R].
When MGflashfm calls the R2BGLiMS::JAM function, it does not include the parameter "extra.java.arguments", as shown in the function calling in [https://github.com/jennasimit/MGflashfm/blob/master/R/flashfm-updated.R], line 23.
jam.results <- R2BGLiMS::JAM(marginal.betas = BETA, trait.variance = Vy,
cor.ref = refG, mafs.ref = mafs.ref, model.space.priors = list(a = 1,
b = length(BETA), Variables = names(BETA)), max.model.dim = maxcv,
n = N, xtx.ridge.term = 0.01, save.path = save.path, n.mil.iter=jam.nM.iter)
The parameter "extra.java.arguments" is omitted in MGflashfm. To increase the java memory allocation for R2BGLiMS::JAM function, the parameter "extra.java.arguments" is needed to be added in "flashfm-updated.R".
It would be greatly appreciated if the package could be updated to address this parameter. Such an update would significantly enhance the package's compatibility with various operating systems. Thank you for considering this request.
Best,
Zikun
Hi Dr. Asimit,
I encountered another issue here. If I switched the option of "maxcv_autocheck" to "F" or "FALSE", the function "JAMdynamic" or "MGFMwithJAM" would return the error message "object 'JAM_output' not found". I have loaded both packages "MGflashfm" and "R2BGLiMS". It seems the function would work only with "maxcv_autocheck" setting to "TRUE". Could you let me know if I did something wrong here? Thank you for your time.
Best,
Zikun
Hello!
Thanks for making this software. I'm trying to use MGfm for single-trait, multi-ancestry fine-mapping.
I'm having a hard time getting the example to work (also having a hard time with my data, but I figured I would start with the example). When I run the following code (taken from the demonstration on the website):
require(MGflashfm)
T1gwas.list <- list(gwas.list[[1]][[1]], gwas.list[[2]][[1]])
N1all <- sapply(Nall,function(x) x[1])
save.path <- '/n/scratch3/users/j/jor6523/mgfm'
mgCS1 <- MGFMwithJAM(T1gwas.list, corX.list, N1all, save.path,cpp=0.99,cred=0.99, maxcv=1, maxcv_stop = 20, maxcv_autocheck = TRUE,NCORES=1,jam.nM.iter=1)
I get the following error message:
Error in JAMcor.tries.maxcv(beta.list[[i]], corX.list[[i]], raf.list[[i]], :
object 'JAM_output' not found
Calls: MGFMwithJAM -> -> lapply -> FUN -> JAMcor.tries.maxcv
Execution halted
Do you have any idea why the example might not be working for me? I installed the package today using a fresh R 4.3.1 on a CentOS Linux machine. I've attached a file with the full output in case that's of any help.
err.txt
Thanks!
Jordan
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.