Skip to content

Commit

Permalink
Fix bubble chart.
Browse files Browse the repository at this point in the history
We had an issue that we were only including fragments that have an edit stop
site > than the templates. Sometimes the alignment algorithm can detect the
edit stop site before the stop site of the template. This fixes the issue
however this may or may not be the desired behavior.
  • Loading branch information
aebruno committed Aug 21, 2019
1 parent 173dbce commit 4d1abf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/treat/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ func BubbleJson(app *Application) http.Handler {
bubbleMap := make(map[int]map[uint32]float64)

err = db.storage.Search(fields, func(key *treat.AlignmentKey, a *treat.Alignment) {
if a.EditStop >= int(tmpl.EditOffset) {
if a.EditStop >= tmpl.EditStop {
frag, err := db.storage.GetFragment(key, a.Id)
if err != nil || frag == nil {
logrus.Printf("fragment not found: %s", err)
Expand Down

0 comments on commit 4d1abf7

Please sign in to comment.