Skip to main content

Fast GWAS

Project description

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 pip installed, installation is as easy as:

pip install fastlmm

Detailed Package Install Instructions:

fastlmm has the following dependencies:

python 3.7+ or python 2.7+

Packages:

  • scipy
  • numpy
  • pandas
  • matplotlib
  • scikit.learn (sklearn)
  • dill
  • mkl
  • pysnptools
  • cython
  • optional: [statsmodels -- install only required for logistic-based tests, not the standard linear LRT]

(1) Installation of dependent packages

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

(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

Note, if this fails with a gcc permission denied error, then specifying the correct compiler will likely fix the problem, e.g.

python setup.py build_ext --inplace --compiler=msvc

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. If you have VisualStudio2008 installed (which was used to build python2.7) you need to nothing more. Otherwise, follow these instructions:

If you have Visual Studio 2010 installed, execute:

SET VS90COMNTOOLS=%VS100COMNTOOLS%

or with Visual Studio 2012 installed:

SET VS90COMNTOOLS=%VS110COMNTOOLS%

or with Visual Studio 2013 installed:

SET VS90COMNTOOLS=%VS120COMNTOOLS%

or with Visual Studio 2015 installed:

SET VS90COMNTOOLS=%VS130COMNTOOLS%

or with Visual Studio 2017 installed:

SET VS90COMNTOOLS=%VS140COMNTOOLS%

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".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastlmm-0.4.2.tar.gz (59.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fastlmm-0.4.2-cp37-cp37m-win_amd64.whl (11.9 MB view details)

Uploaded CPython 3.7mWindows x86-64

fastlmm-0.4.2-cp27-cp27m-win_amd64.whl (11.9 MB view details)

Uploaded CPython 2.7mWindows x86-64

File details

Details for the file fastlmm-0.4.2.tar.gz.

File metadata

  • Download URL: fastlmm-0.4.2.tar.gz
  • Upload date:
  • Size: 59.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastlmm-0.4.2.tar.gz
Algorithm Hash digest
SHA256 5d7e0c257ff253bf712c8fa4d3c7ec473daf882c2bc0d31cb8eb3b09981aa32f
MD5 d0f02023c149891e6af4b45e4613f431
BLAKE2b-256 91f15cde94a95115e5975c53ee67b3595ee48825b78d59915901126a9c100af2

See more details on using hashes here.

File details

Details for the file fastlmm-0.4.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: fastlmm-0.4.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastlmm-0.4.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9ced635503bc4f58a87c3afeeec2f619c13e9c0007724c1673c3c5b7dc4318de
MD5 64215dd247c11c1274b6faaf7e1b96d8
BLAKE2b-256 2266c81b30d10e1098dd336d914d90cf3d0b1ee6be0c5a15b0ff72da1578d0a3

See more details on using hashes here.

File details

Details for the file fastlmm-0.4.2-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: fastlmm-0.4.2-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for fastlmm-0.4.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 c17c1041863731d7948a898706e81c6f92b709148b454201a0a4d0acadebb05f
MD5 08afa079f85cbb57ee14f8e66cc6c9e8
BLAKE2b-256 42d26d16dda4f3aaafb111cca5b06d1b641977ce905277def53b958fb662598e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page