Skip to content

Commit 4d1abf7

Browse files
committed
Fix bubble chart.
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.
1 parent 173dbce commit 4d1abf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/treat/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ func BubbleJson(app *Application) http.Handler {
705705
bubbleMap := make(map[int]map[uint32]float64)
706706

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

0 commit comments

Comments
 (0)