sim_pop
now also returns admix_proportions_1
, the admixture proportions of the founders, distinguished from admix_proportions
which is the admixture proportions of the final generation (different if G > 1
).sim_geno
:admix_proportions
to admix_proportions_1
to emphasize that it should be the admixture proportions of the founders!p_anc_input
is renamed to p_anc
.sim_gen_phen
debugged to use founder admixture proportions to draw genotypes for founders.
The previous version had the bug because sim_geno
did not return founder admixture proportions, only last-generation values, but the bug only manifested if G > 1
.
Bug was very recently introduced (compared to previous non-public code in a separate repository).sim_bim
added parameter pos_gap
.sim_geno
fixed a bug that fixed loci were redrawn without respecting p_anc
if provided (no bug for p_anc = NULL
).sim_geno
and sim_gen_phen
added option beta
for a Beta distribution for ancestral allele frequencies.sim_gen_phen
added element p_anc
to return list, needed in order to reuse the simulated genotypes to simulate new traits for them (for example, with different heritabilities).sim_bim
to expect column alt
before ref
in return tibble (a change inherited from dependency genio::make_bim()
made in genio
version 1.1.0.9000 (2022-04-20))Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.