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

LinAlgError: Array must not containinfs or NaNs #194

Open
yyfyyfzkyzky opened this issue Nov 13, 2023 · 5 comments
Open

LinAlgError: Array must not containinfs or NaNs #194

yyfyyfzkyzky opened this issue Nov 13, 2023 · 5 comments

Comments

@yyfyyfzkyzky
Copy link

I've been able to run MTAG and get results without any problems before. Only when I use GCST009379 on the GWAS catalog as trait1, it gives me an error no matter which GWAS I use for trait2. The error is as follows:
File "/home/tmj/miniconda3/envs/pgwas/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 218, in _assertFinite
raise LinAlgError("Array must not contain infs or NaNs")
But I went by what others have asked before, and the usual QC. I made sure that the 3 columns pval, z, and n of trait1 did not have NA or Inf, or character formats. But I am still reporting errors.
log.txtGCST009379.ebi-a-GCST006414.log
GWAS summary data: http://diagram-consortium.org/downloads.html (T2D GWAS meta-analysis - Unadjusted for BMI Published in Mahajan et al (2018b))

Please what can I do to fix this problem?

@paturley
Copy link
Collaborator

paturley commented Nov 13, 2023 via email

@yyfyyfzkyzky
Copy link
Author

chr snpid bpos a1 a2 pval
Min. : 1.000 Length:15085062 Min. : 173 Length:15085062 Length:15085062 Min. :0.0000
1st Qu.: 4.000 Class :character 1st Qu.: 32516319 Class :character Class :character 1st Qu.:0.1900
Median : 8.000 Mode :character Median : 69458674 Mode :character Mode :character Median :0.4500
Mean : 8.679 Mean : 78853802 Mean :0.4597
3rd Qu.:13.000 3rd Qu.:114847980 3rd Qu.:0.7200
Max. :22.000 Max. :249233024 Max. :0.9900
freq n z
Min. :0.0001 Min. :898130 Min. :-38.6667
1st Qu.:0.0014 1st Qu.:898130 1st Qu.: -0.6182
Median :0.0300 Median :898130 Median : 0.1429
Mean :0.2823 Mean :898130 Mean : 0.1295
3rd Qu.:0.5900 3rd Qu.:898130 3rd Qu.: 0.8889
Max. :0.9900 Max. :898130 Max. : 38.6667

min(gcst9379$pval) = 1.136351e-322

@paturley
Copy link
Collaborator

paturley commented Nov 13, 2023 via email

@yyfyyfzkyzky
Copy link
Author

length(gcst9379$n)
[1] 15085062
length(gcst9379$z)
[1] 15085062
nrow(gcst9379)
[1] 15085062

@paturley
Copy link
Collaborator

paturley commented Nov 14, 2023 via email

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