|
| 1 | +# ============================================================================ # |
| 2 | +# CODE TO RUN # |
| 3 | +# Marta Alcalde Herraiz # |
| 4 | +# ============================================================================ # |
| 5 | +rm(list = ls()) |
| 6 | +library("dplyr") |
| 7 | +library("here") |
| 8 | +library("lubridate") |
| 9 | +library("pbatR") |
| 10 | +library("tableone") |
| 11 | +library("ggplot2") |
| 12 | +library("stringr") |
| 13 | +library("tidyverse") |
| 14 | +library("flextable") |
| 15 | +library("ftExtra") |
| 16 | +library("coloc") |
| 17 | +library("readr") |
| 18 | +library("tidyverse") |
| 19 | + |
| 20 | +source(here("R_Scripts/Functions.R")) |
| 21 | + |
| 22 | +# Directory where the data is |
| 23 | +dir_data <- 'D:/Projects/VaccineResponse_GWAS/' |
| 24 | +dir_ukb <- 'D:/Projects/VaccineResponse_GWAS/UKBiobank/' |
| 25 | +dir_results <- 'D:/Projects/VaccineResponse_GWAS/Results/' |
| 26 | + |
| 27 | +# Load codes |
| 28 | +source(here('R_Scripts','1-ImmuneResponse.R')) |
| 29 | +source(here('R_Scripts','2-Breakthrough.R')) |
| 30 | + |
| 31 | +# Run the GWAS in the RAP PLATFORM --------------------------------------------- |
| 32 | +source(here("R_Scripts","3-ComputePVal.R")) |
| 33 | + |
| 34 | +# Save the results within the "GWAS" folder under the names: |
| 35 | +# breakthroughSeverity.txt |
| 36 | +# breakthroughSeverity_Validation.txt |
| 37 | + |
| 38 | +# Run FUMA --------------------------------------------------------------------- |
| 39 | + |
| 40 | +# Colocalisation analysis ------------------------------------------------------ |
| 41 | +source(here("R_Scripts","4-Colocalisation.R")) |
| 42 | + |
| 43 | +# Validation ------------------------------------------------------------------- |
| 44 | +source(here("R_Scripts","5-Validation.R")) |
| 45 | + |
| 46 | +# SCRIPTS TO MAKE THE TABLES/FIGURES FROM THE PAPER ---------------------------- |
| 47 | +source(here("R_Scripts","6-CreateTables.R")) |
| 48 | + |
| 49 | +source(here("R_Scripts","7-CreateManhattanPlots.R")) |
| 50 | +source(here("R_Scripts","8-CreateValidationPlot.R")) |
| 51 | + |
| 52 | + |
0 commit comments