According to wikipedia, sensitivity and specificity are defined as:
However, in cuffcompare, the values are calculated as:
sp=(100.0*(double)ps->exonTP)/(ps->exonTP+ps->exonFP);
sn=(100.0*(double)ps->exonTP)/(ps->exonTP+ps->exonFN);
sn
is sensitivity and sp
is specificity.
The formulas don't match, in particular true-positive (exonTP) is now used in both formulas. Does anybody know why?
you should probably open a ticket with the developer
I found the answer. Please look at my answer.