simGWAS.Rd
The function creates a eQTL reference panel for MOSTWAS methods with genotypes, expression, mediator intensities, and QTLs.
simGWAS(geno.loc, geno.dis, ngwas, b_qtls.loc, b_qtls.dis, var_explained)
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 |
list of GWAS summary statistics, total eQTL effect size, matrix of simulated genotypes, vector of trait