From 34a5db079b085d6d6db6fb0376e5a83138169199 Mon Sep 17 00:00:00 2001 From: "Brian P. Walenz" Date: Mon, 16 Apr 2018 05:40:13 -0400 Subject: [PATCH] When symmetrizing overlaps, use orientation to resolve duplicates. And spell overlap correctly. --- src/bogart/AS_BAT_OverlapCache.C | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/bogart/AS_BAT_OverlapCache.C b/src/bogart/AS_BAT_OverlapCache.C index 42a831084..248f28fce 100644 --- a/src/bogart/AS_BAT_OverlapCache.C +++ b/src/bogart/AS_BAT_OverlapCache.C @@ -619,30 +619,29 @@ OverlapCache::loadOverlaps(ovStore *ovlStore, bool doSave) { +// Binary search a list of overlaps for one matching bID and flipped. bool -searchForOverlap(BAToverlap *ovl, uint32 ovlLen, uint32 bID) { +searchForOverlap(BAToverlap *ovl, uint32 ovlLen, uint32 bID, bool flipped) { + int32 F = 0; + int32 L = ovlLen - 1; + int32 M = 0; #ifdef TEST_LINEAR_SEARCH bool linearSearchFound = false; for (uint32 ss=0; ss