ibdsim2
Simulation of Chromosomal Regions Shared by Family Members
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
446
Last 30 days
9430th
1.2K
Last 90 days
5.8K
Last year
Trend: +19.6% (30d vs prior 30d)
24
Last 30 days
115
Last 90 days
504
Last year
Trend: -40% (30d vs prior 30d)
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
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
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
Code & tests
Open call graph →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.
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
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
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.