Skip to content

Commit

Permalink
Quickfix for polyT_adpator_finder
Browse files Browse the repository at this point in the history
  • Loading branch information
atrull314 committed Apr 29, 2024
1 parent cdc518e commit 7cd4fc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blaze/polyT_adaptor_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ def find_poly_T(seq, poly_T_len=PLY_T_LEN,
T_prop = helper.sliding_window_mean(read_code, poly_T_len)
return np.where(T_prop >= min_match_prop)[0]

strand = self._strand if not strand else strand
read = self.seq if not read else read

if strand == '-':
seq = read[:num_nt]
# find polyT
ply_T_idx = find_poly_T(seq)
d1, d2 = SEQ_SUFFIX_AFT_ADPT
Expand Down

0 comments on commit 7cd4fc2

Please sign in to comment.