data(dream4)
network <- 1
nTimePoints <- length(unique(dream4ts10[[network]]$time))
edges1ts10 <- networkBMA( data = dream4ts10[[network]][,-(1:2)],
nTimePoints = nTimePoints, prior.prob = 0.1)
# check for self loops in estimated network
selfN <- any(as.character(edges1ts10[,1]) == as.character(edges1ts10[,2]))
selfN
reference <- dream4gold10[[network]]
# check for self loops in reference (there are none)
selfR <- any(as.character(reference[,1]) == as.character(reference[,2]))
selfR
# restrict reference to edges; first two columns (gene) only
reference <- reference[reference[,3] == 1,1:2]
contingencyTables <- contabs(network = edges1ts10, reference = reference,
size = 100)
roc(contingencyTables)
prc(contingencyTables)
Run the code above in your browser using DataLab