Paper: CD177 modulates the function and homeostasis of tumor-infiltrating regulatory T cells
2021 NC: https://pubmed.ncbi.nlm.nih.gov/34599187/
有以下呈现方式,
- 横坐标使用cluster/celltype间的pct差值,
- 纵坐标使用log2FC ,
- P值可以使用颜色来表示。
文献阈值参数:
- Genes labeled have logfold change > 1,
- Δ Percentage Difference > 20% and adjusted P-value <0.05.
使用ggplot2 点图绘制方式
- https://github.com/ncborcherding/
- https://github.com/ncborcherding/scTregs
library(ggrepel)
cluster1.markers <- cluster1.markers %>%
mutate(Difference = pct.1 - pct.2) %>%
rownames_to_column("gene")
ggplot(cluster1.markers, aes(x=Difference, y=avg_log2FC, color = threshold)) +
geom_point(size=0.5) +
scale_color_manual(values=c( "blue","grey","red") ) +
geom_label_repel(data=subset(cluster1.markers, avg_log2FC >= 1 & Difference >= 0.2 & p_val_adj <= 0.05),
aes(label=gene), #添加label
color="black", #设置label中标签的颜色
segment.colour = "black",#设置label框的颜色
label.padding = 0.1,
#max.overlaps = 200,
segment.size = 0.3, #框的大小
size=4)+
geom_label_repel(data=subset(cluster1.markers, avg_log2FC <= -1 & Difference <= -0.2 & p_val_adj <= 0.05),
aes(label=gene), label.padding = 0.1,
color="black",
segment.colour = "black",
segment.size = 0.3, size=4)+
geom_vline(xintercept = 0.0,linetype=2)+
geom_hline(yintercept = 0,linetype=2)+
theme_classic()