Simulation of Chromosomal Regions Shared by Family Members
Overview
Simulation of chromosomal segments shared identical-by-descent (IBD) among pedigree members. Using sex-specific recombination rates along the human genome (Halldorsson et al. (2019) doi:10.1126/science.aau1043), phased chromosomes are simulated for all pedigree members. Applications include calculation of realised relatedness coefficients and IBD segment distributions. 'ibdsim2' is part of the 'pedsuite' collection of packages for pedigree analysis. A detailed presentation of the 'pedsuite', including a separate chapter on 'ibdsim2', is available in the book 'Pedigree analysis in R' (Vigeland, 2021, ISBN:9780128244302). A 'Shiny' app for visualising and comparing IBD distributions is available at https://magnusdv.shinyapps.io/ibdsim2-shiny/.
Package changes
- Fixed and substantially sped up
profileSimIBD(), particularly for dense marker panels. Seeded results may differ from earlier versions. ibdsim()is more efficient in some cases, by skipping recombination in pedigree branches that cannot affect the output. (In such cases, seeded results may differ from earlier versions.)launchApp()now checks all optional app dependencies.- Better input checks in
uniformMap()andconvertPos(). zeroIBD()now merges adjacent IBD segments before applying length thresholds.- Fixed rare bug in
findPattern().
App changes
- Improved checks of user input.
- Fixed plotting bug when simulated values have no variation.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
- Help pages
- 21 (1 internal)includes a package overview page
- Examples that run
- 80%16 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 3 never run
- Exported functions with examples
- 100%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 10%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 52
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/magnusdv/ibdsim2 on 2026-10-21.
Dependencies
Installing ibdsim2 adds 30 packages (13 with compiled code, 18 MB of source tarballs). Heaviest: ggplot2 6.0 MB, Rcpp 1.8 MB, isoband 1.5 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 2.3.3Latest
- RR 4.6.0 released · 2026-04-24
- 2.3.22025-11-23 · diff ↗
- 2.3.12025-08-22 · diff ↗
- 2.3.02025-07-22 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.2.02025-03-03 · diff ↗
- 2.1.12024-09-08 · diff ↗
- 2.1.0
- RR 4.4.0 released · 2024-04-24
- 2.0.0
- RR 4.3.0 released · 2023-04-21
- 1.5.02022-06-07 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.4.0
- RR 4.1.0 released · 2021-05-18
Show 4 earlier eventsHide 4 earlier events
- 1.3.0
- 1.22020-07-12 · diff ↗ ·
added 6 exports
customMap, estimateKinship, estimateTwoLocusKinship, haploDraw, loadMap, realisedIdentity - 1.12020-06-28
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-06-28
- Total releases
- 13 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.2.0
- Bundled data
- 869 KB / 1 file
- Download size
- 1.4 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("ibdsim2")The package provides a citation file, so citation() returns the authors' own entry.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.