testGyriq(compResid, G, w, ker = "LIN", asv = NULL, method = "davies", starResid = NULL, bsw = NULL, tsw = NULL, pos = NULL, sf = FALSE, fileOut = "outGyriq.out")asv can be left as
NULL. This argument has no effect if method is not equal to "davies".method is not
equal to "rspOrd" or "rspMom".sfInit and
sfLibrary respectively. See the reference manual of snowfall
for details. When cluster computing is used, the p-value for each sliding
window is computed on a separate node.FirstSNP: Rank of the SNP corresponding to the lower bound of
the sliding window in the SNP-set
LastSNP: Rank of the SNP corresponding to the upper bound of
the sliding window in the SNP-set
winSize: Number of SNPs in the sliding window
Start: Position of the SNP corresponding to the lower bound of
the sliding window
Stop: Position of the SNP corresponding to the upper bound of
the sliding window
Score: Score statistic of the association test
P-value: P-value of the association test
Message: 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 CompQuadForm (Duchesne and Lafaye De Micheaux, 2010).
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.
Lin X, Zhou Q. 2015. coxKM: Cox kernel machine SNP-set association test. R package version 0.3, URL http://www.hsph.harvard.edu/xlin/software.html#coxkm.
Lin X, Cai T, Wu M, Zhou Q, Liu G, Christiani D, Lin X. 2011. Survival kernel machine SNP-set analysis for genome-wide association studies. Genetic Epidemiology 35:620-631.
Cai T, Tonini G, Lin X. 2011. Kernel machine approach to testing the significance of multiple genetic markers for risk prediction. Biometrics 67:975-986.
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