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

simEQTL(
  geno.loc,
  geno.dis,
  nqtl,
  b_qtls.loc,
  b_qtls.dis,
  eqtl_h2.loc,
  eqtl_h2.dis,
  numMed
)

Arguments

geno.loc

data.frame, reference genotypes for local SNPs

geno.dis

data.frame, reference genotypes for distal SNPs

nqtl

integer, sample size

b_qtls.loc

vector, local eQTLs effect sizes

b_qtls.dis

vector, distal eQTLs effect sizes

eqtl_h2.loc

numeric, local heritability of expression

eqtl_h2.dis

numeric, distal heritability of expression

numMed

integer, number of mediators

Value

list of matrices of local and distal simulated genotypes, expression, mediator intensities, vector of final distal eQTL effect sizes