R/theoretical_gwas.R
generate_gwas_params.Rd
Generate SNP effects given MAF, h2 and selection
generate_gwas_params(map, h2, S = 0, Pi = 1)
Data frame containing at least af
allele frequency and snp
SNP columns. SNPs must be unique, af
must be between 0 and 1. Optionally also include the chr, pos, ref, alt columns if using LD-aware simulations
Variance explained by all SNPs
Selection coefficient on trait. Default = 0
Proportion of variants that have an effect - sampled randomly. Default=1
data frame