Skip to content
Snippets Groups Projects
Commit c7c90785 authored by Aaron Quinlan's avatar Aaron Quinlan
Browse files

Merge pull request #126 from brentp/contingency-order

fix #117 by re-ordering contingency table. 
parents 6a92b117 51ef3601
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,8 @@ can do this with ``fisher`` as:
# Contingency Table
#_________________________________________
# | not in -b | in -b |
# not in -a | 475 | 15 |
# in -a | 5 | 5 |
# not in -a | 475 | 5 |
# in -a | 15 | 5 |
#_________________________________________
# p-values for fisher's exact test
left right two-tail ratio
......
......@@ -38,10 +38,10 @@ bool Fisher::calculate() {
long long genomeSize = _context->getGenomeFile()->getGenomeSize();
// bases covered by neither a nor b
long long n11 = genomeSize - _queryLen - _dbLen + _intersectionVal;
// bases covered only by -a
long long n12 = _queryLen - _intersectionVal;
// bases covered only by -b
long long n21 = _dbLen - _intersectionVal;
long long n12 = _dbLen - _intersectionVal;
// bases covered only by -a
long long n21 = _queryLen - _intersectionVal;
// bases covered by both
long long n22 = _intersectionVal;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment