Sample QTL effects under a specified architecture.
Arguments
- G
Genotype matrix
- ncausal
Output from function parse_num_causal_snps, how many variants have non-negative effects (being causal)
- ntrait
Number of simulated phenotypes (traits)
- is_h2g_total
Logical indicating if h2g is total (TRUE) or per-SNP (FALSE).
if is "all", all traits will have the same causal variant(s) with non-zero effect. if is "random", all traits will have independent (random) causal variant(s)