Package: RZooRoH 0.4.1

Tom Druet

RZooRoH: Partitioning of Individual Autozygosity into Multiple Homozygous-by-Descent Classes

Functions to identify Homozygous-by-Descent (HBD) segments associated with runs of homozygosity (ROH) and to estimate individual autozygosity (or inbreeding coefficient). HBD segments and autozygosity are assigned to multiple HBD classes with a model-based approach relying on a mixture of exponential distributions. The rate of the exponential distribution is distinct for each HBD class and defines the expected length of the HBD segments. These HBD classes are therefore related to the age of the segments (longer segments and smaller rates for recent autozygosity / recent common ancestor). The functions allow to estimate the parameters of the model (rates of the exponential distributions, mixing proportions), to estimate global and local autozygosity probabilities and to identify HBD segments with the Viterbi decoding. The method is fully described in Druet and Gautier (2017) <doi:10.1111/mec.14324> and Druet and Gautier (2022) <doi:10.1016/j.tpb.2022.03.001>.

Authors:Tom Druet [aut, cre], Naveen Kumar Kadri [aut], Amandine Bertrand [ctb], Mathieu Gautier [aut]

RZooRoH_0.4.1.tar.gz
RZooRoH_0.4.1.tar.gz(r-4.7-arm64)RZooRoH_0.4.1.tar.gz(r-4.7-x86_64)RZooRoH_0.4.1.tar.gz(r-4.6-arm64)RZooRoH_0.4.1.tar.gz(r-4.6-x86_64)
RZooRoH_0.4.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
RZooRoH/json (API)

# Install 'RZooRoH' in R:
install.packages('RZooRoH', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Uses libs:
  • fortran– Runtime library for GNU Fortran applications
Datasets:
  • BBB_NMP_ad_subset - Example for "ad" format specification
  • BBB_NMP_GP_subset - Example for "gp" format specification
  • BBB_NMP_pl_subset - Example for "pl" format specification
  • BBB_PE_gt_subset - Example for "gt" format specification
  • BBB_samples - A file with names or IDs for ten samples.
  • genoex - Subset of a dataset with genotypes for 20 sheeps
  • genosim - Example from a small simulated data set
  • hbd1 - The result of local IBD probabilities for a pair of individuals among the 18 cows from the Amsterdam Island.
  • hbd2 - The result of local IBD probabilities for a pair of individuals among the 18 cows from the Amsterdam Island (recent only).
  • kintaf_mix4l - The result of a kinship analysis on 18 cattle from the Amsterdam Island.
  • map1 - The map for local IBD probabilities for a pair of individuals among the 18 cows from the Amsterdam Island (recent only).
  • rara_mix10l - The result of an analysis on 22 sheeps from Rasa Aragonesa population.
  • soay_mix10l - The result of an analysis on 110 sheeps from the Soay population.
  • typs - Subset of a dataset with genotypes for 6 individuals from a cattle population.
  • typsfrq - A file with marker allele frequencies for the cattle population.
  • wilt_mix10l - The result of an analysis on 23 sheeps from Wiltshire population.

On CRAN:

Conda:

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

fortran

3.59 score 2 stars 49 scripts 230 downloads 4 mentions 16 exports 6 dependencies

Last updated from:e186115454. Checks:4 WARNING, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING130
linux-devel-x86_64WARNING134
source / vignettesOK241
linux-release-arm64WARNING128
linux-release-x86_64WARNING139
wasm-releaseOK129

Exports:cumhbdcumkinmerge_zrespredhbdprobhbdrealizedrohbdupdate_zreszoodatazookinzoomodelzooplot_hbdsegzooplot_individualszooplot_partitioningzooplot_prophbdzoorun

Dependencies:codetoolsdata.tabledoParallelforeachiteratorsRColorBrewer

The RZooRoH package

Rendered fromzooroh-vignette.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2025-06-06
Started: 2018-06-19

Readme and manuals

Help Manual

Help pageTopics
Example for "ad" format specificationBBB_NMP_ad_subset
Example for "gp" format specificationBBB_NMP_GP_subset
Example for "pl" format specificationBBB_NMP_pl_subset
Example for "gt" format specificationBBB_PE_gt_subset
A file with names or IDs for ten samples.BBB_samples
Computes the realized inbreeding coefficientcumhbd
Computes the realized kinshipcumkin
Subset of a dataset with genotypes for 20 sheepsgenoex
Example from a small simulated data setgenosim
The result of local IBD probabilities for a pair of individuals among the 18 cows from the Amsterdam Island.hbd1
The result of local IBD probabilities for a pair of individuals among the 18 cows from the Amsterdam Island (recent only).hbd2
The result of a kinship analysis on 18 cattle from the Amsterdam Island.kintaf_mix4l
The map for local IBD probabilities for a pair of individuals among the 18 cows from the Amsterdam Island (recent only).map1
Merge several zres objects generated by zoorunmerge_zres
Extracts the IBD probabilities from the kres objectpredhbd
Extracts the HBD probabilities from the zres objectprobhbd
The result of an analysis on 22 sheeps from Rasa Aragonesa population.rara_mix10l
Extracts the realized autozygosity from the zres objectrealized
Extracts the HBD segments from the zres objectrohbd
The result of an analysis on 110 sheeps from the Soay population.soay_mix10l
Subset of a dataset with genotypes for 6 individuals from a cattle population.typs
A file with marker allele frequencies for the cattle population.typsfrq
Update one main zres object with new resultsupdate_zres
The result of an analysis on 23 sheeps from Wiltshire population.wilt_mix10l
Read the genotype data filezoodata
Use the ZooRoH model to estimate kinship between pairs of individualszookin
Define the model for the RZooRoHzoomodel
Plot HBD segments identified with the ZooROH modelzooplot_hbdseg
Plot individual curves with proportion of the genome in each HBD class or cumulated proportion in HBD classes with rates smaller than a threshold.zooplot_individuals
Plot the partitioning of the genome in different HBD classes for each individualzooplot_partitioning
Plot proportion of the genome associated with different HBD classeszooplot_prophbd
Run the ZooRoH modelzoorun