Description Usage Arguments Details Value
mxr_associate
outputs the results of the mixed linear model
association between the SNPs and the phenotype. It also outputs the REsidual
Maximun Likelihood (REML) estimates as well as the pseudoheritability
estimate. All calculations are done using EMMAX
http://genome.sph.umich.edu/wiki/EMMAX
1 2 | mxr_associate(tped_prefix, pheno_file, kin_file, out_prefix, cov_file = "",
verbose = F)
|
tped_prefix |
The path to the transposed '12' recoded plink file. The A1
allele (the minor allele – or effect allele) is recoded as "1", while A2
allele is recoded as "2". The complete call to plink is |
pheno_file |
The path to the phenotype file. There are three required columns: FID (family ID), IID (individual ID), and phenotype column. It is recommended that the phenotype column be approximately normally distributed, in which case, the warpedLMM software would be very useful. IMPORTANT: The samples need to be sorted according to how they are arranged in the genotype file. Missing phenotype values must be represented as 'NA'. |
kin_file |
The path to the kinship matrix file computed using emmax-kin.
Use the Balding-Nichols algorithm. Generate the kinship matrix by a call to
emmax-kin |
out_prefix |
Path and prefix of the output files. |
cov_file |
(Optional) Path to the covariate file. The first two columns of the covariate file must be the FID and IID of the samples. The third column must be a vector of '1'. Quantitative covariates start from the fourth column onward. |
verbose |
(Optional) Show verbose output. (DEFAULT=FALSE) |
Before running this function, make sure to compute EMMAX to compute the association of each SNP, coded as minor allele additive dosage (using –recode A in PLINK), with the phenotype.
TRUE if the EMMAX run completed successfully. FALSE, otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.