- First commit of public version
- Includes full tests for all functions
- Nothing exported or documented yet
- Documented and exported all functions!
- Function
sim_popnow also returnsadmix_proportions_1, the admixture proportions of the founders, distinguished fromadmix_proportionswhich is the admixture proportions of the final generation (different ifG > 1). - Function
sim_geno:- First parameter is renamed from
admix_proportionstoadmix_proportions_1to emphasize that it should be the admixture proportions of the founders! - Optional parameter
p_anc_inputis renamed top_anc.
- First parameter is renamed from
- Function
sim_gen_phendebugged to use founder admixture proportions to draw genotypes for founders. The previous version had the bug becausesim_genodid not return founder admixture proportions, only last-generation values, but the bug only manifested ifG > 1. Bug was very recently introduced (compared to previous non-public code in a separate repository). - Function
sim_bimadded parameterpos_gap.
- Added package documentation with runnable examples.
- Also updated examples in individual functions to better match the package entry examples.
- Added README with examples from package documentation.
- Function
sim_genofixed a bug that fixed loci were redrawn without respectingp_ancif provided (no bug forp_anc = NULL). - Functions
sim_genoandsim_gen_phenadded optionbetafor a Beta distribution for ancestral allele frequencies.
- Function
sim_gen_phenadded elementp_ancto return list, needed in order to reuse the simulated genotypes to simulate new traits for them (for example, with different heritabilities). - Updated unit tests for function
sim_bimto expect columnaltbeforerefin return tibble (a change inherited from dependencygenio::make_bim()made ingenioversion 1.1.0.9000 (2022-04-20))