-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScript_Overview.R
More file actions
executable file
·82 lines (65 loc) · 2.18 KB
/
Copy pathScript_Overview.R
File metadata and controls
executable file
·82 lines (65 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
rm(list = ls())
library(dplyr)
library(maplet)
library(reshape)
library(readxl)
library(sva)
library(stringr)
library(ggplot2)
library(glmnet)
library(caret)
library(nlme)
library(parallel)
library(ggpubr)
library(openxlsx)
library(chanmetab)
library(sva)
library(sas7bdat)
library(tidyverse)
library(survival)
library(mgcv)
library(data.table)
library(Biobase)
library(glue)
library(gt)
library(gtsummary)
library(viridis)
library(ggrepel)
library(cowplot)
library(grid)
setwd("~/keto-metabolomics/SchweickartAnnalise_HypocaloricDiets_022025")
source("Scripts/internal_functions.R")
manuscript_folder <-
"/udd/nhast/keto-metabolomics/SchweickartAnnalise_HypocaloricDiets_022025"
# Script Run order:
# 01: Preprocess and save controlled trials data, filter metabolites
# Outputs ExpressionSets in excel sheets to
# "Processed_Data_and_Results" folder
source("Scripts/01_Preprocess_Controlled_Trials_data.R")
# 01: Find differential metabolites by diet
# Outputs betas in excel sheets to
# "Processed_Data_and_Results" folder
source("Scripts/02_get_differential_metabolites.R")
# 03: Preprocess and save NHS data, filter metabolites
# Outputs ExpressionSets in excel sheets to
# "Processed_Data_and_Results" folder
source("Scripts/03_Preprocess_NHS_data.R")
# 04: Calculate diet score for each subject, combine with metadata
# Outputs combined diet scores and metadata for both NHS1 and NHS2 and
# KD and LFD to "Processed_Data_and_Results" folder
source("Scripts/04_load_save_data.R")
# 05: Runs MWAS of metabolites with breast cancer outcome
# Outputs results to excel file in
# "Processed_Data_and_Results"
source("Scripts/05_run_mwas.R")
# 06: Calculation of concordance values for each metabolite in diet scores
# And comparison of concordance values with fold changes
# Outputs concordance information in .RData file to
# "Processed_Data_and_Results"
source("Scripts/06_calculate_metabolite_concordance.R")
# Create Manuscript Tables
rmarkdown::render("Schweickart_2025_Tables.Rmd")
# Create Manuscript Figures
rmarkdown::render("Schweickart_2025_Figures.Rmd")
# Get Manuscript Data in Text
rmarkdown::render("Schweickart_2025_Data_In_Text.Rmd")