forked from bfriedrichgrube/OC_CPTAC_iTRAQ_SWATH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path8b_HRD_Volcano.R
25 lines (16 loc) · 919 Bytes
/
8b_HRD_Volcano.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Differential expression analysis of 103 HGS-OC samples with diffferent HRD status (Figure 7A)
## After mapDIA ##
## Step 1: Prepare R session ##
library(calibrate)
setwd('')
## Step 2: Load in data ##
output <- read.table('analysis_output.txt', sep='\t', dec='.', header=T, as.is=T)
## Step 3: Plot differentially expressed proteins in Volcano plot ##
pdf('Volcano_HRD.pdf', width=10, height=10)
with(output, plot(log2FC, -log10(FDR), pch=20, cex=2, cex.lab=0.1, yaxt='n', cex.axis=2.2, xlab='', ylab='', xlim=c(-1, 1)))
with(subset(output, FDR<0.05 & log2FC>log2(1.3)), points(log2FC, -log10(FDR), pch=20, cex=2.2, col='red'))
with(subset(output, FDR<0.05 & log2FC<(-log2(1.3))), points(log2FC, -log10(FDR), pch=20, cex=2.2, col='dodgerblue'))
axis(2, las=2, cex.axis=2.2)
abline(v=c(log2(1.3),-log2(1.3)), col=c("darkgray","darkgray"), lty=c(2,2))
abline(h=-log10(0.05), col="darkgray", lty=2)
dev.off()