Inference Tool for Antibody Haplotype

Infers V-D-J haplotypes and gene deletions from AIRR-seq data, based on IGHJ, IGHD or IGHV as anchor, by adapting a Bayesian framework. It also calculates a Bayes factor, a number that indicates the certainty level of the inference, for each haplotyped gene. Citation: Gidoni, et al (2019) .

Analysis of antibody repertoires by high throughput sequencing is of major importance in understanding adaptive immune responses. Our knowledge of variations in the genomic loci encoding antibody genes is incomplete, mostly due to technical difficulties in aligning short reads to these highly repetitive loci. The partial knowledge results in conflicting V-D-J gene assignments between different algorithms, and biased genotype and haplotype inference. Previous studies have shown that haplotypes can be inferred by taking advantage of IGHJ6 heterozygosity, observed in approximately one third of the population.

RAbHIT is a haplotype infrence tool based on a robust novel method for determining V-D-J haplotypes by adapting a Bayesian framework. Our method extends haplotype inference to IGHD, IGHV, IGKJ, IGKV, and IGLV based analysis, thereby enabling inference of complex genetic events like deletions and copy number variations in the entire population. Based on this method we developed an R package, which implements the method on sequences from naive B-cells, for both the heavy and the light chains. The package offers a haplotype and single chromosome deletion inference based on an anchor gene. The inferred haplotypes and deletion patterns may have clinical implications for genetic predispositions to diseases.

Core Abilities

  • Haplotype inference
  • Single chromosome deletion detection
  • Two chromosome deletion detection

Required Input

  • Pre-processed antibody repertoire sequencing data with heterozygosity in at least one gene. Antibody repertoire sequencing data is in a data frame format. Each row represents a unique observation and columns represent data about that observation. The names of the required columns are provided below along with a short description.
  • Database of germline gene sequences
Column name Description
Subject name Subject name
V_CALL (Comma separated) name(s) of the nearest V allele(s) (IMGT format)
D_CALL (Comma separated) name(s) of the nearest D allele(s) (IMGT format)
J_CALL (Comma separated) name(s) of the nearest J allele(s) (IMGT format)


RAbHIT is available for installion either from CRAN or from the development version.

RAbHIT CRAN installation


RAbHIT repository installation

To build from the source code, first install the build dependencies:

install.packages(c("devtools", "roxygen2", "testthat", "knitr", "rmarkdown", "plotly"))

To install the latest version via devtools:


Note, installing from bitbucket does not generate the documentation. To generate them, first clone the repository and then build:



A complete documentation of RAbHIT is available at: or in your local repository at: ./vignettes/RAbHIT-vignette.html


For help, questions, or suggestions, please contact:


RAbHIT is free for use under the CC BY-SA 4.0


Version 0.1.1: May 8, 2019

  • Improved createFullHaplotype run-time
  • Fixed a bug werein createFullHaplotype miss-handeled novel allele labels

Version 0.1.0: March 4, 2019

  • Initial public release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.1.1 by Ayelet Peres, a month ago

Report a bug at

Browse source code at

Authors: Ayelet Peres [aut, cre] , Moriah Gidoni [aut] , Gur Yaari [aut, cph]

Documentation:   PDF Manual  

CC BY-SA 4.0 license

Imports dplyr, reshape2, plotly, gtools, cowplot, stats, dendextend, data.table, ggdendro, gridExtra, alakazam, tigger, methods, htmlwidgets, gtable, grDevices, rlang, RColorBrewer, tidyr, stringi

Depends on ggplot2

Suggests knitr, rmarkdown

See at CRAN