Giter VIP home page Giter VIP logo

fast-lmm's Introduction

FaST-LMM

FaST-LMM, which stands for Factored Spectrally Transformed Linear Mixed Models, is a program for performing genome-wide association studies (GWAS) on datasets of all sizes, up to one millions samples.

This release contains the following features, each illustrated with an IPython notebook.

Improvements:

A C++ version, which is generally less functional, is available. See http://fastlmm.github.io/.

Documentation

Code

Contacts

Quick install:

If you have Anaconda installed, installation is as easy as:

conda install "mkl==2019.4" "scipy>=1.1.0" "numpy>=1.11.3"
pip install fastlmm

(1) Installation of dependent packages

You must have the mkl 2019.4 (and related) packages installed. It is not available via pip, but the conda command above will install it.

We recommend using a Python distribution such as Anaconda. This distribution can be used on Linux, Windows, and Mac and is free. It is the easiest way to get all the required package dependencies, especially the those related to the MKL library.

(2) Installing from source

Go to the directory where you copied the source code for fastlmm.

On Linux:

At the shell, type:

sudo python setup.py install

On Windows:

At the OS command prompt, type

python setup.py install

For developers (and also to run regression tests)

When working on the developer version, first add the src directory of the package to your PYTHONPATH environment variable.

For building C-extensions, first make sure all of the above dependencies are installed (including cython)

To build extension (from .\src dir), type the following at the OS prompt:

python setup.py build_ext --inplace

Don't forget to set your PYTHONPATH to point to the directory above the one named fastlmm in the fastlmm source code. For e.g. if fastlmm is in the [somedir] directory, then in the unix shell use:

export PYTHONPATH=$PYTHONPATH:[somedir]

Or in the Windows DOS terminal, one can use:

set PYTHONPATH=%PYTHONPATH%;[somedir]

(or use the Windows GUI for env variables).

Note for Windows: You must have Visual Studio installed.

Running regression tests

From the directory tests at the top level, run:

python test.py

This will run a series of regression tests, reporting "." for each one that passes, "F" for each one that does not match up, and "E" for any which produce a run-time error. After they have all run, you should see the string "............" indicating that they all passed, or if they did not, something such as "....F...E......", after which you can see the specific errors.

Note that you must use "python setup.py build_ext --inplace" to run the regression tests, and not "python setup.py install".

fast-lmm's People

Contributors

carlkcarlk avatar clippert avatar cwidmer avatar heckerma avatar nfusi avatar gaow avatar dslituiev avatar omerwe 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.