Skip to content

Commit

Permalink
Sep 10, 2024: Correct gapLen
Browse files Browse the repository at this point in the history
  • Loading branch information
AldhairMedico committed Sep 11, 2024
1 parent 9301b2e commit 08216bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ bool Teloscope::walkPath(InPath* path, std::vector<InSegment*> &inSegments, std:
}else if (component->componentType == GAP){

auto inGap = find_if(inGaps.begin(), inGaps.end(), [cUId](InGap& obj) {return obj.getuId() == cUId;}); // given a node Uid, find it
gapLen += inGap->getDist(component->start - component->end);
gapLen = inGap->getDist(component->start - component->end);

absPos += gapLen;

Expand Down
2 changes: 1 addition & 1 deletion src/teloscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ std::vector<WindowData> Teloscope::analyzeSegment(std::string &sequence, UserInp
}

// Recycle the overlapping string sequence
currentWindowSize = std::min(userInput.windowSize, static_cast<uint32_t>(sequence.size() - windowStart));
currentWindowSize = std::min(userInput.windowSize, static_cast<uint32_t>(sequence.size() - windowStart)); // CHECK

if (currentWindowSize == userInput.windowSize) {
window = window.substr(userInput.step) + sequence.substr(windowStart + userInput.windowSize - userInput.step, userInput.step);
Expand Down

0 comments on commit 08216bc

Please sign in to comment.