neurogenomics/MAGMA_Celltyping

Overadjustment for multiple testing?

AMCalejandro opened this issue · 2 comments

results$q <- stats::p.adjust(results$P, method = "bonferroni")

Maybe set n = dim(results)[1] / length(unique(results$GCOV_FILE))

?

If I am understanding correctly, looking at the beginning of the magma_tileplot.R function, the results argument should be a data frame having results from at least two different association tests.
Therefore, if you calculate q as you are suggesting, we would be bonferroni adjusting across studies, but maybe it is best to correct for multiple testing per study independently?

Actually, our thinking was that it was most appropriate to apply multiple testing across all tests that were performed, regardless of what GWAS they come from (which I assume it what you mean by "study"). For example, if you run MAGMA.Celltyping on 100 GWAS and only apply multiple testing correction within each GWAS, you would be undercorrecting for the number of tests that you actually performed.