Hi all,
I ran into problem using userGWAS function.
Problem 1:
Before running full userGWAS function, I tried to run first few SNPs as recommended in the tutorial video. I ran first 50 SNPs and everything’s fine except that all the SNPs have warning as below:
"lavaan WARNING: The variance-covariance matrix of the estimated parameters (vcov) does not appear to be positive definite! The smallest eigenvalue (= -3.275359e-11) is smaller than zero. This may be a symptom that the model is not identified."
Do you have any idea on what is causing this warning? Is it safe to ignore these warnings?
Problem 2:
If I run first 100 SNPs instead of 50 SNPs, then I get an error message as below,
Error in { : task 30 failed - "Lapack routine dgesv: system is exactly singular: U[29,29] = 0" Calls: userGWAS -> %dopar% -> <Anonymous> Execution halted
What does it mean by system is exactly singular?
I have attached userGWAS output (L_50SNPs.RData), LDSC output (G122_Q_ldsc.RData), and first 100 SNPs of sumstat output (Q_sumstat.RData).
Additionally, below is the model specification,
model <- 'F1 =~ NA*V3 + V4 + V5
F2 =~ NA*V8 + V9
F3 =~ NA*V6 + V7
F4 =~ NA*V1 + V2
L =~ NA*F1 + F2 + F3 + F4
V7 ~~ a*V7
V5 ~~ b*V5
a > 0.001
b > 0.001
L ~ SNP '
Thanks,
Austin