(1) Convert your output to chi-squared values
(2) Calculate lambda gc (λgc)
If analysis results your data follows the normal chi-squared distribution, the expected λgc value is 1. If the λgc value is greater than 1, then this may be evidence for some systematic bias that needs to be corrected in your analysis.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For z-scores, just square them | |
chisq <- data$z^2 | |
# For chi-squared values, keep as is | |
chisq <- data$chisq | |
# For p-values, calculate chi-squared statistic | |
chisq <- qchisq(1-data$pval,1) |
(2) Calculate lambda gc (λgc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
median(chisq)/qchisq(0.5,1) |
If analysis results your data follows the normal chi-squared distribution, the expected λgc value is 1. If the λgc value is greater than 1, then this may be evidence for some systematic bias that needs to be corrected in your analysis.
How about for imputed data? Should we thin the markers to retain only SNPs with minimal-no LD first? Or the GIF from pre-imputed plink runs (with --adjust) can be used? Thank you.
ReplyDeleteThis comment has been removed by the author.
ReplyDelete