-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error: the V matrix is not invertible. #72
Comments
Hi, |
Hi, There are 348,924 rows in my .grm.sp and 140,831 rows in my .grm.id file. To generate my sparse GRM I using the KING software to get relationships to the third degree which generated a .kin0 file. I then used this pedfam.R script (https://github.com/MRCIEU/Lifecourse-GWAS/blob/main/resources/genotypes/pedFAM.R) to generate my sparse grm. |
Hi, |
Hi, Yes in this cohort we would expect to see a high amount of relatedness. Would this be the issue that is causing the error? |
Hi,
|
Thank you for your suggestion! I have made the sparse GRM using the standard strategy in fastGWA that you recommended using: However when running fastGWA-lmm again I get this error 'Error: not enough valid null SNPs (<100). You may check if too variants are removed by a filter, e.g., MAF.' Would this be something to do with the --sparse-cutoff flag I've used? Thank you for your help! |
Hi, |
Hi, Yes the sp_grm.grm.sp file has 92,644,627 rows and the sp_grm.grm.id file has 140,831 rows. For the genotype data I have filtered by MAF > 0.01 and INFO > 0.8. Also, here is my log file when running fastGWA-lmm: --bfile chr1_22_filtered The program will be running with up to 10 threads. Source Variance SE Heritability = 0.0175098 (Pval = 0.0111703) Tuning parameters using 2000 null SNPs... Thank you for your help. |
Hi, We recommend using only hapmap 3 common SNPs (after standard QC) to generate the GRM. In addition, please make sure the genetic ancestry of your data are homogeneous (i.e., the individuals used for GRM/GWAS analysis should come from the same genetic ancestry). Admixed individuals or individuals from a different genetic ancestry background should be analyzed separately, because we cannot generate an appropriate GRM when there are multiple ancestry backgrounds in the dataset. |
Hi,
I have been running fastGWA-mlm and have been getting the error 'the V matrix is not invertible.'
Prior to running the GWAS I have rank inverse normal transformed by continuous variables and then adjusted by age and sex. I have only added PCs as my quantitative covariate to the GWAS analysis. Could you please advise me on how to troubleshoot this issue.
Thank you!
Output below:
Options:
--bfile chr1_22_filtered
--grm-sparse sp-grm
--fastGWA-mlm
--pheno ldlc_rint_adjusted.txt
--qcovar pc.txt
--thread-num 10
--out ldlc_assoc
The program will be running with up to 10 threads.
Reading PLINK FAM file from [chr1_22_filtered.fam]...
140831 individuals to be included from FAM file.
Reading phenotype data from [ldlc_rint_adjusted.txt]...
34168 overlapping individuals with non-missing data to be included from the phenotype file.
34168 individuals to be included. 0 males, 0 females, 34168 unknown.
Reading PLINK BIM file from [chr1_22_filtered.bim]...
7941687 SNPs to be included from BIM file(s).
Reading quantitative covariates from [pc.txt].
7 covariates of 140831 samples to be included.
34168 overlapping individuals with non-missing data to be included from the covariate file(s).
Reading the sparse GRM file from [sp_grm]...
After matching all the files, 34168 individuals to be included in the analysis.
Estimating the genetic variance (Vg) by fastGWA-REML (grid search)...
Error: the V matrix is not invertible.
An error occurs, please check the options or data
The text was updated successfully, but these errors were encountered: