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.5)Haplin_7.3.2.zip(r-4.4)Haplin_7.3.2.zip(r-4.3)
Haplin_7.3.2.tgz(r-4.4-x86_64)Haplin_7.3.2.tgz(r-4.4-arm64)Haplin_7.3.2.tgz(r-4.3-x86_64)Haplin_7.3.2.tgz(r-4.3-arm64)
Haplin_7.3.2.tar.gz(r-4.5-noble)Haplin_7.3.2.tar.gz(r-4.4-noble)
Haplin_7.3.2.tgz(r-4.4-emscripten)Haplin_7.3.2.tgz(r-4.3-emscripten)
Haplin.pdf |Haplin.html
Haplin/json (API)
NEWS

# Install 'Haplin' in R:
install.packages('Haplin', repos = c('https://hkgjess.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

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

5.17 score 3 stars 49 scripts 494 downloads 11 mentions 39 exports 8 dependencies

Last updated 3 months agofrom:91faded5cf. Checks:OK: 5 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-win-x86_64OKOct 31 2024
R-4.5-linux-x86_64OKOct 31 2024
R-4.4-win-x86_64OKOct 31 2024
R-4.4-mac-x86_64NOTEOct 31 2024
R-4.4-mac-aarch64NOTEOct 31 2024
R-4.3-win-x86_64OKOct 31 2024
R-4.3-mac-x86_64NOTEOct 31 2024
R-4.3-mac-aarch64NOTEOct 31 2024

Exports:cbindFilesconvertPedfinishParallelRungenDataGetPartgenDataLoadgenDataPreprocessgenDataReadgetChildrengetDyadsgetFathersgetFullTriadsgetMothersgxehaplinhaplinSlidehaplinStrathapPowerhapPowerAsymphapRelEffhapRunhapSimhaptableinitParallelRunlineByLinenfamnindivnsnpsoutputpedToHaplinplotPValuespQQrbindFilesshowGenshowPhenoshowSNPnamessnpPowersnpSampleSizesuesttoDataFrame

Dependencies:bitfflatticeMASSMatrixmgcvnlmerlang

Introduction: installing and citing Haplin

Rendered fromA_Haplin_intro_installation.Rmdusingknitr::rmarkdownon Oct 31 2024.

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

Reading and preparing the data

Rendered fromB_Reading_data.Rmdusingknitr::rmarkdownon Oct 31 2024.

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

Relative efficiency in Haplin

Rendered fromE_hapRelEff.Rmdusingknitr::rmarkdownon Oct 31 2024.

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

Running Haplin analysis

Rendered fromC_Running_Haplin.Rmdusingknitr::rmarkdownon Oct 31 2024.

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

Running Haplin on cluster

Rendered fromD_Running_Haplin_on_cluster.Rmdusingknitr::rmarkdownon Oct 31 2024.

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