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
43ce3281
Commit
43ce3281
authored
13 years ago
by
Aaron
Browse files
Options
Downloads
Patches
Plain Diff
bail out early if no ivls in bin
parent
52b83aac
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/utils/bedFile/bedFile.cpp
+2
-1
2 additions, 1 deletion
src/utils/bedFile/bedFile.cpp
with
2 additions
and
1 deletion
src/utils/bedFile/bedFile.cpp
+
2
−
1
View file @
43ce3281
...
...
@@ -343,6 +343,8 @@ bool BedFile::anyHits(string chrom, CHRPOS start, CHRPOS end, string strand,
for
(
BINLEVEL
i
=
0
;
i
<
_binLevels
;
++
i
)
{
BIN
offset
=
_binOffsetsExtended
[
i
];
for
(
BIN
j
=
(
startBin
+
offset
);
j
<=
(
endBin
+
offset
);
++
j
)
{
// move to the next bin if this one is empty
if
(
bedMap
[
chrom
][
j
].
empty
())
continue
;
vector
<
BED
>::
const_iterator
bedItr
=
bedMap
[
chrom
][
j
].
begin
();
vector
<
BED
>::
const_iterator
bedEnd
=
bedMap
[
chrom
][
j
].
end
();
for
(;
bedItr
!=
bedEnd
;
++
bedItr
)
{
...
...
@@ -391,7 +393,6 @@ void BedFile::countHits(const BED &a, bool sameStrand, bool diffStrand, bool cou
// loop through each bin at this level of the hierarchy
BIN
offset
=
_binOffsetsExtended
[
i
];
for
(
BIN
j
=
(
startBin
+
offset
);
j
<=
(
endBin
+
offset
);
++
j
)
{
// loop through each feature in this chrom/bin and see if it overlaps
// with the feature that was passed in. if so, add the feature to
// the list of hits.
...
...
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