simfam: Simulate and Model Family Pedigrees with Structured Founders

The focus is on simulating and modeling families with founders drawn from a structured population (for example, with different ancestries or other potentially non-family relatedness), in contrast to traditional pedigree analysis that treats all founders as equally unrelated. Main function simulates a random pedigree for many generations, avoiding close relatives, pairing closest individuals according to a 1D geography and their randomly-drawn sex, and with variable children sizes to result in a target population size per generation. Auxiliary functions calculate kinship matrices, admixture matrices, and draw random genotypes across arbitrary pedigree structures starting from the corresponding founder values. The code is built around the plink FAM table format for pedigrees. Described in Yao and Ochoa (2022) <doi:10.1101/2022.03.25.485885>.

Package details

AuthorAlejandro Ochoa [aut, cre] (<https://orcid.org/0000-0003-4928-3403>)
MaintainerAlejandro Ochoa <alejandro.ochoa@duke.edu>
LicenseGPL (>= 3)
Version1.1.6
URL https://github.com/OchoaLab/simfam
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("simfam")

Try the simfam package in your browser

Any scripts or data that you put into this service are public.

simfam documentation built on Jan. 10, 2023, 1:06 a.m.