lmekin
function which is modified from
the same named function in package kinship
is used. As kinship
package has been archived, GWAF
package now
includes functions from kinship
package to support the modified lmekin
function. Archived kinship
package can be found
at http://cran.r-project.org/web/packages/kinship/index.html.lmepack.batch(phenfile, genfile, pedfile, phen, kinmat, model = "a", covars = NULL,
outfile, col.names = T, sep.ped = ",", sep.phe = ",", sep.gen = ",")
outfile
.
When the genetic model is 'a', 'd' or 'r', the result includes the following columns.
When the genetic model is 'g', beta
and se
are replaced with beta10
,
beta20
, beta21
, se10
, se20
, se21
.beta
beta
not equal to zerobeta10
beta20
beta21
lmepack.batch
function first reads in and merges phenotype-covariates, genotype
and pedigree files, then tests the association of phen
against all SNPs in genfile
.
genfile
contains unique individual id and genotype data, with the column names being "id" and SNP names.
For each SNP, the genotype data should be coded as 0, 1, 2 indicating the numbers of the coded alleles. The SNP name in genotype file should not have any
dash, '-' and other special characters(dots and underscores are OK). phenfile
contains unique individual id,
phenotype and covariates data, with the column names being "id" and phenotype and
covaraite names. pedfile
contains pedigree informaion, with the column names being
"famid","id","fa","mo","sex". In all files, missing value should be an empty space, except missing parental id in pedfile
.
SNPs with low genotype counts (especially minor allele homozygote) may be omitted
or analyzed with dominant model. The lmepack.batch
function fits LME model using a modified lmekin
function from kinship
package.Abecasis, G. R., Cardon, L. R., Cookson, W. O., Sham, P. C., & Cherny, S. S. Association analysis in a variance components framework. Genet Epidemiol, 21 Suppl 1, S341-S346 (2001).