simGWAS: Simulate eQTL reference panel

View source: R/simGWAS.R

simGWASR Documentation

Simulate eQTL reference panel

Description

The function creates a eQTL reference panel for MOSTWAS methods with genotypes, expression, mediator intensities, and QTLs.

Usage

simGWAS(geno.loc, geno.dis, ngwas, b_qtls.loc, b_qtls.dis, var_explained)

Arguments

geno.loc

data.frame, reference genotypes for local SNPs

geno.dis

data.frame, reference genotypes for distal SNPs

ngwas

integer, sample size

b_qtls.loc

vector, local eQTLs effect sizes

b_qtls.dis

vector, distal eQTLs effect sizes

var_explained

numeric, total variance explained in phenotype

Value

list of GWAS summary statistics, total eQTL effect size, matrix of simulated genotypes, vector of trait


bhattacharya-a-bt/MOSTWAS documentation built on April 6, 2023, 12:20 a.m.