testGyriq(compResid, G, w, ker = "LIN", asv = NULL, method = "davies",
starResid = NULL, bsw = NULL, tsw = NULL, pos = NULL, sf = FALSE,
fileOut = "outGyriq.out")FirstSNP: Rank of the SNP corresponding to the lower bound of
the sliding window in the SNP-setLastSNP: Rank of the SNP corresponding to the upper bound of
the sliding window in the SNP-setwinSize: Number of SNPs in the sliding windowStart: Position of the SNP corresponding to the lower bound of
the sliding windowStop: Position of the SNP corresponding to the upper bound of
the sliding windowScore: Score statistic of the association testP-value: P-value of the association testMessage: If the calculation of the p-value failed, the
corresponding error message is given. Otherwise, "OK" is displayed.G. Otherwise, the score
statistic and the p-value are computed for each window sequentially.In each run, the score statistic, which has a quadratic form following a
mixture of chi-squared variables, is calculated from the completed vector of
residuals and a kernel matrix. The p-value is obtained using a permutation
approach based on matching moments described in Lee et al. (2012), a standard
permutation procedure or the Davies approximation (Davies, 1980) implemented
in the package
Warning: No missing data is allowed for compResid, G,
w and starResid.
Davies RB. 1980. The distribution of a linear combination of $\chi^2$ random variables. J R Stat Soc Ser C 29:323-333.
Lee S, Emond MJ, Bamshad MJ et al. 2012. Optimal unified approach for rare-variant association testing with application to small-sample case-control whole-exome sequencing studies. Am J Hum Genet 91:224-237.
Duchesne P, Lafaye De Micheaux P. 2010. Computing the distribution of quadratic forms: further comparisons between the Liu-Tang-Zhang approximation and exact methods. Comput Stat Data Anal 54:858-862.
data(simGyriq)
for (i in seq_along(simGyriq)) assign(names(simGyriq)[i], simGyriq[[i]])
cr <- genComplResid(U, Delta, Phi, blkID, m=50, X)
testGyriq(cr$compResid, G, w, ker="LIN", asv=NULL, method="davies",
starResid=NULL, bsw, tsw, pos)Run the code above in your browser using DataLab