Package: simtrait 1.1.4.9000
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:
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')) |
Bug tracker:https://github.com/ochoalab/simtrait/issues
Last updated 7 months agofrom:6bfb6f7dce. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 14 2024 |
R-4.5-win | OK | Oct 14 2024 |
R-4.5-linux | OK | Oct 14 2024 |
R-4.4-win | OK | Oct 14 2024 |
R-4.4-mac | OK | Oct 14 2024 |
R-4.3-win | OK | Oct 14 2024 |
R-4.3-mac | OK | Oct 14 2024 |
Exports:allele_freqscov_traitherit_locipval_aucprpval_inflpval_power_calibpval_srmsdpval_type_1_errrmsdsim_traitsim_trait_mvn
Dependencies:PRROC
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Compute locus allele frequencies | allele_freqs |
The model covariance matrix of the trait | cov_trait |
Per-locus heritability contribution from allele frequency and causal coefficient | herit_loci |
Area under the precision-recall curve | pval_aucpr |
Calculate inflation factor from p-values | pval_infl |
Estimate calibrated power | pval_power_calib |
Signed RMSD measure of null p-value uniformity | pval_srmsd |
Estimate type I error rate | pval_type_1_err |
Root mean square deviation | rmsd |
Simulate a complex trait from genotypes | sim_trait |
Simulate traits from a kinship matrix under the infinitesimal model | sim_trait_mvn |
simtrait: simulate complex traits from genotypes | simtrait-package simtrait |