Skip to content

Commit 33245f3

Browse files
committed
comments and cleanup
1 parent 27154c9 commit 33245f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/geneml/gene_caller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def get_end_idx(start_idx: int, events: list[GeneEvent], preds: np.ndarray) -> i
8181
break
8282
pos += 1
8383

84-
# print(start_pos, pos)
8584
for i in range(start_idx, len(events)):
8685
if events[i].pos >= pos:
8786
return i
@@ -90,6 +89,7 @@ def get_end_idx(start_idx: int, events: list[GeneEvent], preds: np.ndarray) -> i
9089

9190
@njit
9291
def count_stop_codons(seq):
92+
# note: assumes seq is all uppercase
9393
count = 0
9494
for i in range(0, len(seq) - 2, 3):
9595
codon = seq[i:i+3]
@@ -100,6 +100,7 @@ def count_stop_codons(seq):
100100

101101
@njit
102102
def ends_with_stop_codon(seq):
103+
# note: assumes seq is all uppercase
103104
if len(seq) < 3:
104105
return False
105106
codon = seq[-3:]

0 commit comments

Comments
 (0)