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

Inf and NA in the results #22

Open
Kai6662 opened this issue Mar 23, 2021 · 2 comments
Open

Inf and NA in the results #22

Kai6662 opened this issue Mar 23, 2021 · 2 comments

Comments

@Kai6662
Copy link

Kai6662 commented Mar 23, 2021

Hi,

My results have amounts of Inf and NA. Why did it happen like that?
image

Best regards,
Kai

@Rick-Chen-PKU
Copy link

I have the same problem and hope the developers pay attention to this issue

@zh-zhang1984
Copy link

I have the same issues in running correlation between BMI and HDL:

library(HDL)
HDL_exp_dat <- HDL_exp %>% 
  mutate( N = 403943) %>% 
  dplyr::select(
    SNP,N,
    A1 = effect_allele.exposure,A2 = other_allele.exposure,
    N,
    b = beta.exposure, se = se.exposure,
    Z = beta.exposure/se.exposure
  )
BMI_exp_dat <- BMI_exp %>% 
  mutate(N = 681275) %>% 
  dplyr::select(
    SNP,
    A1 = effect_allele.exposure,A2 = other_allele.exposure,
    N,
    b = beta.exposure, se = se.exposure,
    Z = beta.exposure/se.exposure
  )
LD.path <- "/Users/zhangzhongheng/Documents/2022/GWAS_sepsis/UKB_imputed_SVD_eigen99_extraction"
LD.path <- "/Users/zhangzhongheng/Documents/2022/GWAS_sepsis/UKB_imputed_hapmap2_SVD_eigen99_extraction"
res.HDL <- HDL.rg(HDL_exp_dat, BMI_exp_dat, LD.path)
res.HDL
$rg
    
Inf 

$rg.se
[1] NaN

$P
    
NaN 

$estimates.df
                        Estimate           se
Heritability_1      0.000000e+00 0.000000e+00
Heritability_2      0.000000e+00 0.000000e+00
Genetic_Covariance  1.224554e-07 7.707554e-08
Genetic_Correlation          Inf          NaN

$eigen.use
[1] 0.9

The same two GWAS, when running with lds, is reporting a negative correlation.

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

3 participants