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
f1d7c765
Commit
f1d7c765
authored
10 years ago
by
Brent Pedersen
Browse files
Options
Downloads
Patches
Plain Diff
better precision in reporting for fisher
parent
62802ecc
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
+1
-1
1 addition, 1 deletion
docs/content/tools/fisher.rst
src/fisher/Fisher.cpp
+2
-4
2 additions, 4 deletions
src/fisher/Fisher.cpp
with
3 additions
and
5 deletions
docs/content/tools/fisher.rst
+
1
−
1
View file @
f1d7c765
...
@@ -48,7 +48,7 @@ can do this with ``fisher`` as:
...
@@ -48,7 +48,7 @@ can do this with ``fisher`` as:
#_________________________________________
#_________________________________________
# p-values for fisher's exact test
# p-values for fisher's exact test
left right two-tail ratio
left right two-tail ratio
1
.00000 0.00001 0.00001
31.667
1
1.3466e-05 1.3466e-05
31.667
Where we can see the constructed contingency table and the pvalues for left, right
Where we can see the constructed contingency table and the pvalues for left, right
...
...
This diff is collapsed.
Click to expand it.
src/fisher/Fisher.cpp
+
2
−
4
View file @
f1d7c765
...
@@ -56,11 +56,9 @@ bool Fisher::calculate() {
...
@@ -56,11 +56,9 @@ bool Fisher::calculate() {
printf
(
"# p-values for fisher's exact test
\n
"
);
printf
(
"# p-values for fisher's exact test
\n
"
);
printf
(
"left
\t
right
\t
two-tail
\t
ratio
\n
"
);
printf
(
"left
\t
right
\t
two-tail
\t
ratio
\n
"
);
printf
(
"%.5
f
\t
%.5
f
\t
%.5
f
\t
%.3f
\n
"
,
left
,
right
,
two
,
ratio
);
printf
(
"%.5
g
\t
%.5
g
\t
%.5
g
\t
%.3f
\n
"
,
left
,
right
,
two
,
ratio
);
//kt_fisher_exact(50010000, 10000000, 15000000, 3000000, &left, &right, &two);
return
true
;
return
true
;
}
}
bool
Fisher
::
getFisher
()
{
bool
Fisher
::
getFisher
()
{
...
...
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