This R package contains code used for testing which cell types can explain the heritability signal from GWAS summary statistics. The method was described in our 2018 Nature Genetics paper.
This package takes GWAS summary statistics + single-cell transcriptome specificity data (in EWCE’s CellTypeData format) as input. It then calculates and returns the enrichment between the GWAS trait and the cell-types.
Install MAGMA.Celltyping
as follows:
if(!require("remotes")) install.packages("remotes")
remotes::install_github("neurogenomics/MAGMA_Celltyping")
library(MAGMA.Celltyping)
MAGMA.Celltyping
now installs the command line software MAGMA
automatically when you first use a function that relies on
MAGMA
(e.g. celltype_associations_pipeline
). If you prefer, you can later
install other versions of MAGMA with:
MAGMA.Celltyping::install_magma(desired_version="<version>",
update = TRUE)
With the release of MAGMA_Celltyping
2.0 in January 2022, there have
been a number of major updates and bug
fixes.
- Only R>4.0.0 is supported. To use this package with older versions of
R, install
with:
remotes::install_github("neurogenomics/MAGMA_Celltyping@01a9e53")
Having trouble? Search the Issues or submit a new one.
Want to contribute new features/fixes? Pull Requests are welcomed!
Both are most welcome, we want the package to be easy to use for everyone!
If you use the software then please cite:
The package utilises the MAGMA software developed in the Complex Trait Genetics Lab at VU university (not us!) so please also cite:
de Leeuw, et al. MAGMA: Generalized gene-set analysis of GWAS data. PLoS Comput Biol, 2015.
If you use the EWCE package as well then please cite:
If you use MungeSumstats
to format your summary statistics then please
cite:
If you use the cortex/hippocampus single cell data associated with this package then please cite the following papers:
If you use the midbrain and hypothalamus single cell datasets associated with the 2018 paper then please cite the following papers:
UK Dementia Research Institute
Department of Brain Sciences
Faculty of Medicine
Imperial College London
GitHub
DockerHub