Skip to content

Commit 6ef8322

Browse files
committed
bug fix
1 parent 16c3c0e commit 6ef8322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/python/segmentation/FileIO.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,12 @@ def formatSegmentationOutput(output : str, sigOffset : int, lastIndex : int, rea
445445

446446
# Create the motif
447447
motif = read[max(0, basepos - (kmerSize//2)):min(len(read), basepos + (kmerSize//2) + 1)]
448+
base = read[basepos]
448449
if rna:
449450
motif = motif[::-1]
450451
basepos = len(read) - basepos - 1
451452

452-
segments[i] = [start, end, basepos, read[basepos], motif, state, prob, polish]
453+
segments[i] = [start, end, basepos, base, motif, state, prob, polish]
453454

454455
# return np.array(segments, dtype=object)
455456
return segments

0 commit comments

Comments
 (0)