cross disorder revision
- Read H-MAGMA SCZ results
- Read TWAS SCZ results
- Select H-MAGMA genes that were detected in TWAS SCZ results
- Calculate FDR from the H-MAGMA
- Take FDR<0.05 genes from H-MAGMA
- Calculate TWAS FDR from TWAS.P
- Take FDR<0.05 genes from TWAS
- Make a Venn diagram with H-MAGMA genes vs. TWAS genes
- Run Fisher’s exact test (edited) 10.Repeat this for ASD and BD
- Load coloc results
- Take genes from coloc_result_sig$locus2gene: you should get ENSG IDs (remove .)
- Load eQTL source file: load("/proj/hyejunglab/eQTL/capstone4/eQTL/adultonly/eQTL_GRanges_colocinput.rda")
- Retrieve genes from qtlranges: qtlranges$gene -> remove . & unique -> this will be your background gene list
- Read H-MAGMA SCZ results
- Select H-MAGMA genes that were detected in background genes.
- Take FDR<0.05 genes from H-MAGMA
- Compare H-MAGMA genes from coloc genes from (2)
- Make a Venn diagram with H-MAGMA genes vs. coloc genes
- Run Fisher’s exact test