Skip to content

Commit c8b0478

Browse files
committed
Add exact p-values and change color for figure 8
1 parent abfa1b8 commit c8b0478

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Fig_scripts/Main figures.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ Fig_8A = PR_Data %>% ggpaired(cond1 = "METASPACE-ML", cond2 = "MSM",
428428
legend.title = element_blank(),
429429
strip.text = element_text(size = 20),
430430
strip.background = element_rect(fill = "white")) +
431-
stat_compare_means(aes(group = condition), label = "p.signif" ,paired = F,
431+
stat_compare_means(aes(group = condition), label = "p.format" ,paired = F,
432432
size = 8, label.x.npc = "center", label.y.npc = 0.95) +
433433
theme(legend.position = "none")
434434

@@ -460,7 +460,7 @@ TPR = round((Fig_8C_data[1,1] / sum(Fig_8C_data[,1])),2) * 100
460460
dimnames( Fig_8C_data ) <- list(`METASPACE-ML` = c("Predicted", "Not predicted"),
461461
`LC-MS/MS` = c("Found", "Not found"))
462462
fourfoldplot(Fig_8C_data,
463-
color = c("#B22222", "#2E8B57"),
463+
color = c("#1E90FF", "#FF8C00"),
464464
main = paste0("TPR : ",TPR ,"%"),
465465
conf.level = 0, std = "all.max",space = 0.2) +
466466
text(-0.2,0.2, "TP", cex=1.5) +
@@ -479,7 +479,7 @@ TPR = round((Fig_8D_data[1,1] / sum(Fig_8D_data[,1])),2) * 100
479479
dimnames( Fig_8D_data ) <- list(`METASPACE-ML_only` = c("Predicted", "Not predicted"),
480480
`LC-MS/MS` = c("Found", "Not found"))
481481
fourfoldplot(Fig_8D_data,
482-
color = c("#B22222", "#2E8B57"),
482+
color = c("#1E90FF", "#FF8C00"),
483483
main = paste0("TPR : ",TPR ,"%"),
484484
conf.level = 0, std = "all.max",space = 0.2) +
485485
text(-0.2,0.2, "TP", cex=1.5) +
@@ -497,7 +497,7 @@ TPR = round((Fig_8E_data[1,1] / sum(Fig_8E_data[,1])),2) * 100
497497
dimnames( Fig_8E_data ) <- list(`MSM_only` = c("Predicted", "Not predicted"),
498498
`LC-MS/MS` = c("Found", "Not found"))
499499
fourfoldplot(Fig_8E_data,
500-
color = c("#B22222", "#2E8B57"),
500+
color = c("#1E90FF", "#FF8C00"),
501501
main = paste0("TPR : ",TPR ,"%"),
502502
conf.level = 0, std = "all.max",space = 0.2) +
503503
text(-0.2,0.2, "TP", cex=1.5) +

0 commit comments

Comments
 (0)