gwas(y,gen,fam=NULL,chr=NULL,window=NULL)
NA
is allowed.0, 1, 2
, for founder homozygous, heterozygous and reference homozigous. NA
is alloThe base model for genome scanning includes the fixed effect ($Xb$), the marker ($Zu$), the polygene ($g$) and the residuals ($e$). If the $window$ term is specified, the model for genome scanning includes three extra terms, the left side genome ( $Zu[k-1]$ ), the right side genome ( $Zu[k+1]$ ) and window polygene ( $-g[k]$ ).
The polygenic term is calculated only once (Zhang et al 2010) using eigendecomposition with a GEMMA-like algorithm (Zhou ans Stephens 2012). Efficient inversion of capacitance matrix is obtained through the Woodbury matrix identities.
In order to analyze large dateset, one can avoid memory issues by using the function $gwas2$ that has the same arguments, except that the argument 'window' is not implemented.
Zhang et al. 2010. Mixed linear model approach adapted for genome-wide association studies. Nat. Genet. 42:355-360.
Zhou, X., & Stephens, M. (2012). Genome-wide efficient mixed-model analysis for association studies. Nature genetics, 44(7), 821-824.
data(tpod)
test=gwas(y=y,gen=gen[,1:240],fam=fam,chr=chr[1:12])
manhattan(test,type="p",lwd=3)
Run the code above in your browser using DataLab