forked from liuwei-westlakeomics/KMDR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVenn_ProtienInSitruinSignalingPathway
114 lines (84 loc) · 2.99 KB
/
Venn_ProtienInSitruinSignalingPathway
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
```{r venn_protien-sirtuin}
rm(list=ls())
library(grid)
library(futile.logger)
library(VennDiagram)
protein<-read.table("15_Sirtuin/Sirtuin_Signaling_Pathway.txt",sep = "\t",header = T)
Spec1<-c(as.matrix( protein[which(protein$Spec_ima_sirtuin==1),1]))
DIAnn1<-c(as.matrix( protein[which(protein$DIAnn_ima_sirtuin==1),1]))
Openswath1<-c(as.matrix( protein[which(protein$Openswath_ima_sirtuin==1),1]))
Encyo1<-c(as.matrix( protein[which(protein$Encyo_ima_sirtuin==1),1]))
df<-cbind(Spec1,DIAnn1,Encyo1,Openswath1)
venn.plot <- venn.diagram(
#数据列表
x = list(
DIAnn = DIAnn1,
Spec = Spec1,
Encyo = Encyo1,
Openswath = Openswath1
),
filename = NULL,
#保存路径
col = "transparent", #指定图形的圆周边缘颜色transparent 透明
fill = c("cornflowerblue", "green", "yellow", "darkorchid1"), #填充颜色
alpha = 0.50, #透明度
label.col = c("orange", "white", "darkorchid4", "white",
"white", "white", "white", "white", "darkblue", "white",
"white", "white", "white", "darkgreen", "white"),
cex = 1.5, #每个区域label名称的大小
fontfamily = "serif", #字体
fontface = "bold",#字体格式
cat.col = c("#3B82C5", "#EF7C1B", "#54B879", "#F5BC2E"), #分类颜
cat.cex = 1.5, #每个分类名称大小
cat.pos = 0,#
cat.dist = 0.07, #
cat.fontfamily = "serif",#分类字体
rotation.degree = 270, #旋转角度
margin = 0.2#在网格单元中给出图周围空白量的编号
)
write.csv(df,"15_Sirtuin/Sirtuin_ima_overlap.csv")
pdf("15_Sirtuin/Sirtuin_ima_overlap.pdf")
grid.draw(venn.plot)
dev.off()
rm(list=ls())
library(grid)
library(futile.logger)
library(VennDiagram)
protein<-read.table("15_Sirtuin/Sirtuin_Signaling_Pathway.txt",sep = "\t",header = T)
Spec1<-c(as.matrix( protein[which(protein$Spec_adr_sirtuin==1),1]))
DIAnn1<-c(as.matrix( protein[which(protein$DIAnn_adr_sirtuin==1),1]))
Openswath1<-c(as.matrix( protein[which(protein$Openswath_adr_sirtuin==1),1]))
Encyo1<-c(as.matrix( protein[which(protein$Encyo_adr_sirtuin==1),1]))
df<-cbind(Spec1,DIAnn1,Encyo1,Openswath1)
venn.plot <- venn.diagram(
#数据列表
x = list(
DIAnn = DIAnn1,
Spec = Spec1,
Encyo = Encyo1,
Openswath = Openswath1
),
filename = NULL,
#保存路径
col = "transparent", #指定图形的圆周边缘颜色transparent 透明
fill = c("cornflowerblue", "green", "yellow", "darkorchid1"), #填充颜色
alpha = 0.50, #透明度
label.col = c("orange", "white", "darkorchid4", "white",
"white", "white", "white", "white", "darkblue", "white",
"white", "white", "white", "darkgreen", "white"),
cex = 1.5, #每个区域label名称的大小
fontfamily = "serif", #字体
fontface = "bold",#字体格式
cat.col = c("#3B82C5", "#EF7C1B", "#54B879", "#F5BC2E"), #分类颜
cat.cex = 1.5, #每个分类名称大小
cat.pos = 0,#
cat.dist = 0.07, #
cat.fontfamily = "serif",#分类字体
rotation.degree = 270, #旋转角度
margin = 0.2#在网格单元中给出图周围空白量的编号
)
write.csv(df,"15_Sirtuin/Sirtuin_adr_overlap.csv")
pdf("15_Sirtuin/Sirtuin_adr_overlap.pdf")
grid.draw(venn.plot)
dev.off()
```