Package: Haplin 7.3.2

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

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. Case-parent triads: Estimating single- and double-dose effects of fetal and maternal disease gene haplotypes. Annals of Human Genetics (2006) 70, pp. 382-396".

Authors:Hakon K. Gjessing [aut, cre], Miriam Gjerdevik [ctb], Julia Romanowska [ctb], Oivind Skare [ctb]

Haplin_7.3.2.tar.gz
Haplin_7.3.2.zip(r-4.7)Haplin_7.3.2.zip(r-4.6)Haplin_7.3.2.zip(r-4.5)
Haplin_7.3.2.tgz(r-4.6-x86_64)Haplin_7.3.2.tgz(r-4.6-arm64)Haplin_7.3.2.tgz(r-4.5-x86_64)Haplin_7.3.2.tgz(r-4.5-arm64)
Haplin_7.3.2.tar.gz(r-4.7-arm64)Haplin_7.3.2.tar.gz(r-4.7-x86_64)Haplin_7.3.2.tar.gz(r-4.6-arm64)Haplin_7.3.2.tar.gz(r-4.6-x86_64)
Haplin_7.3.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
Haplin/json (API)

# Install 'Haplin' in R:
install.packages('Haplin', repos = c('https://hkgjess.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

cpp

5.01 score 3 stars 68 scripts 449 downloads 11 mentions 39 exports 8 dependencies

Last updated from:91faded5cf. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK191
linux-devel-x86_64OK195
source / vignettesOK288
linux-release-arm64OK188
linux-release-x86_64OK187
macos-release-arm64OK173
macos-release-x86_64OK406
macos-oldrel-arm64OK125
macos-oldrel-x86_64OK433
windows-develOK217
windows-releaseOK175
windows-oldrelOK187
wasm-releaseOK119

Exports:cbindFilesconvertPedfinishParallelRungenDataGetPartgenDataLoadgenDataPreprocessgenDataReadgetChildrengetDyadsgetFathersgetFullTriadsgetMothersgxehaplinhaplinSlidehaplinStrathapPowerhapPowerAsymphapRelEffhapRunhapSimhaptableinitParallelRunlineByLinenfamnindivnsnpsoutputpedToHaplinplotPValuespQQrbindFilesshowGenshowPhenoshowSNPnamessnpPowersnpSampleSizesuesttoDataFrame

Dependencies:bitfflatticeMASSMatrixmgcvnlmerlang

Introduction: installing and citing Haplin
Citing use of Haplin | Obtaining and installing Haplin | Requirements | Installation

Last update: 2024-02-09
Started: 2018-05-27

Relative efficiency in Haplin
Background | Regular autosomal effects | Parent-of-origin (PoO) effects | Maternal effects | Haplotype effects | Analysis of X-linked markers

Last update: 2024-02-09
Started: 2020-01-07

Reading and preparing the data
Reading the data into Haplin | Reading covariate data | Accessing the information in the loaded data | Displaying and extracting phenotype information | Displaying and extracting genotype information | Preparing your data | Choosing a subset of data | Useful shortcut functions | Re-using the data

Last update: 2020-09-07
Started: 2018-05-27

Running Haplin analysis
Running the analysis | Exemplary Haplin runs | Trial run no.1 | Trial run no.2 | Running analysis on GWAS data: HaplinSlide | Investigating and plotting results | Special effects: maternal or parent-of-origin | Analysis of gene-environment interactions (GxE) with haplinStrat | Plotting the results | Checking for significance of interactions

Last update: 2020-09-07
Started: 2018-05-27

Running Haplin on cluster
General about running analysis on a cluster | Extra requirements | Job submission | Running parallel Haplin analysis on a cluster

Last update: 2020-09-07
Started: 2018-05-27

Readme and manuals

Help Manual

Help pageTopics
Combine a sequence of files by columnscbindFiles
Closing the Rmpi clusterfinishParallelRun
Extracting part of genetic data.genDataGetPart
Loading the data previously read in and saved by "genDataRead"genDataLoad
Pre-processing of the genetic datagenDataPreprocess
Reading the genetic data from a filegenDataRead
Getter for all rows with children datagetChildren
Getter only for all dyads (child and one parent)getDyads
Getter for all rows with fathers' datagetFathers
Getter for all full triadsgetFullTriads
Getter for all rows with mothers' datagetMothers
Test for gene-environment interactiongxe
Fitting log-linear models to case-parent triad and/or case-control datahaplin
Run haplin analysis in a series of sliding windows over a sequence of markers/SNPshaplinSlide
Fit 'haplin' to each subset/stratum of data, determined by the argument 'strata'haplinStrat
Power simulation for association analyses with HaplinhapPower
Asymptotic power calculations for genetic association analyses with HaplinhapPowerAsymp
Relative efficiency comparing different study designs in genetic association analysis with HaplinhapRelEff
Simulates genetic data and runs Haplin for each simulationhapRun
Simulation of genetic data in Haplin formathapSim
Create haplin tablehaptable
Initialization of the Rmpi clusterinitParallelRun
Line-by-line modification of fileslineByLine
Count the number of families in the datanfam
Count the number of individuals in the datanindiv
Count the number of markers in the datansnps
Save files with summary, table, and plot from a haplin object.output
Plot a haplin objectplot.haplin
Plotter function for haplinSlide.plot.haplinSlide
Plotter function for haplinStrat results.plot.haplinStrat
Plot a haptable objectplot.haptable
Plotting p-values for relative risksplotPValues
QQ-plot with confidence intervals for a vector of p-valuespQQ
Print a haplin objectprint.haplin
Print the summary of a haplin objectprint.summary.haplin
Combine a sequence of files by rowsrbindFiles
Display chosen genotypesshowGen
Display phenotype part of datashowPheno
Display marker namesshowSNPnames
Find the column numbers of SNP identifiers/SNP numbers in a ped filesnpPos
Power calculations for a single SNPsnpPower
Sample size calculations for a single SNPsnpSampleSize
Compute a joint p-value for a list of haplin fits (usually from a sliding window approach), correcting for multiple testing.suest
Summary of a haplin objectsummary.haplin
Stack dataframes from haplinSlide into a single dataframetoDataFrame