Skip to content

fix a serious bug when get next overlapped matched base in the case t…#1196

Closed
wulj2 wants to merge 2 commits intosamtools:developfrom
wulj2:develop
Closed

fix a serious bug when get next overlapped matched base in the case t…#1196
wulj2 wants to merge 2 commits intosamtools:developfrom
wulj2:develop

Conversation

@wulj2
Copy link
Copy Markdown

@wulj2 wulj2 commented Dec 23, 2020

…he match base is in just the first one in the stretch of match and this stretch of match is after some other stretch of non-match sequences(such as ins, del, .etc)
fixed#1195

wulj2 added 2 commits December 24, 2020 00:56
…he match base is in just the first one in the stretch of match and this stretch of match is after some other stretch of non-match sequences(such as ins, del, .etc)
@valeriuo
Copy link
Copy Markdown
Contributor

Thank your for the fix. However, I've made one which is simpler. Instead of keeping track of a previous matching segment, it resets icig to -1 every time, so that the first base of each matching segment starts from 0.
I rebased and squashed your commits and added my changes on top of yours, to preserve your authorship.

@wulj2
Copy link
Copy Markdown
Author

wulj2 commented Jan 13, 2021 via email

@wulj2
Copy link
Copy Markdown
Author

wulj2 commented Jan 13, 2021

Elegantly fixed by @valeriuo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants