-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fitting PCs with nPC vs CV #93
Comments
Thank you for the question. |
Hi yes I have double-checked that the order of individuals in consistent. I just noticed I am running into a problem with coding when I double checked. If I add PC as covariates using model.matrix, I end up with an extra variable in covariates (seems to be adding an intercept variable). I think this is what led to the results in my original post and is not the correct coding for my needs. If I add PC as covariates using bigmemory::as.matrix (as outlined on the main GitHub page). The first row of PCs is removed and I end up with 1 less row than that total number of individuals so the GWAS analysis will not run. If I adding PC as covariates by just attaching as a matrix, the PC matrix seem so upload with no problem. The associations are still different from using nPC but closer than my first run. My questions are:
|
Thank you for the detailed descriptions. |
Hi I am conducting FarmCPU GWAS and would like to understand the difference in fitting PCs using nPC vs CV. I read in the rMPV manual (cran repository) that when using nPC FarmCPU, the PCs are fitted as fixed effects.Is this correct? My understanding of GWAS models is that we want to fit PCs as covariates to ensure association between SNPs and trait are not confounded by pop structure.
My question is which argument should I use to add principle components to the model (nPC.FarmCPU or CV.FarmCPU)? I noticed associations slightly changed when performing GWAS with the 2 different arguments. Ive attached images of the resulting Manhattan and Q-Q plots.
Thank you in advance for your help.
Kindly,
Jandeh
The text was updated successfully, but these errors were encountered: