Learn R Programming

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

Haplin (version 7.1.0)

Analyzing Case-Parent Triad and/or Case-Control Data with SNP Haplotypes

Description

Performs genetic association analyses of case-parent triad (trio) data with multiple markers. It can also incorporate complete or incomplete control triads, for instance independent control children. Estimation is based on haplotypes, for instance SNP haplotypes, even though phase is not known from the genetic data. 'Haplin' estimates relative risk (RR + conf.int.) and p-value associated with each haplotype. It uses maximum likelihood estimation to make optimal use of data from triads with missing genotypic data, for instance if some SNPs has not been typed for some individuals. 'Haplin' also allows estimation of effects of maternal haplotypes and parent-of-origin effects, particularly appropriate in perinatal epidemiology. 'Haplin' allows special models, like X-inactivation, to be fitted on the X-chromosome. A GxE analysis allows testing interactions between environment and all estimated genetic effects. The models were originally described in Gjessing, HK and Lie, RT (2006) .

Copy Link

Version

Install

install.packages('Haplin')

Monthly Downloads

333

Version

7.1.0

License

GPL (>= 2)

Maintainer

Hakon Gjessing

Last Published

April 17th, 2019

Functions in Haplin (7.1.0)

f.convert.matrix.ff

Converting Haplin-formatted matrix into the new format
haptable

Create haplin table
gxe

Test for gene-environment interaction
genDataGetPart

Extracting part of genetic data.
hapPower

Power simulation for association analyses with Haplin
genDataPreprocess

Pre-processing of the genetic data
genDataRead

Reading the genetic data from a file
hapPowerAsymp

Asymptotic power calculations for genetic association analyses with Haplin
genDataLoad

Loading the data previously read in and saved by "genDataRead"
hapRelEff

Relative efficiency comparing different study designs in genetic association analysis with Haplin
cbindFiles

Combine a sequence of files by columns
plot.haplin

Plot a haplin object
nfam

Count the number of families in the data
plot.haplinSlide

Plotter function for haplinSlide.
haplin

Fitting log-linear models to case-parent triad and/or case-control data
plotPValues

Plotting p-values for relative risks
print.haplin

Print a haplin object
finishParallelRun

Closing the Rmpi cluster
f.get.gen.data.cols

Getter for the list with genetic or environmental data
pQQ

QQ-plot with confidence intervals for a vector of p-values
pedToHaplin

Convert from ped format data to Haplin format
summary.haplin

Summary of a haplin object
haplinSlide

Run haplin analysis in a series of sliding windows over a sequence of markers/SNPs
nsnps

Count the number of markers in the data
output

Save files with summary, table, and plot from a haplin object.
toDataFrame

Stack dataframes from haplinSlide into a single dataframe
convertPed

Convert large ped files by creating unique IDs, converting allele coding and extracting a selection of SNPs
nindiv

Count the number of individuals in the data
showGen

Display chosen genotypes
print.summary.haplin

Print the summary of a haplin object
showPheno

Display phenotype part of data
rbindFiles

Combine a sequence of files by rows
hapRun

Simulates genetic data and runs Haplin for each simulation
hapSim

Simulation of genetic data in Haplin format
initParallelRun

Initialization of the Rmpi cluster
lineByLine

Line-by-line modification of files
plot.haplinStrat

Plotter function for haplinStrat results.
snpPos

Find the column numbers of SNP identifiers/SNP numbers in a ped file
snpPower

Power calculations for a single SNP
plot.haptable

Plot a haptable object
snpSampleSize

Sample size calculations for a single SNP
suest

Compute a joint p-value for a list of haplin fits (usually from a sliding window approach), correcting for multiple testing.
f.extract.ff.numeric

Extract a part of an ff array (matrix) and return it as numeric matrix
haplinStrat

Fit haplin to each subset/stratum of data, determined by the argument strata