Learn R Programming

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

gap (version 1.2.3-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, 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).

Copy Link

Version

Install

install.packages('gap')

Monthly Downloads

13,389

Version

1.2.3-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 21st, 2021

Functions in gap (1.2.3-1)

MCMCgrm

Mixed modeling with genetic relationship matrices
ESplot

Effect-size plot
BFDP

Bayesian false-discovery probability
hap.score

Score statistics for association of traits with haplotypes
SNP

Functions for single nucleotide polymorphisms (SNPs)
bt

Bradley-Terry model for contingency table
hap.em

Gene counting for haplotype analysis
ccsize

Power and sample size for case-cohort design
METAL_forestplot

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

Multivariate meta-analysis based on generalized least squares
makeped

A function to prepare pedigrees in post-MAKEPED format
klem

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

Power for population-based association design
FPRP

False-positive report probability
mhtplot.trunc

Truncated Manhattan plot
comp.score

score statistics for testing genetic linkage of quantitative trait
h2

Heritability estimation according to twin correlations
gif

Kinship coefficient and genetic index of familiality
chow.test

Chow's test for heterogeneity in two regressions
asplot

Regional association plot
mhtplot2

Manhattan plot with annotations
b2r

Obtain correlation coefficients and their variance-covariances
htr

Haplotype trend regression
ab

Test/Power calculation for mediating effect
fbsize

Sample size for family-based linkage and association design
gap-package

Genetic analysis package
hwe.cc

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

LD statistics for two multiallelic markers
genecounting

Gene counting for haplotype analysis
hwe.hardy

Hardy-Weinberg equilibrium test using MCMC
gcontrol2

genomic control based on p values
gcp

Permutation tests using GENECOUNTING
gcontrol

genomic control
hwe

Hardy-Weinberg equlibrium test for a multiallelic marker
gc.em

Gene counting for haplotype analysis
qqunif

Q-Q plot for uniformly distributed random variable
mtdt

Transmission/disequilibrium test of a multiallelic marker
sentinels

Sentinel identification from GWAS summary statistics
mia

multiple imputation analysis for hap
s2k

Statistics for 2 by K table
read.ms.output

A utility function to read ms output
pgc

Preparing weight for GENECOUNTING
pfc

Probability of familial clustering of disease
masize

Sample size calculation for mediation analysis
pbsize2

Power for case-control association design
h2.jags

Heritability estimation based on genomic relationship matrix using JAGS
metap

Meta-analysis of p values
gap-internal

Internal functions for gap
hap

Haplotype reconstruction
mhtplot

Manhattan plot
metareg

Fixed and random effects model for meta-analysis
hwe.jags

Hardy-Weinberg equlibrium test for a multiallelic marker using JAGS
pedtodot

Converting pedigree(s) to dot file(s)
kin.morgan

kinship matrix for simple pedigree
pfc.sim

Probability of familial clustering of disease
plot.hap.score

Plot haplotype frequencies versus haplotype score statistics
muvar

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

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

Quantile-comparison plots
print.hap.score

Print a hap.score object
tscc

Power calculation for two-stage case-control design
whscore

Whittemore-Halpern scores for allele-sharing
LD22

LD statistics for two diallelic markers
AE3

AE model using nuclear family trios