simtrait: Simulate Complex Traits from Genotypes

Simulate complex traits given a SNP genotype matrix and model parameters (the desired heritability, number of causal loci, and either the true ancestral allele frequencies used to generate the genotypes or the mean kinship for a real dataset). Emphasis on avoiding common biases due to the use of estimated allele frequencies. The code selects random loci to be causal, constructs coefficients for these loci and random independent non-genetic effects, and can optionally generate random group effects. Traits can follow three models: random coefficients, fixed effect sizes, and infinitesimal (multivariate normal). GWAS method benchmarking functions are also provided. 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.3
URL https://github.com/OchoaLab/simtrait
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("simtrait")

Try the simtrait package in your browser

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

simtrait documentation built on Jan. 7, 2023, 1:10 a.m.