Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bedtools2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
R3
legacy
bedtools2
Commits
c7c90785
Commit
c7c90785
authored
10 years ago
by
Aaron Quinlan
Browse files
Options
Downloads
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/content/tools/fisher.rst
+2
-2
2 additions, 2 deletions
docs/content/tools/fisher.rst
src/fisher/Fisher.cpp
+3
-3
3 additions, 3 deletions
src/fisher/Fisher.cpp
with
5 additions
and
5 deletions
docs/content/tools/fisher.rst
+
2
−
2
View file @
c7c90785
...
...
@@ -43,8 +43,8 @@ can do this with ``fisher`` as:
# Contingency Table
#_________________________________________
# | not in -b | in -b |
# not in -a | 475 |
1
5 |
# in -a | 5
| 5 |
# not in -a | 475 | 5 |
# in -a |
1
5 | 5 |
#_________________________________________
# p-values for fisher's exact test
left right two-tail ratio
...
...
This diff is collapsed.
Click to expand it.
src/fisher/Fisher.cpp
+
3
−
3
View file @
c7c90785
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment