Last update: 24.4.2020
The paper is currently on bioRxiv and can be accessed here.
- R libraries
install.packages("tidyverse")
install.packages("AnnotationDbi")
install.packages("org.Hs.eg.db")
-
MAGMA and its auxiliary files
-
Partitioned LDSC and its auxiliary files
By following step 1) on your GWAS, you should then be able to run quickly the MAGMA association code and the LDSC code.
The code to reproduce our results is located in this repository.
The following links show the essential steps:
Once the GWAS sumstats are ready and the specificity files are ready, you can use the following code to test for associations using MAGMA.
If you want to run your GWAS with our specificity files, you just need to get the 'top10.txt' files in the different MAGMA folders.
Once the GWAS sumstats are ready and the specificity files are ready, you can use the following code to test for associations using LDSC.
Alternatively, you could use a nextflow pipeline located here
The code to look for heritability enrichment of the top 10% most specific genes was made to be run in parallele on a SLURM cluster. It would need to be adapted if you want to run it locally.
The paper describing EWCE is accessible here.
EWCE code is accessible here.