comparison GO_deltaRanks_correlation.R @ 0:91261b42c07e draft

"planemo upload commit 25eebba0c98dd7a5a703412be90e97f13f66b5bc"
author cristian
date Thu, 14 Apr 2022 13:28:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:91261b42c07e
1 #setwd("~/Dropbox/Documents/dixon_2017_RT-GBM/reciprocal_transplant_methylationV2/clean_july12/scripts")
2
3 data1=read.table("MWU_MF_heat_lpv.csv",header=T)
4 data2=read.table("MWU_MF_surv_lpv.csv",header=T)
5
6 goods=intersect(data1$term,data2$term)
7 #goods=unique(as.character(c(data1$term[data1$p.adj<=0.1],data2$term[data2$p.adj<=0.1])))
8 length(goods)
9
10 data1=data1[data1$term %in% goods,]
11 data2=data2[data2$term %in% goods,]
12
13 # all overlapping GO terms
14 ress=merge(data1,data2,by="term")
15 plot(delta.rank.x~delta.rank.y,ress,xlab="GBM", ylab="GE",mgp=c(2.3,1,0))
16 abline(v=0,lty=3)
17 abline(h=0,lty=3)
18
19 # GO terms highly signifcant in any of the two datasets
20 sigs=(ress$p.adj.x<=0.01 | ress$p.adj.y<=0.01)
21 sum(sigs) # 71
22 plot(delta.rank.x~delta.rank.y,ress[sigs,],xlab="GBM", ylab="GE",mgp=c(2.3,1,0))
23 abline(v=0,lty=3)
24 abline(h=0,lty=3)
25
26 # GO terms signifcant in both datasets
27 sigs=(ress$p.adj.x<=0.1 & ress$p.adj.y<=0.1)
28 sum(sigs) # 20
29 plot(delta.rank.x~delta.rank.y,ress[sigs,],xlab="GBM", ylab="GE",mgp=c(2.3,1,0))
30 abline(v=0,lty=3)
31 abline(h=0,lty=3)
32