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
89805de6
Commit
89805de6
authored
10 years ago
by
daler
Browse files
Options
Downloads
Patches
Plain Diff
fix formatting of fisher table
parent
24803222
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fisher/Fisher.cpp
+5
-5
5 additions, 5 deletions
src/fisher/Fisher.cpp
with
5 additions
and
5 deletions
src/fisher/Fisher.cpp
+
5
−
5
View file @
89805de6
...
...
@@ -45,11 +45,11 @@ bool Fisher::calculate() {
// bases covered by both
long
long
n22
=
_intersectionVal
;
printf
(
"#_________________________________________
\n
"
);
printf
(
"# | %-12s | %-12s |
\n
"
,
"not in -b"
,
"in -b"
);
printf
(
"# not in -a | %-12lld | %-12lld |
\n
"
,
n11
,
n12
);
printf
(
"#_________________________________________
_
\n
"
);
printf
(
"#
| %-12s | %-12s |
\n
"
,
"not in -b"
,
"in -b"
);
printf
(
"#
not in -a | %-12lld | %-12lld |
\n
"
,
n11
,
n12
);
printf
(
"# in -a | %-12lld | %-12lld |
\n
"
,
n21
,
n22
);
printf
(
"#_________________________________________
\n
"
);
printf
(
"#_________________________________________
_
\n
"
);
kt_fisher_exact
(
n11
,
n12
,
n21
,
n22
,
&
left
,
&
right
,
&
two
);
double
ratio
=
((
double
)
n11
/
(
double
)
n12
)
/
((
double
)
n21
/
(
double
)
n22
);
...
...
@@ -57,7 +57,7 @@ bool Fisher::calculate() {
printf
(
"# p-values for fisher's exact test
\n
"
);
printf
(
"left
\t
right
\t
two-tail
\t
ratio
\n
"
);
printf
(
"%.5g
\t
%.5g
\t
%.5g
\t
%.3f
\n
"
,
left
,
right
,
two
,
ratio
);
return
true
;
}
...
...
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