testTME.RdThe function runs Sobel or permutation testing
testTME( i, mediator, qtMed, transSNPs, pheno, sobel = F, nperms = 1000, cores, covariates, parallel = "no" )
| 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 |
list with TME and P-value