Learn R Programming

gap (version 1.5-1)

gap-package: Genetic analysis package

Description

As first reported [Zhao, J. H. 2007. "gap: Genetic Analysis Package". JSS 23(8):1-18. tools:::Rd_expr_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).

Arguments

Author

Jing Hua Zhao in collaboration with other colleagues, and with help from Kurt Hornik and Brian Ripley of the R core development team

maitained by Jing Hua Zhao <jinghuazhao@hotmail.com>

Details

Package:gap
Version:1.5-1
Depends:R(>= 2.1.0)
Imports:dplyr, ggplot2, plotly
Suggests:BradleyTerry2, MASS, Matrix, MCMCglmm, R2jags, bdsmatrix, bookdown,
calibrate, circlize, coda, cowplot, coxme, dplyr, foreign, forestplot,
gap.datasets, ggplot2, grid, haplo.stats, htmlwidgets, kinship2, lattice,
magic, matrixStats, meta, metafor, nlme, pedigree, pedigreemm,
plotrix, qqman, regress, reshape, rmarkdown, rmeta, rms, survival
License:GPL (>=2)
URL:https://jinghuazhao.github.io/R

Index:

ANALYSIS
AE3
AE model using nuclear family triosbt
Bradley-Terry model for contingency tableccsize
Power and sample size for case-cohort designcs
Credibel setfbsize
Sample size for family-based linkage and association designgc.em
Gene counting for haplotype analysisgcontrol
genomic controlgcontrol2
genomic control based on p valuesgcp
Permutation tests using GENECOUNTINGgc.lambda
Estimation of the genomic control inflation statistic (lambda)genecounting
Gene counting for haplotype analysisgif
Kinship coefficient and genetic index of familialityhap
Haplotype reconstructionhap.em
Gene counting for haplotype analysishap.score
Score statistics for association of traits with haplotypeshtr
Haplotype trend regressionh2.jags
Heritability estimation based on genomic relationship matrix using JAGShwe
Hardy-Weinberg equilibrium test for a multiallelic markerhwe.cc
A likelihood ratio test of population Hardy-Weinberg equilibriumhwe.hardy
Hardy-Weinberg equilibrium test using MCMChwe.jags
Hardy-Weinberg equlibrium test for a multiallelic marker using JAGSinvnormal
inverse Normal transformationkin.morgan
kinship matrix for simple pedigreeLD22
LD statistics for two diallelic markersLDkl
LD statistics for two multiallelic markerslambda1000
A standardized estimate of the genomic inflation scaling to
a study of 1,000 cases and 1,000 controlslog10p
log10(p) for a standard normal deviatelog10pvalue
log10(p) for a P value including its scientific formatlogp
log(p) for a normal deviatemasize
Sample size calculation for mediation analysisMCMCgrm
Mixed modeling with genetic relationship matricesmia
multiple imputation analysis for hapmr
Mendelian randomization analysismtdt
Transmission/disequilibrium test of a multiallelic markermtdt2
Transmission/disequilibrium test of a multiallelic marker
by Bradley-Terry modelmvmeta
Multivariate meta-analysis based on generalized least squarespbsize
Power for population-based association designpbsize2
Power for case-control association designpfc
Probability of familial clustering of diseasepfc.sim
Probability of familial clustering of diseasepgc
Preparing weight for GENECOUNTINGprint.hap.score
Print a hap.score objects2k
Statistics for 2 by K tablesentinels
Sentinel identification from GWAS summary statisticstscc
Power calculation for two-stage case-control design
GRAPHICS
asplotRegional association plot
ESplotEffect-size plot
circos.cis.vs.trans.plotcircos plot of cis/trans classification
circos.cnvplotcircos plot of CNVs
circos.mhtplotcircos Manhattan plot with gene annotation
circos.mhtplot2Another circos Manhattan plot
cnvplotgenomewide plot of CNVs
labelManhattanAnnotate Manhattan or Miami Plot
makeRLEplotmake relative log expression plot
METAL_forestplotforest plot as R/meta's forest for METAL outputs
mhtplotManhattan plot
mhtplot2Manhattan plot with annotations
mhtplot.trunctruncated Manhattan plot
miamiplotMiami plot
miamiplot2Miami plot
mr_forestplotMendelian Randomization forest plot
pedtodotConverting pedigree(s) to dot file(s)
pedtodot_verbatimPedigree-drawing with graphviz
plot.hap.scorePlot haplotype frequencies versus haplotype score statistics
qqfunQuantile-comparison plots
qqunifQ-Q plot for uniformly distributed random variable
qtl2dplot2D QTL plot
qtl2dplotly2D QTL plotly
qtl3dplotly3D QTL plotly
UTITLITIES
SNP
Functions for single nucleotide polymorphisms (SNPs)BFDP
Bayesian false-discovery probabilityFPRP
False-positive report probabilityab
Test/Power calculation for mediating effectb2r
Obtain correlation coefficients and their variance-covarianceschow.test
Chow's test for heterogeneity in two regressionschr_pos_a1_a2
Form SNPID from chromosome, posistion and allelescis.vs.trans.classification
a cis/trans classifiercomp.score
score statistics for testing genetic linkage of quantitative traitGRM functions
ReadGRM, ReadGRMBin, ReadGRMPLINK, ReadGRMPCA, WriteGRM,
WriteGRMBin, WriteGRMSAS
handle genomic relationship matrix involving other softwareget_b_se
Get b and se from AF, n, and zget_pve_se
Get pve and its standard error from n, zget_sdy
Get sd(y) from AF, n, b, seh2G
A utility function for heritabilityh2GE
A utility function for heritability involving gene-environment interactionh2l
A utility function for converting observed heritability to its counterpart
under liability threshold modelh2_mzdz
Heritability estimation according to twin correlationsklem
Haplotype frequency estimation based on a genotype table
of two multiallelic markersmakeped
A function to prepare pedigrees in post-MAKEPED formatmetap
Meta-analysis of p valuesmetareg
Fixed and random effects model for meta-analysismuvar
Means and variances under 1- and 2- locus (diallelic) QTL modelqtlClassifier
A QTL cis/trans classifierread.ms.output
A utility function to read ms outputrevStrand
Allele on the reverse strandrunshinygap
Start shinygapsnptest_sample
A utility to generate SNPTEST sample filewhscore
Whittemore-Halpern scores for allele-sharingweighted.median
Weighted median with interpolation

We have incorporated functions for a wide range of problems. Nevertheless, this largely remains as a preliminary work to be consolidated in the near future.

References

Zhao JH, gap: genetic analysis package. Journal of Statistical Software 2007, 23(8):1-18, tools:::Rd_expr_doi("10.18637/jss.v023.i08").

See Also