Skip to content

Commit 70e1eb5

Browse files
author
Manuel Caceres
committed
Fix a bug
1 parent 28eea60 commit 70e1eb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compute_summary.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,11 @@ def parse_gaf(raw_gaf, vertex_labels):
199199

200200
if rev_cnt > 0:
201201
ll = ''.join({'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C', 'N': 'N'}[b] for b in ll[::-1])
202-
last_node_off += original_length
202+
if idx < n-1:
203+
last_node_off += original_length
203204
else:
204-
last_node_off -= original_length
205+
if idx < n-1:
206+
last_node_off -= original_length
205207

206208
seqs.append(ll)
207209

0 commit comments

Comments
 (0)