MAGMA is a tool for gene analysis and generalized gene-set analysis of GWAS data. It can be used to analyse both raw genotype data as well as summary SNP p-values from a previous GWAS or meta-analysis.


The manual can be downloaded here.

The primary publication for MAGMA is:

de Leeuw C, Mooij J, Heskes T, Posthuma D: MAGMA: Generalized gene-set analysis of GWAS data. PLoS Comput Biol 11(4): e1004219. doi:10.1371/journal.pcbi.1004219 (link)

When using MAGMA, please refer to this paper.

For questions, comments, feedback and feature requests, contact Christiaan de Leeuw. To be kept informed about important program updates, you can also send an email to join the (low-traffic) mailing list.

Program and auxiliary files

Download links for the program itself as well as a number of auxiliary files can be found below. For Linux, binaries were compiled on Debian but will also usually run on other distributions. Additional statically linked binaries are provided for both Linux and Windows. In case certain libraries cannot be found due to slight difference in operatin system versions (typically an error message regarding a missing .so or .dll file), using these may resolve the problem.

The MAGMA source code can also be downloaded below, which can be used to compile the program on the target system if this is not supported by the provided binaries (note that standard copyright still applies; the MAGMA binaries and source code may not be distributed or modified).

A log of all the major changes in the latest version can be found here.

MAGMA v1.06 (updated 06/12/2016)
Operating systemCompilerLink
Linux (Debian, 64 bits)Intel / icpcDownload
Linux (Debian, 64 bits, static linking)Intel / icpcDownload
Windows (64 bits)MinGW-w64Download
Windows (64 bits, static linking)MinGW-w64Download
Mac OS (64 bits)g++Download
Source code-Download
Auxiliary files

For the gene location files, gene locations for protein-coding genes were obtained from the NCBI site. Locations are defined as the region from transcription start site to transcription stop site. These location files contain Entrez gene IDs.

The SNP synonym file contains lists of synonymous SNP rs IDs that refer to the same SNP, up to date to dbSNP release 147. These synonyms can be included in MAGMA analyses to improve mapping of SNPs across different files, in particular SNP p-value files and reference data. The 1,000 Genomes reference data files below already include a data-specific synonym file.

Gene locations, build 38Download
Gene locations, build 37Download
Gene locations, build 36Download
SNP synonyms, dbSNP 147Download
Reference data

The reference data files are created from Phase 3 of 1,000 Genomes. The SNP locations in the data are in reference to human genome Build 37. An additional file with definitions of the sub-populations is available as well, which can be used to extract specific sub-populations from the 1,000 Genomes data files. Data-specific SNP synonym files are included with the data.

PopulationFile SizeLink
European485 MBDownload
African1053 MBDownload
East Asian438 MBDownload
South Asian518 MBDownload
Middle/South American489 MBDownload
Sub-population definitions15 KBDownload
Original version (v1.0)

For reference, the binary and source code for the original version of MAGMA (v1.0) corresponding to the MAGMA paper from 2014 (see reference and link above) is available here. This version of MAGMA is released under the GPL v3.0 license; note that this license applies only to MAGMA v1.0, standard copyright applies to all subsequent versions of MAGMA.