mixmapTest(data.set, pval="pval", snp="snp", gene="gene",
coord="coord", chr="chr", alpha = 0.05)
MixMAP
.data.frame
with a row for each gene containing gene symbol, posterior estimates for all gene level effects, variance used in intervals, upper bound of one sided interval, the number of SNPs in each gene, the chromsome of the SNP, the location coordinate of the SNP, the gene-level p-value, the Bonferroni adjusted gene-level p-value, and the q-value based on Banjamini-Hochberg fasle discovery rate.data.frame
with a row for each gene containing gene symbol, posterior estimates for all gene level effects, variance used in intervals, upper bound of one sided interval, the number of SNPs in each gene, the chromsome of the SNP, the location coordinate of the SNP, the gene-level p-value, the adjusted gene-level p-value, the name of the SNP with the smallest p-value, the minimum p-value in the gene, and a 5 number summary of the p-values within each genemer
object containing all of the model output information, including parameter estimates, from the lmer
function.Note about SNPs in genes: It is possible for individual SNPs to be located in two overlapping genes. In this case, the user can choose, when creating the input file, to list that SNP in both genes, only one of the genes, or simply ignore SNPS that are not in a unique gene. If the user chooses to list a SNP in more than one gene, the SNP must have multiple rows in the input file with a different gene in each row. If the user only has SNP names and p-values, gene name must be appended to the file. The user can either use their own file to append gene name, base pair, and chromosome. The R package biomaRt located in bioconductor is a good source for linking SNPs to genes.
Matthews, G.J. and Foulkes, A.S. (2015) ``{MixMAP}: An {R} Package for Mixed Modeling of Meta-Analysis $p$ Values in Genetic Association Studies." Journal of Statistical Software. 66(3): 1-11.
library(MixMAP)
#Load data
#This data has been prepared to be used as input to the MixMAP function
data(MixMAP_example)
#Run MixMAP
MixOut<-mixmapTest(MixMAP_example,pval="GC.Pvalue",snp="MarkerName",
chr="Chr",coord="Coordinate",gene="Gene")
#Display first ten detected genes
summary(MixOut)
#MixManhattan Plot
plot(MixOut)
Run the code above in your browser using DataLab