|
a |
|
b/6-Figure scripts/Fig E3.r |
|
|
1 |
library(readxl) |
|
|
2 |
library(ggplot2) |
|
|
3 |
library(ggrepel) |
|
|
4 |
|
|
|
5 |
excel_sheets("Fig E3 Source Data.xlsx") |
|
|
6 |
|
|
|
7 |
# Figure E3a ------------------ |
|
|
8 |
dat <- read_excel("Fig E3 Source Data.xlsx", sheet = "Metabolome") |
|
|
9 |
|
|
|
10 |
FigE3a.metab <- ggplot(dat) + |
|
|
11 |
geom_point(aes(x=NEU, y=EOS), size=2)+ |
|
|
12 |
theme_bw()+ theme(panel.grid = element_blank()) + |
|
|
13 |
geom_hline(yintercept = 0, linetype="twodash") + |
|
|
14 |
geom_hline(yintercept = 1, linetype="dashed") + |
|
|
15 |
geom_hline(yintercept = -1, linetype="dashed") + |
|
|
16 |
geom_vline(xintercept = -1, linetype="dashed") + |
|
|
17 |
geom_vline(xintercept = 0, linetype="twodash") + |
|
|
18 |
geom_vline(xintercept = 1, linetype="dashed") + |
|
|
19 |
xlab("Correlation NEU: Directionality x - log(P)")+ |
|
|
20 |
ylab("Correlation EOS: Directionality x - log(P)")+ |
|
|
21 |
ggtitle("Differential MetaB modules") |
|
|
22 |
FigE3a.metab |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
# Figure E3b ------------------ |
|
|
26 |
dat <- read_excel("Fig E3 Source Data.xlsx", sheet = "Transcriptome") |
|
|
27 |
|
|
|
28 |
FigE3b.hostT <- ggplot(dat) + |
|
|
29 |
geom_point(aes(x=NEU, y=EOS), size=2)+ |
|
|
30 |
theme_bw()+ theme(panel.grid = element_blank()) + |
|
|
31 |
geom_hline(yintercept = 0, linetype="twodash") + |
|
|
32 |
geom_hline(yintercept = 1, linetype="dashed") + |
|
|
33 |
geom_hline(yintercept = -1, linetype="dashed") + |
|
|
34 |
geom_vline(xintercept = -1, linetype="dashed") + |
|
|
35 |
geom_vline(xintercept = 0, linetype="twodash") + |
|
|
36 |
geom_vline(xintercept = 1, linetype="dashed") + |
|
|
37 |
xlab("Correlation NEU: Directionality x - log(P)")+ |
|
|
38 |
ylab("Correlation EOS: Directionality x - log(P)")+ |
|
|
39 |
ggtitle("Differential HostT modules") |
|
|
40 |
FigE3b.hostT |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
# Figure E3c ------------------ |
|
|
44 |
dat <- read_excel("Fig E3 Source Data.xlsx", sheet = "Sputum Proteome") |
|
|
45 |
colnames(dat)[1] <- "Label" |
|
|
46 |
|
|
|
47 |
FigE3c.sputum <- ggplot(dat) + |
|
|
48 |
geom_point(aes(x=NEU, y=EOS), size=2)+ |
|
|
49 |
geom_text_repel(aes(x=NEU,y=EOS, label = Label),size=3) + |
|
|
50 |
theme_bw()+ theme(panel.grid = element_blank()) + |
|
|
51 |
geom_hline(yintercept = 0, linetype="twodash") + |
|
|
52 |
geom_hline(yintercept = 1, linetype="dashed") + |
|
|
53 |
geom_hline(yintercept = -1, linetype="dashed") + |
|
|
54 |
geom_vline(xintercept = -1, linetype="dashed") + |
|
|
55 |
geom_vline(xintercept = 0, linetype="twodash") + |
|
|
56 |
geom_vline(xintercept = 1, linetype="dashed") + |
|
|
57 |
xlab("Correlation NEU: Directionality x - log(P)")+ |
|
|
58 |
ylab("Correlation EOS: Directionality x - log(P)")+ |
|
|
59 |
ggtitle("Differential sputum proteins") |
|
|
60 |
FigE3c.sputum |
|
|
61 |
|
|
|
62 |
|
|
|
63 |
# Figure E3d ------------------ |
|
|
64 |
dat <- read_excel("Fig E3 Source Data.xlsx", sheet = "Serum Proteome") |
|
|
65 |
colnames(dat)[1] <- "Label" |
|
|
66 |
|
|
|
67 |
FigE3d.serum <- ggplot(dat) + |
|
|
68 |
geom_point(aes(x=NEU2, y=EOS), size=2)+ |
|
|
69 |
geom_text_repel(aes(x=NEU2,y=EOS, label = Label),size=3) + |
|
|
70 |
theme_bw()+ theme(panel.grid = element_blank()) + |
|
|
71 |
# geom_hline(yintercept = 0, linetype="twodash") + |
|
|
72 |
geom_hline(yintercept = 1, linetype="dashed") + |
|
|
73 |
geom_hline(yintercept = -1, linetype="dashed") + |
|
|
74 |
geom_vline(xintercept = -1, linetype="dashed") + |
|
|
75 |
# geom_vline(xintercept = 0, linetype="twodash") + |
|
|
76 |
geom_vline(xintercept = 1, linetype="dashed") + |
|
|
77 |
xlab("Correlation NEU: Directionality x - log(P)")+ |
|
|
78 |
ylab("Correlation EOS: Directionality x - log(P)")+ |
|
|
79 |
ggtitle("Differential serum proteins") |
|
|
80 |
FigE3d.serum |
|
|
81 |
|
|
|
82 |
# integrate Figures |
|
|
83 |
library(ggpubr) |
|
|
84 |
|
|
|
85 |
FigE3 <- ggarrange(FigE3a.metab, FigE3b.hostT, FigE3c.sputum, FigE3d.serum) |
|
|
86 |
|