Package: simtrait 1.1.9.9000

Alejandro Ochoa

simtrait: Simulate Complex Traits from Genotypes

Simulate complex traits given a SNP genotype matrix and model parameters (the desired heritability, optional environment group effects, 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 is 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 (2023) <doi:10.7554/eLife.79238>.

Authors:Alejandro Ochoa [aut, cre], Grace E. Rhodes [aut]

simtrait_1.1.9.9000.tar.gz
simtrait_1.1.9.9000.zip(r-4.5)simtrait_1.1.9.9000.zip(r-4.4)simtrait_1.1.9.9000.zip(r-4.3)
simtrait_1.1.9.9000.tgz(r-4.5-any)simtrait_1.1.9.9000.tgz(r-4.4-any)simtrait_1.1.9.9000.tgz(r-4.3-any)
simtrait_1.1.9.9000.tar.gz(r-4.5-noble)simtrait_1.1.9.9000.tar.gz(r-4.4-noble)
simtrait_1.1.9.9000.tgz(r-4.4-emscripten)simtrait_1.1.9.9000.tgz(r-4.3-emscripten)
simtrait.pdf |simtrait.html
simtrait/json (API)
NEWS

# Install 'simtrait' in R:
install.packages('simtrait', repos = c('https://ochoalab.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ochoalab/simtrait/issues

On CRAN:

Conda:

5.32 score 5 stars 21 scripts 162 downloads 14 exports 1 dependencies

Last updated 3 months agofrom:dc8be4f16e. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 28 2025
R-4.5-winOKFeb 28 2025
R-4.5-macOKFeb 28 2025
R-4.5-linuxOKFeb 28 2025
R-4.4-winOKFeb 28 2025
R-4.4-macOKFeb 28 2025
R-4.3-winOKFeb 28 2025
R-4.3-macOKFeb 28 2025

Exports:allele_freqscov_traitherit_lociinv_var_est_bayesianp_anc_est_beta_mlepval_aucprpval_gcpval_inflpval_power_calibpval_srmsdpval_type_1_errrmsdsim_traitsim_trait_mvn

Dependencies:PRROC

simtrait: Simulate Complex Traits from Genotypes

Rendered fromsimtrait.Rmdusingknitr::rmarkdownon Feb 28 2025.

Last update: 2024-04-17
Started: 2019-02-10