Gregor-Mendel-Institute / MultLocMixMod

An efficient multi-locus mixed-model approach for genome-wide association studies in structured populations
http://www.nature.com/ng/journal/v44/n7/full/ng.2314.html
GNU General Public License v3.0
11 stars 5 forks source link

MLMM

Introduction

This directory contains the mlmm package for the R programming language. It implements an efficient multi-locus mixed-model approach for genome-wide association studies in structured populations.

Authors and license

The main authors are Vincent Segura and Bjarni J. Vilhjalmsson. The code is available under the GNU Public License (version 3 and later). See the COPYING file for usage permissions.

Development

The content of this directory is versioned using git, the central repository being hosted on GitHub. Please report issues directly online.

Installation

For users, the easiest is to directly install the package from GitHub:

R> library(devtools); install_github("Gregor-Mendel-Institute/MultLocMixMod")

Note that this package depends on the emma package (not the one on CRAN, but the one from UCLA available here).

There is an issue in installing the original emma package on Windows, so Windows users must in place use emma_1.1.2.tar.gz which can be installed with the following command:

R> install.packages("https://github.com/Gregor-Mendel-Institute/mlmm/files/1356516/emma_1.1.2.tar.gz", repos = NULL)

For developpers, when editing the content of this repo, increment the version of the package in DESCRIPTION and execute the following commands:

$ Rscript -e 'library(devtools); devtools::document()'
$ R CMD build mlmm
$ R CMD check mlmm_<version>.tar.gz
$ sudo R CMD INSTALL mlmm_<version>.tar.gz

More information is available in Hadley Wickham's book.

Usage

Two main functions can be used to carry out GWAS with MLMM and plot the results from the analysis:

In their current versions, the MLMM functions do not allow for missing values in the genotype matrix. Whenever possible we would suggest imputing the genotypic data prior to the analysis.

Once the package is installed, browse the vignettes:

R> library(mlmm)
R> browseVignettes("mlmm")

When used for a scientific article, don't forget to cite it:

R> citation("mlmm")

See also citation() for citing R itself.