Package: simtrait 1.1.4.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]

simtrait_1.1.4.9000.tar.gz
simtrait_1.1.4.9000.zip(r-4.5)simtrait_1.1.4.9000.zip(r-4.4)simtrait_1.1.4.9000.zip(r-4.3)
simtrait_1.1.4.9000.tgz(r-4.4-any)simtrait_1.1.4.9000.tgz(r-4.3-any)
simtrait_1.1.4.9000.tar.gz(r-4.5-noble)simtrait_1.1.4.9000.tar.gz(r-4.4-noble)
simtrait_1.1.4.9000.tgz(r-4.4-emscripten)simtrait_1.1.4.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'))

Peer review:

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

On CRAN:

4.62 score 4 stars 21 scripts 137 downloads 11 exports 1 dependencies

Last updated 7 months agofrom:6bfb6f7dce. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 14 2024
R-4.5-winOKOct 14 2024
R-4.5-linuxOKOct 14 2024
R-4.4-winOKOct 14 2024
R-4.4-macOKOct 14 2024
R-4.3-winOKOct 14 2024
R-4.3-macOKOct 14 2024

Exports:allele_freqscov_traitherit_locipval_aucprpval_inflpval_power_calibpval_srmsdpval_type_1_errrmsdsim_traitsim_trait_mvn

Dependencies:PRROC

simtrait: Simulate Complex Traits from Genotypes

Rendered fromsimtrait.Rmdusingknitr::rmarkdownon Oct 14 2024.

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