An R Package for Extended Behavior Genetics Analysis
Overview
Provides functions for behavior genetics analysis, including variance component model identification [Hunter et al. (2021) doi:10.1007/s10519-021-10055-x], calculation of relatedness coefficients using path-tracing methods [Wright (1922) doi:10.1086/279872; McArdle & McDonald (1984) doi:10.1111/j.2044-8317.1984.tb00802.x], inference of relatedness, pedigree conversion, and simulation of multi-generational family data [Lyu et al. (2025) doi:10.1007/s10519-025-10225-1]. For a full overview, see [Garrison et al. (2024) doi:10.21105/joss.06203]. For a big data application see [Burt et al. (2025) <doi: 10.1016/j.ebiom.2025.105911>.
CRAN submission
- Add OpenMx pedigree model builders and docs
- Added vignette for OpenMx pedigree model builders
- Add option for MZ twins in the additive genetic matrix
- Add option to select sex for MZ twin generation.
- Add option to tweak pedigree with one id provided
- Add helper functions for checkParents etc
- fixed incorrect direction so that parents are pointing to children in the graphs
- Optimize simulatePedigree and helpers for speed and memory usage
- Major gains (>x10) in speed for deeper pedigrees
- Added more tests for simulatePedigree
- Fix error when not enough single people available
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 1 earlier changeHide 1 earlier change
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 142 (56 internal)includes a package overview page
- Examples that run
- 43%6 run in a plain check · 8 never run
- Exported functions with examples
- 28%
- Documented parameters
- 98%
- Return-value docs
- 76%
- Help pages citing references
- 0%
- ASOIAF: How related are Jon and Danny? HTML
- Fitting Pedigree-Based Variance Component Models HTML
- Modeling variance components HTML
- Network tools for finding extended pedigrees and path tracing HTML
- Pedigree Simulation and Visualization HTML
- Understanding and Computing Relatedness from Pedigree Data HTML
- Validation HTML
Downloads
Repository
- PRs merged (all time)
- 94%
- Median days to close, 50 most recently updated closed issues
- 4
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
16 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/r-computing-lab/bgmisc on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-08-05 · The repository has a site deploy workflow
pkgdown site last built 2026-08-05
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-10-14Seen in the repository: .github/copilot-instructions.mdPull request: opened by its own accountCommits: 19 by its own account · at least 9 crediting it in the message
- Claude Codefirst seen 2026-02-09Named in .Rbuildignore: .claudeNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 7 crediting it in the message
- Claude Sonnet 4.63 commits · Jun 2026
Dependencies
Installing BGmisc adds 12 packages (8 with compiled code, 25 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, igraph 4.8 MB.
Code & Tests
Datasets
People & History
Previously maintained by Jonathan D. Trattner (0.1).
Show 4 peopleHide 4 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.6.0.1Latest2026-03-13 · current release · diff ↗ ·
removed 2 exports
evenInsert, insertEvenadded 5 exports
buildFamilyGroups, buildOneFamilyGroup, buildPedigreeModelCovariance, buildPedigreeMx, fitPedigreeModel - 1.5.2
- 1.5.0
- 1.4.3.12025-06-10 · diff ↗ ·
removed 2 exports
assignCoupleIDs, plotPedigreeadded 2 exports
addPersonToPed, determineSex - 1.4.12025-05-30 · diff ↗ ·
removed 5 exports
allGens, extractSummaryText, famSizeCal, parseTree, relatednessadded 17 exports
assignCoupleIDs, buildTreeGrid, calcAllGens, calcFamilySize, calculateCIs, checkParentIDs, computeParentAdjacency, getWikiTreeSummary, insertEven, readGed, readgedcom, repairIDs, summariseFamilies, summariseMatrilines, summarisePatrilines, summarisePedigrees, traceTreePaths - RR 4.5.0 released · 2025-04-11
- 1.3.52025-04-03 · diff ↗ ·
added 5 exports
checkPedigreeNetwork, com2links, extractSummaryText, parseTree, readWikifamilytree - 1.3.32025-02-19 · diff ↗
- 1.3.22024-06-18 · diff ↗
- 1.3.12024-06-16 · diff ↗ ·
removed 1 export
determineSexadded 6 exports
readGedcom, recodeSex, summarizeFamilies, summarizeMatrilines, summarizePatrilines, summarizePedigrees - RR 4.4.0 released · 2024-04-24
- 1.2.02024-02-26 · diff ↗ ·
added 11 exports
checkIDs, checkSex, createGenDataFrame, determineSex, dropLink, makeInbreeding, makeTwins, ped2maternal, ped2paternal, repairSex, resample - 1.0.12023-09-27 · diff ↗
- 1.02023-09-20 · diff ↗ ·
added 15 exports
SimPed, allGens, calculateRelatedness, evenInsert, famSizeCal, inferRelatedness, ped2add, ped2ce, ped2cn, ped2com, ped2fam, ped2graph, ped2mit, plotPedigree, simulatePedigree - RR 4.3.0 released · 2023-04-21
Show 4 earlier eventsHide 4 earlier events
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.12020-12-04
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-12-04
- Total releases
- 13 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 43 KB / 4 files
- Download size
- 610 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("BGmisc")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.06203.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.