-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplotting coloured ranks scatterplot.R
More file actions
18 lines (13 loc) · 2.39 KB
/
plotting coloured ranks scatterplot.R
File metadata and controls
18 lines (13 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
plotter1 <- data.frame(rank(-results_all$Zs_2way),rank(results_all$sota_fish),"all")
colnames(plotter1) <- c("PGM","SotA_fish","set")
plotter2 <- data.frame(rank(-results_all$Zs_2way)[which(workingList_BRCA %in% genes_fromPaper)],rank(results_all$sota_fish)[which(workingList_BRCA %in% genes_fromPaper)],"TCGA_BRCA_originalPaper")
colnames(plotter2) <- c("PGM","SotA_fish","set")
plotter3 <- data.frame(rank(-results_all$Zs_2way)[which(workingList_BRCA %in% genes_fromNature)],rank(results_all$sota_fish)[which(workingList_BRCA %in% genes_fromNature)],"Vogelstein_genes")
colnames(plotter3) <- c("PGM","SotA_fish","set")
plotter4 <- data.frame(rank(-results_all$Zs_2way)[which(workingList_BRCA %in% genes_fromCosmic)],rank(results_all$sota_fish)[which(workingList_BRCA %in% genes_fromCosmic)],"Cosmic_genes")
colnames(plotter4) <- c("PGM","SotA_fish","set")
ggplot(plotter1,aes(x=PGM,y=SotA_fish)) +theme_bw() + theme_bw() + geom_point(alpha=0.03) + geom_point(data=plotter2,aes(x=PGM,y=SotA_fish),colour="blue",alpha=0.5) + geom_point(data=plotter3,aes(x=PGM,y=SotA_fish),colour="green",alpha=0.5) + geom_point(data=plotter4,aes(x=PGM,y=SotA_fish),colour="red",alpha=0.5) + ggtitle("cor=0.742") + xlab("our full PGM") + ylab("edgeR + IMA results combined with Fisher's method")
ggplot(plotter1,aes(x=PGM,y=SotA_fish)) +theme_bw() + theme_bw() + geom_point(alpha=0.03) + ggtitle("cor=0.742") + xlab("rank according to our full PGM") + ylab("rank according to edgeR + IMA\n results combined with Fisher's method")
ggplot(plotter1,aes(x=PGM,y=SotA_fish)) +theme_bw() + theme_bw() + geom_point(alpha=0.03) + geom_point(data=plotter2,aes(x=PGM,y=SotA_fish),colour="blue",alpha=0.5) + ggtitle("cor=0.742") + xlab("rank according to our full PGM") + ylab("rank according to edgeR + IMA\n results combined with Fisher's method")
ggplot(plotter1,aes(x=PGM,y=SotA_fish)) +theme_bw() + theme_bw() + geom_point(alpha=0.03) + geom_point(data=plotter3,aes(x=PGM,y=SotA_fish),colour="green",alpha=0.5) + ggtitle("cor=0.742") + xlab("rank according to our full PGM") + ylab("rank according to edgeR + IMA\n results combined with Fisher's method")
ggplot(plotter1,aes(x=PGM,y=SotA_fish)) +theme_bw() + theme_bw() + geom_point(alpha=0.03) + geom_point(data=plotter4,aes(x=PGM,y=SotA_fish),colour="red",alpha=0.5) + ggtitle("cor=0.742") + xlab("rank according to our full PGM") + ylab("rank according to edgeR + IMA\n results combined with Fisher's method")