# NOT RUN {
data(can.sig.go);
fpath <- can.sig.go
gs.list <- import.gs(fpath, Lowercase = 1, col.gene = 2, col.set = 3);
data(net.kegg)
netpath <- net.kegg
net <- import.net(netpath)
# }
# NOT RUN {
b0 <- benchmark (NET = net,
GS = gs.list,
echo=1, graph=TRUE, na.replace = 0, mask = ".", minN = 0,
coff.z = 1.965, coff.fdr = 0.1, Parallelize=2);
# }
# NOT RUN {
## Benchmark a number of networks on GO terms and KEGG pathways separately, using masks:
b1 <- NULL;
for (mask in c("kegg_", "go_")) {
b1[[mask]] <- NULL;
for (file.net in c("netpath")) {
# a series of networks can be put here: c("netpath1", "netpath2", "netpath3")
net <- import.net(netpath, col.1 = 1, col.2 = 2, Lowercase = 1, echo = 1)
b1[[mask]][[file.net]] <- benchmark (NET = net, GS = gs.list, echo=1,
graph=FALSE, na.replace = 0, mask = mask, minN = 0, Parallelize=1);
}}
par(mfrow=c(2,1));
roc(b1[["kegg_"]], coff.z = 2.57,main="kegg_");
roc(b1[["go_"]], coff.z = 2.57,main="go_");
# }
Run the code above in your browser using DataLab