HybridCheck is an R package that is intended to make it quick, simple and easy to script analyses scanning for recombination signal between haplotype sequences.

It can plot such scans:


It also allows you to compute ABBA BABA tests for gene flow and some variants of the ABBA BABA test.

Installation instructions

Installing HybridCheck from GitHub is easy if you have "devtools" installed. If you don't have devtools, fear not, it is easy to acquire.


Once you have devtools, you can use the install_github function to grab and install HybridCheck.

devtools::install_github("vanOosterhoutLab/HybridCheck", build_vignettes = TRUE)


User manual

HybridCheck comes with a user manual vignette, that you can access from an R session.



and hit return. A new window should pop up with the manual inside. It will guide you through loading your sequence data and running an analysis.

API reference documentation

The documentation of each HybridCheck class and method/function can be viewed from within R by typing:


in the R console.

Test dataset

An example sequence alignment of 10 sequences as a DNAbin object is available in the package to use to test HybridCheck functionality. For more details, see the user manual.



If you would like to contribute to HybridCheck, or want to ask a question or report a bug. You can either use GitHub Issues and Pull Requests in the usual way, or you can contact either of the two maintainers below:

Ward9250/HybridCheck documentation built on June 5, 2020, 12:39 a.m.