generate_gwas_params: Generate SNP effects given MAF, h2 and selection

View source: R/theoretical_gwas.R

generate_gwas_paramsR Documentation

Generate SNP effects given MAF, h2 and selection

Description

Generate SNP effects given MAF, h2 and selection

Usage

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


explodecomputer/simulateGP documentation built on April 3, 2024, 2:38 a.m.