Learn R Programming

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

gap (version 1.1-16)

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

Copy Link

Version

Install

install.packages('gap')

Monthly Downloads

16,595

Version

1.1-16

License

GPL (>= 2)

Maintainer

Jing Zhao

Last Published

June 6th, 2015

Functions in gap (1.1-16)

SNP

Functions for single nucleotide polymorphisms (SNPs)
ccsize

Power and sample size for case-cohort design
pfc

Probability of familial clustering of disease
mhtplot

Manhattan plot
hwe.cc

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

Haplotype trend regression
aldh2

ALDH2 markers and Alcoholism
fbsize

Sample size for family-based linkage and association design
hap.score

Score statistics for association of traits with haplotypes
masize

Sample size calculation for mediation analysis
mhtdata

An example data for Manhattan plot
pbsize

Power for population-based association design
nep499

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

A pedigree data on 282 animals deriving from two generations
chow.test

Chow's test for heterogeneity in two regressions
hla

The HLA data
hr1420

An example data for Manhattan plot with annotation
hwe.hardy

Hardy-Weinberg equilibrium test using MCMC
kin.morgan

kinship matrix for simple pedigree
metareg

Fixed and random effects model for meta-analysis
pedtodot

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

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

Power for case-control association design
klem

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

Mixed modeling with genetic relationship matrices
comp.score

score statistics for testing genetic linkage of quantitative trait
bt

Bradley-Terry model for contingency table
makeped

A function to prepare pedigrees in post-MAKEPED format
gc.em

Gene counting for haplotype analysis
s2k

Statistics for 2 by K table
PD

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

LD statistics for two multiallelic markers
gif

Kinship coefficient and genetic index of familiality
hwe

Hardy-Weinberg equlibrium test for a multiallelic marker
l51

An example pedigree data
hap

Haplotype reconstruction
mhtplot2

Manhattan plot with annotations
twinan90

Classic twin models
read.ms.output

A utility function to read ms output
LD22

LD statistics for two diallelic markers
asplot

Regional association plot
crohn

Crohn's disease data
fa

Friedreich Ataxia data
gcontrol2

genomic control based on p values
metap

Meta-analysis of p values
mtdt

Transmission/disequilibrium test of a multiallelic marker
qqunif

Q-Q plot for uniformly distributed random variable
plot.hap.score

Plot haplotype frequencies versus haplotype score statistics
whscore

Whittemore-Halpern scores for allele-sharing
fsnps

A case-control data involving four SNPs with missing genotype
gap-package

Genetic analysis package
h2

Heritability estimation according to twin correlations
mfblong

Example data for ACEnucfam
gcp

Permutation tests using GENECOUNTING
ESplot

Effect-size plot
gap-internal

Internal functions for gap
pfc.sim

Probability of familial clustering of disease
print.hap.score

Print a hap.score object
hap.em

Gene counting for haplotype analysis
CDKN

Example data for association plot
b2r

Obtain correlation coefficients and their variance-covariances
genecounting

Gene counting for haplotype analysis
cf

Cystic fibrosis data
ab

Test/Power calculation for mediating effect
mao

A study of Parkinson's disease and MAO gene
mvmeta

Multivariate meta-analysis based on generalized least squares
pgc

Preparing weight for GENECOUNTING
tscc

Power calculation for two-stage case-control design
gcontrol

genomic control
lukas

An example pedigree
mtdt2

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

Bayesian false-discovery probability
AE3

AE model using nuclear family trios
FPRP

False-positive report probability
mia

multiple imputation analysis for hap
apoeapoc

APOE/APOC1 markers and Alzheimer's
qqfun

Quantile-comparison plots