Description Usage Arguments Details Value Author(s) Examples
Given an original and inferred network, count number of true/false positives and negatives. Calculate sensitivity and specificity measures.
1 | compareGraphs(phiorig,phi,ignore.type=FALSE)
|
phiorig |
Original graph. Stored as adjacency matrix. |
phi |
Inferred graph. Stored as adjaceny matrix. |
ignore.type |
Boolean. If TRUE, only compare edge abundance, if FALSE, also take into account the type of the edge for counting numbers of true and false edges. |
Counts the number of tp as: activations in phi and
phiorig + inhibitions in phi and phiorig.
Counts the number of fp as: activations or inhibitions in
phi and no edge in phiorig.
Counts the number of tn as: no edge in phi and no edge
in phiorig.
Counts the number of fn as: no edge in phi and activation
or inhibition in phiorig.
Vector of comparison measures:
tp |
True positives |
fp |
False positives |
tn |
True negatives |
fn |
False negatives |
sn |
Sensitivity: sn = tp/(tp+fn) |
sp |
Specificity: sp = tn/(tn+fp) |
prec |
Precision: prec = tp / (tp + fp) |
f1 |
F1: 2*prec*sn / (prec + sn) |
Christian Bender
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.