Skip to content

Commit

Permalink
handle stitching single chunks shorter than the chunksize
Browse files Browse the repository at this point in the history
  • Loading branch information
iiSeymour committed May 15, 2022
1 parent a49f924 commit 4585b74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bonito/crf/basecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def stitch_results(results, length, size, overlap, stride, reverse=False):
k: stitch_results(v, length, size, overlap, stride, reverse=reverse)
for k, v in results.items()
}
if length < size:
return results[0, :int(np.floor(length / stride))]
return stitch(results, size, overlap, length, stride, reverse=reverse)


Expand Down

0 comments on commit 4585b74

Please sign in to comment.