Drug repositioning based on GWAS and CMap

The R code is based on the following paper

So, H. C., Chau, C. K., Chiu, W. T., Ho, K. S., Lo, C. P., Yim, S. H. Y., & Sham, P. C. (2016). When GWAS meets the Connectivity Map: drug repositioning for seven psychiatric disorders. bioRxiv, 096503.

We included R codes for comparing gene expression of GWAS-imputed transcriptome and drugs, as well as permutation test procedures.

We also included codes for testing enrichment of certain drug classes among the repositioning results.