Learn R Programming

RZooRoH (version 0.4.1)

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

Description

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) and Druet and Gautier (2022) .

Copy Link

Version

Install

install.packages('RZooRoH')

Monthly Downloads

282

Version

0.4.1

License

GPL-3

Maintainer

Tom Druet

Last Published

June 8th, 2025

Functions in RZooRoH (0.4.1)

predhbd

Extracts the IBD probabilities from the kres object
merge_zres

Merge several zres objects generated by zoorun
rara_mix10l

The result of an analysis on 22 sheeps from Rasa Aragonesa population.
update_zres

Update one main zres object with new results
zoodata

Read the genotype data file
zoorun

Run the ZooRoH model
zooplot_prophbd

Plot proportion of the genome associated with different HBD classes
realized

Extracts the realized autozygosity from the zres object
typs

Subset of a dataset with genotypes for 6 individuals from a cattle population.
zooplot_hbdseg

Plot HBD segments identified with the ZooROH model
rohbd

Extracts the HBD segments from the zres object
zooplot_partitioning

Plot the partitioning of the genome in different HBD classes for each individual
zooplot_individuals

Plot individual curves with proportion of the genome in each HBD class or cumulated proportion in HBD classes with rates smaller than a threshold.
cumkin

Computes the realized kinship
soay_mix10l

The result of an analysis on 110 sheeps from the Soay population.
genoex

Subset of a dataset with genotypes for 20 sheeps
BBB_samples

A file with names or IDs for ten samples.
cumhbd

Computes the realized inbreeding coefficient
BBB_NMP_pl_subset

Example for "pl" format specification
BBB_NMP_GP_subset

Example for "gp" format specification
BBB_PE_gt_subset

Example for "gt" format specification
zoomodel

Define the model for the RZooRoH
probhbd

Extracts the HBD probabilities from the zres object
zookin

Use the ZooRoH model to estimate kinship between pairs of individuals
wilt_mix10l

The result of an analysis on 23 sheeps from Wiltshire population.
kintaf_mix4l

The result of a kinship analysis on 18 cattle from the Amsterdam Island.
genosim

Example from a small simulated data set
RZooRoH-package

RZooRoH: Partitioning of Individual Autozygosity into Multiple Homozygous-by-Descent Classes
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).
BBB_NMP_ad_subset

Example for "ad" format specification
map1

The map for local IBD probabilities for a pair of individuals among the 18 cows from the Amsterdam Island (recent only).
typsfrq

A file with marker allele frequencies for the cattle population.