Simulate individual-level eQTL data

simulate_indv_eqtl(
  X,
  h2,
  n.causal.snps,
  n.causal.genes,
  pve.y.by.u0,
  n.u0,
  pve.u1.by.x,
  pve.y.by.u1,
  n.u1,
  pve.interaction,
  n.interaction,
  n.genes,
  n.covar.genes,
  num.mixtures = 1,
  resample.u0 = FALSE
)

Arguments

X

genotype matrix (individual x SNPs)

h2

heritability (proportion of variance of Y explained by genetic X)

n.causal.snps

X variables directly affecting on Y

n.causal.genes

Y variables directly regulated by X

pve.y.by.u0

proportion of variance of Y explained by U0

n.u0

number of covariates on Y

pve.u1.by.x

proportion of variance of U1 explained by X

pve.y.by.u1

proportion of variance of Y explained by U1

n.u1

number of covariates on Y

pve.interaction

proportion of variance of Y explained by interaction

n.interaction

number of genes interacting with the causal genes

n.genes

total number of genes (Y variables)

n.covar.genes

number of genes affected by covariates

num.mixtures

num of cell mixtures

Value

simulation results