MADPop: MHC Allele-Based Differencing Between Populations

Tools for the analysis of population differences using the Major Histocompatibility Complex (MHC) genotypes of samples having a variable number of alleles (1-4) recorded for each individual. A hierarchical Dirichlet-Multinomial model on the genotype counts is used to pool small samples from multiple populations for pairwise tests of equality. Bayesian inference is implemented via the 'rstan' package. Bootstrapped and posterior p-values are provided for chi-squared and likelihood ratio tests of equal genotype probabilities.

Version: 1.1
Depends: R (≥ 3.0.2), rstan (≥ 2.14.1)
Imports: stats, utils, Rcpp (≥ 0.12.9), methods (≥ 3.3.2)
LinkingTo: StanHeaders (≥, rstan (≥ 2.14.1), BH (≥, Rcpp (≥ 0.12.9), RcppEigen (≥
Suggests: knitr, rmarkdown
Published: 2017-01-18
Author: Martin Lysy [cre, aut], Peter W.J. Kim [aut], Terin Robinson [ctb]
Maintainer: Martin Lysy <mlysy at>
License: GPL-3
NeedsCompilation: yes
CRAN checks: MADPop results


Reference manual: MADPop.pdf
Vignettes: Bayesian Testing of Equal Genotype Proportions between Multiple Populations
Package source: MADPop_1.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel: not available
OS X Mavericks binaries: r-release: MADPop_1.1.tgz, r-oldrel: not available


Please use the canonical form to link to this page.