Skip to content
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

Cholesky factorization failed #109

Open
wangfan860 opened this issue Mar 11, 2024 · 1 comment
Open

Cholesky factorization failed #109

wangfan860 opened this issue Mar 11, 2024 · 1 comment

Comments

@wangfan860
Copy link

Hello GENESIS Team,

I've encountered an issue with the fitNullModel function. I successfully ran fitNullModel when fitting a model with only an outcome and a covariate. However, when I attempt to include even a single Principal Component as a covariate, the function fails.

Here is the error:

Error in .local(x, ...) : 
  internal_chm_factor: Cholesky factorization failed
Calls: fitNullModel ... .computeSigmaQuantities -> chol -> chol -> .local -> .Call
In addition: Warning message:
In .local(x, ...) :
  Cholmod warning 'not positive definite' at file ../Cholesky/t_cholmod_rowfac.c, line 430
Execution halted

I'm wondering why the PCs are a problem? Are there any known compatibility issues with certain types of data or preprocessing steps that might affect the inclusion of PCs in the model?

Any insights or suggestions you could offer would be greatly appreciated. Thank you so much!!

@amstilp
Copy link
Contributor

amstilp commented Mar 11, 2024

Thanks for asking. We've seen errors like that before when covariates are collinear, but I would be surprised if a PC were collinear with your other covariate. Can you give us some more information about how you're trying to run fitNullModel?

  • What version of GENESIS are you running?
  • What is the function call to fitNullModel? e.g., are you including a relatedness matrix or using heterogeneous residual variance?
  • How did you create the covariates, PCs, and (if using) relatedness matrix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants