<- c("ggthemes", "jhtools", "glue", "ggsci", "patchwork", "tidyverse",
pkgs "circlize", "ComplexHeatmap", "SummarizedExperiment", "jhuanglabRNAseq",
"viridis","ggrepel", "tidygraph","ggraph")
for (pkg in pkgs){
suppressPackageStartupMessages(library(pkg, character.only = T))
}<- "./results/sup_figure11" %>% checkdir
out_dir <- "./data" %>% checkdir in_dir
sup_figure11
sup_figure11A
<- glue("{in_dir}/FGF_score.rds") %>% read_rds()
FGF_score <- ggplot(FGF_score,
p aes(x = sample_label, y = name, fill = value)) +
geom_tile() +
scale_fill_gradient2(low = "blue", high = "red") +
theme_few() +
theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)) +
theme(legend.position = "none",
axis.title = element_blank(),
axis.text = element_text(size = 7, colour = "black"),
axis.ticks = element_line(linewidth = 0.1, colour = "black"),
axis.ticks.length = unit(0.05, "lines"),
legend.box.margin = margin(0,0,0,0),
legend.box.spacing = unit(1.5, "mm"))
pdf(glue("{out_dir}/figS11A.pdf"), width = 3.5, height = 5)
print(p)
<- dev.off()
d p
sup_figure11BC
<- glue("{in_dir}/TRIGLYCERIDE_score.rds") %>% read_rds()
TRIGLYCERIDE
<- ggplot(TRIGLYCERIDE$REACTOME_TRIGLYCERIDE_METABOLISM,
p aes(x = sample_label, y = name, fill = value)) +
geom_tile() +
scale_fill_gradient2(low = "blue", high = "red") +
theme_few() +
theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)) +
theme(legend.position = "none",
axis.title = element_blank(),
axis.text = element_text(size = 7, colour = "black"),
axis.ticks = element_line(linewidth = 0.1, colour = "black"),
axis.ticks.length = unit(0.05, "lines"),
legend.box.margin = margin(0,0,0,0),
legend.box.spacing = unit(1.5, "mm"))
pdf(glue("{out_dir}/figS11B.pdf"), width = 3.5, height = 2)
print(p)
<- dev.off()
d p
sup_figure11D
<- glue("{in_dir}/FABP_score.rds") %>% read_rds()
FABP_score <- ggplot(FABP_score,
p aes(x = sample_label, y = name, fill = value)) +
geom_tile() +
scale_fill_gradient2(low = "blue", high = "red") +
theme_few() +
theme(axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5)) +
theme(legend.position = "none",
axis.title = element_blank(),
axis.text = element_text(size = 7, colour = "black"),
axis.ticks = element_line(linewidth = 0.1, colour = "black"),
axis.ticks.length = unit(0.05, "lines"),
legend.box.margin = margin(0,0,0,0),
legend.box.spacing = unit(1.5, "mm"))
pdf(glue("{out_dir}/figS11D.pdf"), width = 3.5, height = 2)
print(p)
<- dev.off()
d p