Learn R Programming

⚠️There's a newer version (1.6) of this package.Take me there.

gap (version 1.1-1)

Genetic analysis package

Description

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, classic twin models, probability of familial disease aggregation, kinship calculation, some statistics in linkage analysis, and association analysis involving one or more genetic markers including haplotype analysis with or without environmental covariates.

Copy Link

Version

Install

install.packages('gap')

Monthly Downloads

16,595

Version

1.1-1

License

GPL (>= 2)

Maintainer

Jing Zhao

Last Published

December 10th, 2010

Functions in gap (1.1-1)

gap-package

Genetic analysis package
hwe.cc

A likelihood ratio test of population Hardy-Weinberg equilibrium for case-control studies
genecounting

Gene counting for haplotype analysis
mfblong

Example data for ACEnucfam
print.hap.score

Print a hap.score object
ab

Test/Power calculation for mediating effect
htr

Haplotype trend regression
qqfun

Quantile-comparison plots
LD22

LD statistics for two diallelic markers
gcp

Permutation tests using GENECOUNTING
masize

Sample size calculation for mediation analysis
asplot

Regional association plot
CDKN

Example data for association plot
ESplot

Effect-size plot
FPRP

False-positive report probability
apoeapoc

APOE/APOC1 markers and Alzheimer's
LDkl

LD statistics for two multiallelic markers
chow.test

Chow's test for heterogeneity in two regressions
crohn

Crohn's disease data
mtdt2

Transmission/disequilibrium test of a multiallelic marker by Bradley-Terry model
mvmeta

Multivariate meta-analysis based on generalized least squares
mhtplot

Manhattan plot of p values
hla

The HLA data
gc.em

Gene counting for haplotype analysis
whscore

Whittemore-Halpern scores for allele-sharing
fsnps

A case-control data involving four SNPs with missing genotype
hap.em

Gene counting for haplotype analysis
comp.score

score statistics for testing genetic linkage of quantitative trait
twinan90

Classic twin models
bt

Bradley-Terry model for contingency table
gap-internal

Internal functions for gap
cf

Cystic fibrosis data
mao

A study of Parkinson's disease and MAO gene
BFDP

Bayesian false-discovery probability
b2r

Obtain correlation coefficients and their variance-covariances
pbsize2

Power for case-control association design
hap

Haplotype reconstruction
SNP

Functions for single nucleotide polymorphisms (SNPs)
metareg

Fixed and random effects model for meta-analysis
nep499

A study of Alzheimer's disease with eight SNPs and APOE
gif

Kinship coefficient and genetic index of familiality
h2

Heritability estimation according to twin correlations
gcontrol

genomic control
plot.hap.score

Plot haplotype frequencies versus haplotype score statistics
kin.morgan

kinship matrix for simple pedigree
read.ms.output

A utility function to read ms output
snca

A study of Parkinson's disease and SNCA makers
fbsize

Sample size for family-based linkage and association design
mhtdata

An example data for Manhattan plot
muvar

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

Score statistics for association of traits with haplotypes
makeped

A function to prepare pedigrees in post-MAKEPED format
ccsize

Power and sample size for case-cohort design
hwe.hardy

Hardy-Weinberg equilibrium test using MCMC
fa

Friedreich Ataxia data
hr1420

An example data for Manhattan plot with annotation
klem

Haplotype frequency estimation based on a genotype table of two multiallelic markers
metap

Meta-analysis of p values
hwe

Hardy-Weinberg equlibrium test for a multiallelic marker
pbsize

Power for population-based association design
gcontrol2

genomic control based on p values
mia

multiple imputation analysis for hap
PD

A study of Parkinson's disease and APOE, LRRK2, SNCA makers
lukas

An example pedigree
pfc

Probability of familial clustering of disease
aldh2

ALDH2 markers and Alcoholism
mtdt

Transmission/disequilibrium test of a multiallelic marker
s2k

Statistics for 2 by K table
l51

An example pedigree data
pedtodot

Converting pedigree(s) to dot file(s)
mhtplot2

Manhattan plot with annotations
pfc.sim

Probability of familial clustering of disease
qqunif

Q-Q plot for uniformly distributed random variable
tscc

Power calculation for two-stage case-control design
pgc

Preparing weight for GENECOUNTING
AE3

AE model using nuclear family trios
meyer

A pedigree data on 282 animals deriving from two generations
MCMCgrm

Mixed modeling with genetic relationship matrices