Adjust MAGMA Z-statistic from .genes.out files
adjust_zstat_magma( magma, drop_MHC = TRUE, method = "bonferroni", model = NULL, formula = ZSTAT ~ NSNPS + logNSNPS + NPARAM + logNPARAM + GENELEN + logGENELEN, verbose = TRUE, ... )
magma | MAGMA .genes.out data.table produced by map.snps.to.genes. |
---|---|
drop_MHC | Drop genes from the MHC (Major Histocompatibility Complex) region. |
method | correction method, a |
model | Statistical model to use. Defaults to lm. |
formula | Formula to use in |
... | Additional arguments passed to |
Used when you want to directly analyse the gene-level Z-scores corrected for gene length, etc.