Skip to content

Commit 3ba275d

Browse files
committed
Update variants.cpp
1 parent c3c8887 commit 3ba275d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/variants.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ std::pair<bool,std::deque<DBGpath>> DBG::searchVariants(std::pair<const uint64_t
271271
prevNode = prev[prevNode].first;
272272
++i;
273273
}
274-
std::cout<<+i<<" "<<+refLen<<std::endl;
275274
prevNode = prev[destination].first;
276275
bool direction = prev[prevNode].second;
277276
int16_t b = i-refLen;
@@ -284,7 +283,7 @@ std::pair<bool,std::deque<DBGpath>> DBG::searchVariants(std::pair<const uint64_t
284283
newPath.type = SNV;
285284
else if (i > refLen) {
286285
newPath.type = DEL;
287-
--b;
286+
--b; // we have to account for the fact that we skipped one base
288287
prevNode = prev[prevNode].first;
289288
direction = prev[prevNode].second;
290289
}

0 commit comments

Comments
 (0)