gap1.6 package

Genetic Analysis Package

ReadGRMBin

A function to read GRM binary files

revStrand

Allele on the reverse strand

runshinygap

Start shinygap

s2k

Statistics for 2 by K table

sentinels

Sentinel identification from GWAS summary statistics

SNP

Functions for single nucleotide polymorphisms

snptest_sample

A utility to generate SNPTEST sample file

tscc

Power calculation for two-stage case-control design

whscore

Whittemore-Halpern scores for allele-sharing

WriteGRM

A function to write GRM file

WriteGRMBin

A function to write GRM binary file

xy

Conversion of chromosome names to strings

a2g

Allele-to-genotype conversion

circos.mhtplot

circos Manhattan plot with gene annotation

ab

Test/Power calculation for mediating effect

AE3

AE model using nuclear family trios

allele.recode

Allele recoding

asplot

Regional association plot

b2r

Obtain correlation coefficients and their variance-covariances

BFDP

Bayesian false-discovery probability

bt

Bradley-Terry model for contingency table

ccsize

Power and sample size for case-cohort design

chow.test

Chow's test for heterogeneity in two regressions

chr_pos_a1_a2

SNP id by chr:pos+a1/a2

ci2ms

Effect size and standard error from confidence interval

circos.cis.vs.trans.plot

circos plot of cis/trans classification

circos.cnvplot

circos plot of CNVs.

h2GE

Heritability and its variance when there is an environment component

circos.mhtplot2

Another circos Manhattan plot

cis.vs.trans.classification

A cis/trans classifier

cnvplot

genomewide plot of CNVs

comp.score

score statistics for testing genetic linkage of quantitative trait

cs

Credible set

ESplot

Effect-size plot

h2l

Heritability under the liability threshold model

fbsize

Sample size for family-based linkage and association design

FPRP

False-positive report probability

g2a

Conversion of a genotype identifier to alleles

gap

Genetic analysis package

gc.em

Gene counting for haplotype analysis

gc.lambda

Estimation of the genomic control inflation statistic (lambda)

gcontrol

genomic control

invnormal

Inverse normal transformation

ixy

Conversion of chrosome name from strings

gcontrol2

genomic control based on p values

gcp

Permutation tests using GENECOUNTING

genecounting

Gene counting for haplotype analysis

geno.recode

Genotype recoding

get_b_se

Get b and se from AF, n, and z

get_pve_se

Get pve and its standard error from n, z

KCC

Disease prevalences in cases and controls

get_sdy

Get sd(y) from AF, n, b, se

gif

Kinship coefficient and genetic index of familiality

grid2d

Two-dimensional grid

h2_mzdz

Heritability estimation according to twin correlations

h2.jags

Heritability estimation based on genomic relationship matrix using JAG...

h2G

Heritability and its variance

hap.control

Control for haplotype reconstruction

hap.em

Gene counting for haplotype analysis

hap

Haplotype reconstruction

hap.score

Score statistics for association of traits with haplotypes

hmht.control

Controls for highlights

htr

Haplotype trend regression

mht.control

Controls for mhtplot

mhtplot

Manhattan plot

mhtplot.trunc

Truncated Manhattan plot

hwe.cc

A likelihood ratio test of population Hardy-Weinberg equilibrium for c...

hwe.hardy

Hardy-Weinberg equilibrium test using MCMC

hwe.jags

Hardy-Weinberg equlibrium test for a multiallelic marker using JAGS

hwe

Hardy-Weinberg equlibrium test for a multiallelic marker

inv_chr_pos_a1_a2

Retrieval of chr:pos+a1/a2 according to SNP id

kin.morgan

kinship matrix for simple pedigree

klem

Haplotype frequency estimation based on a genotype table of two multia...

labelManhattan

Annotate Manhattan or Miami Plot

LD22

LD statistics for two diallelic markers

LDkl

LD statistics for two multiallelic markers

log10p

log10(p) for a normal deviate z

log10pvalue

log10(p) for a P value including its scientific format

logp

log(p) for a normal deviate z

mhtplot2

Manhattan plot with annotations

makeped

A function to prepare pedigrees in post-MAKEPED format

masize

Sample size calculation for mediation analysis

MCMCgrm

Mixed modeling with genetic relationship matrices

METAL_forestplot

forest plot as R/meta's forest for METAL outputs

metap

Meta-analysis of p values

metareg

Fixed and random effects model for meta-analysis

mia

Multiple imputation analysis for hap

miamiplot

Miami plot

miamiplot2

Miami Plot

mr_forestplot

Mendelian Randomization forest plot

mvmeta

Multivariate meta-analysis based on generalized least squares

mr

Mendelian randomization analysis

mtdt

Transmission/disequilibrium test of a multiallelic marker

mtdt2

Transmission/disequilibrium test of a multiallelic marker by Bradley-T...

muvar

Means and variances under 1- and 2- locus (biallelic) QTL model

pbsize

Power for population-based association design

pbsize2

Power for case-control association design

pedtodot_verbatim

Pedigree-drawing with graphviz

pedtodot

Converting pedigree(s) to dot file(s)

pfc

Probability of familial clustering of disease

pfc.sim

Probability of familial clustering of disease

pgc

Preparing weight for GENECOUNTING

plot.hap.score

Plot haplotype frequencies versus haplotype score statistics

print.hap.score

Print a hap.score object

pvalue

P value for a normal deviate

qqfun

Quantile-comparison plots

qqunif

Q-Q plot for uniformly distributed random variable

read.ms.output

A utility function to read ms output

qtl2dplot

2D QTL plot

qtl2dplotly

2D QTL plotly

qtl3dplotly

3D QTL plot

qtlClassifier

A QTL cis/trans classifier

qtlFinder

Distance-based signal identification

ReadGRM

A function to read GRM file

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).

  • Maintainer: Jing Hua Zhao
  • License: GPL (>= 2)
  • Last published: 2024-08-27