You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi developer,
I realized that BUGWAS converts GEMMA output to another p-value instead of using the original one. Can you explain why do we need to do this conversion? Why do it in different ways for biallelic and tritetra allelic SNPs?
The relevant codes are as below.
############################################
Hi developer,
I realized that BUGWAS converts GEMMA output to another p-value instead of using the original one. Can you explain why do we need to do this conversion? Why do it in different ways for biallelic and tritetra allelic SNPs?
The relevant codes are as below.
############################################
For biallelic SNPs
LH1 <- lmm$logl_H1
D <- sapply(LH1, get_deviance, lognull=lambda.lognull["lognull"], USE.NAMES=FALSE)
pvals <- pchisq(as.numeric(D), 1, low=F)
For tritetra allelic SNPs
LH1 <- as.numeric(sapply(lmm, getLH1, USE.NAMES=FALSE))
D <- sapply(LH1, get_deviance, lognull=lognull, USE.NAMES=FALSE)
pvals <- apply(data.frame("D" = D, "num.alleles" = num.alleles), 1, get_pvals)
############################################
Thanks
The text was updated successfully, but these errors were encountered: