gap: Genetic Analysis Package

As first reported [Zhao, J. H. 2007. "gap: Genetic Analysis Package". J Stat Soft 23(8):1-18. <doi:10.18637/jss.v023.i08>], it is designed as an integrated package for genetic data analysis of both population and family data. Currently, it contains functions for sample size calculations of both population-based and family-based designs, probability of familial disease aggregation, kinship calculation, statistics in linkage analysis, and association analysis involving genetic markers including haplotype analysis with or without environmental covariates. Over years, the package has been developed in-between many projects hence also in line with the name (gap).

Version: 1.5-3
Depends: R (≥ 2.10), gap.datasets (≥ 0.0.6)
Imports: dplyr, ggplot2, plotly, Rdpack
Suggests: BradleyTerry2, DiagrammeR, DOT, MASS, Matrix, MCMCglmm, R2jags, bdsmatrix, bookdown, calibrate, circlize, coda, cowplot, coxme, foreign, genetics, grid, haplo.stats, htmlwidgets, jsonlite, kinship2, knitr, lattice, magic, manhattanly, matrixStats, meta, metafor, nlme, pedigree, pedigreemm, plotrix, readr, reshape, rmarkdown, rms, survival
Enhances: shiny
Published: 2023-08-26
DOI: 10.32614/
Author: Jing Hua Zhao ORCID iD [aut, cre] (0000-0003-4930-3582), Kurt Hornik [ctb], Brian Ripley [ctb], Uwe Ligges [ctb], Achim Zeileis [ctb]
Maintainer: Jing Hua Zhao <jinghuazhao at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: yes
Citation: gap citation info
Materials: README ChangeLog
In views: MetaAnalysis
CRAN checks: gap results


Reference manual: gap.pdf
Vignettes: gap
Shiny for Genetic Analysis Package (gap) Designs
gap: genetic analysis package


Package source: gap_1.5-3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): gap_1.5-3.tgz, r-oldrel (arm64): gap_1.5-3.tgz, r-release (x86_64): gap_1.5-3.tgz, r-oldrel (x86_64): gap_1.5-3.tgz
Old sources: gap archive

Reverse dependencies:

Reverse imports: BayesianTools, DHARMa, FamAgg, PopGenReport, pould
Reverse suggests: rehh


Please use the canonical form to link to this page.