tMatFunction:
computing t statistics for each phentoype at each marker
Description
A subfunction used by main function to compute the t statistic for each phenotype at each marker.
Usage
tMatFunction(mytrait, mygt, fileName = "")
Arguments
mytrait
phenotype data: a nTrait-by-nSample matrix
mygt
genotype data: a nMarker-by-nSample matrix with two allels being 0 and 1 (or A and B)
or three allels being 0, 0.5 and 1 (or, A, H, and B), where 0.5 (or H) represents
heterozygous allele.
fileName
name for temporary output file during computing process. Default=NULL
Value
a matrix with nTrait x nMarker with t.statistics
References
Li Y. et al, reGenotyper: detecting mislabeled samples in genetic data (submitted).
Shabalin A. A., Matrix eQTL: ultra fast eQTL analysis via large matrix operations, Bioinformatics (2012) 28 (10): 1353-1358.