calculate_phenotypes
calculate_phenotypes (key:jax.Array, population:chewc.structs.Population, trait:chewc.structs.Trait, heritability:jax.Array)
Return (phenotypes, true_breeding_values). Calculates phenotypes by modeling G = A + D.
| Type | Details | |
|---|---|---|
| key | Array | |
| population | Population | |
| trait | Trait | |
| heritability | Array | Narrow-sense h^2, shape: (n_traits,) |
| Returns | Tuple |
compute_dosage
compute_dosage (population:chewc.structs.Population)
Computes allele dosage. Shape: (n_ind, n_chr, n_loci)