Generate SNP effects given MAF, h2 and selection

generate_gwas_params(map, h2, S = 0, Pi = 1)

Arguments

map

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

h2

Variance explained by all SNPs

S

Selection coefficient on trait. Default = 0

Pi

Proportion of variants that have an effect - sampled randomly. Default=1

Value

data frame