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
e904d780
Commit
e904d780
authored
12 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
avoid -hist overflow
parent
cfcb2ce0
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/coverageBed/coverageBed.cpp
+5
-5
5 additions, 5 deletions
src/coverageBed/coverageBed.cpp
with
5 additions
and
5 deletions
src/coverageBed/coverageBed.cpp
+
5
−
5
View file @
e904d780
...
...
@@ -184,8 +184,8 @@ void BedCoverage::ReportCounts() {
void
BedCoverage
::
ReportCoverage
()
{
map
<
unsigned
int
,
unsigned
int
>
allDepthHist
;
unsigned
int
totalLength
=
0
;
map
<
unsigned
long
,
unsigned
long
>
allDepthHist
;
unsigned
long
totalLength
=
0
;
// process each chromosome
masterBedCovMap
::
const_iterator
chromItr
=
_bedB
->
bedCovMap
.
begin
();
...
...
@@ -298,11 +298,11 @@ void BedCoverage::ReportCoverage() {
// report a histogram of coverage among _all_
// features in B.
if
(
_writeHistogram
==
true
)
{
map
<
unsigned
int
,
unsigned
int
>::
const_iterator
histItr
=
allDepthHist
.
begin
();
map
<
unsigned
int
,
unsigned
int
>::
const_iterator
histEnd
=
allDepthHist
.
end
();
map
<
unsigned
long
,
unsigned
long
>::
const_iterator
histItr
=
allDepthHist
.
begin
();
map
<
unsigned
long
,
unsigned
long
>::
const_iterator
histEnd
=
allDepthHist
.
end
();
for
(;
histItr
!=
histEnd
;
++
histItr
)
{
float
fractAtThisDepth
=
(
float
)
histItr
->
second
/
totalLength
;
printf
(
"all
\t
%
d
\t
%
d
\t
%
d
\t
%0.7f
\n
"
,
histItr
->
first
,
histItr
->
second
,
totalLength
,
fractAtThisDepth
);
printf
(
"all
\t
%
lu
\t
%
lu
\t
%
lu
\t
%0.7f
\n
"
,
histItr
->
first
,
histItr
->
second
,
totalLength
,
fractAtThisDepth
);
}
}
}
...
...
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