data(dt4rtn)
tfs4test<-c("PTTG1","E2F2","FOXM1","E2F3","RUNX2")
rtni <- new("TNI", gexp=dt4rtn$gexp, transcriptionFactors=dt4rtn$tfs[tfs4test])
## Not run:
#
# rtni<-tni.preprocess(rtni,gexpIDs=dt4rtn$gexpIDs)
# rtni<-tni.permutation(rtni)
# rtni<-tni.bootstrap(rtni)
# rtni<-tni.dpi.filter(rtni, eps=0.05)
#
# # compute regulatory maps
# g<-tni.graph(rtni, tnet="dpi", gtype="rmap", tfs=tfs4test)
#
# # option: plot the igraph object using RedeR
# library(RedeR)
# rdp<-RedPort()
# calld(rdp)
# addGraph(rdp,g)
# addLegend.shape(rdp,g)
# addLegend.color(rdp,g,type="edge")
# relax(rdp,p1=50,p5=20)
#
# # compute association maps
# resetd(rdp)
# g<-tni.graph(rtni, tnet="ref", gtype="amap", tfs=tfs4test)
# addGraph(rdp,g)
# addLegend.size(rdp,g)
# addLegend.size(rdp,g,type="edge")
#
# ## End(Not run)
Run the code above in your browser using DataLab