Skip to content

ibdsim2

Simulation of Chromosomal Regions Shared by Family Members

v2.3.2 · Nov 23, 2025 · GPL-3

Description

Simulation of segments shared identical-by-descent (IBD) by 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/>.

Downloads

CRAN

446

Last 30 days

9430th

1.2K

Last 90 days

5.8K

Last year

Trend: +19.6% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

115

Last 90 days

504

Last year

Trend: -40% (30d vs prior 30d)

autoCRAN

10

Last 7 days

21

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/ibdsim2.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

97 28 exported

Complexity

6.2 avg / 27 max

Call network

97 nodes / 153 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

5,780

Files

73

Compiled share

5%

Has compiled src

Yes

Language breakdown

R 3,773 (65.3%)C/C++/src 290 (5%)Tests 231 (4%)Docs 1,486 (25.7%)

API

Exported functions

28

Internal functions

54

Testing & CI

Has tests

Yes

Test-to-code ratio

0.06

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

88.2%

\dontrun example ratio

20%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

50%

Unsafe pattern score

0

Dep constraint coverage

40%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.2.0

System requirements

C++ standard

License

GPL-3

License flags

SPDX valid, OSI approved

History

Versions

12

First release

2020-06-28

Latest release

2025-11-23

Avg cadence

141 days

Cold removal rate

Dep drift

0

LOC over versions

v1.1: 2,603 LOCv1.2: 3,590 LOCv1.3.0: 3,896 LOCv1.4.0: 4,214 LOCv1.5.0: 4,574 LOCv2.0.0: 5,512 LOCv2.1.0: 5,565 LOCv2.1.1: 5,569 LOCv2.2.0: 5,579 LOCv2.3.0: 5,742 LOCv2.3.1: 5,750 LOCv2.3.2: 5,780 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (3)

imports

suggests

Dependency Network

Dependencies Reverse dependencies pedtools ggplot2 glue Rcpp ribd ibdfindr pedsuite forrel ibdsim2

Version History

13 tracked
new 2.3.2 Mar 10, 2026
updated 2.3.2 ← 2.3.1 diff Nov 22, 2025
updated 2.3.1 ← 2.3.0 diff Aug 21, 2025
updated 2.3.0 ← 2.2.0 diff Jul 21, 2025
updated 2.2.0 ← 2.1.1 diff Mar 2, 2025
updated 2.1.1 ← 2.1.0 diff Sep 7, 2024
updated 2.1.0 ← 2.0.0 diff Aug 16, 2024
updated 2.0.0 ← 1.5.0 diff Aug 16, 2023
updated 1.5.0 ← 1.4.0 diff Jun 6, 2022
updated 1.4.0 ← 1.3.0 diff Jul 23, 2021
updated 1.3.0 ← 1.2 diff Nov 12, 2020
updated 1.2 ← 1.1 diff Jul 11, 2020
new 1.1 Jun 27, 2020