Skip to content
Snippets Groups Projects
Commit 8925af09 authored by Aaron's avatar Aaron
Browse files

Minor tweaks.

parent 90464038
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,8 @@ void BedClosest::FindWindowOverlaps(BED &a, vector<BED> &hits) {
CHRPOS minDistance = INT_MAX;
vector<CHRPOS> distances;
// is there at least one feature in B on the same chrom
// as the current A feature?
if(_bedB->bedMap.find(a.chrom) != _bedB->bedMap.end()) {
while ((numOverlaps == 0) && (slop <= MAXSLOP)) {
......@@ -74,6 +75,7 @@ void BedClosest::FindWindowOverlaps(BED &a, vector<BED> &hits) {
else
aFudgeEnd = 2 * MAXSLOP;
// THE HEAVY LIFTING
// search for hits with the current slop added
_bedB->FindOverlapsPerBin(a.chrom, aFudgeStart, aFudgeEnd, a.strand, hits, _forceStrand);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment