Giter VIP home page Giter VIP logo

multlocmixmod's Introduction

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:

  • mlmm, the original MLMM as described in Segura, Vilhjálmsson et al. (Nat Gen 2012).

  • mlmm_cof, a modified version of MLMM that allows including a fixed covariate in the association model. This could be for example a matrix of principal components scores (MLMM version of the "PK" model) or any feature that would make sense to regress out (e.g. sex).

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.

multlocmixmod's People

Contributors

visegura avatar timeu avatar timflutre-perso avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.