The function runs Sobel or permutation testing

testTME(
  i,
  mediator,
  qtMed,
  transSNPs,
  pheno,
  sobel = F,
  nperms = 1000,
  cores,
  covariates,
  parallel = "no"
)

Arguments

i

integer, row of data.frame

mediator

data.frame, mediator intensities

qtMed

data.frame, mediator QTL results

transSNPs

vector, character vector of distal-eSNPs

sobel

logical, T/F to use Sobel test

nperms

integer, number of permutations

cores

integer, number of parallel ocres

covariates

data.frame, covariates

parallel

character, boots input for parallelization

Value

list with TME and P-value