Skip to content

Commit

Permalink
revert to normal profile ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Apr 10, 2024
1 parent 0cf5e07 commit bee369f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/long_read_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ def construct_profile(self, sorted_blocks, polya_position=-1, polyt_position=-1)
exon_profile[i] = -2

start_pos = 0
while start_pos < len(exon_profile) and exon_profile[start_pos] < 1:
while start_pos < len(exon_profile) and exon_profile[start_pos] == 0:
start_pos += 1
end_pos = len(exon_profile) - 1
while end_pos >= 0 and exon_profile[end_pos] < 1:
while end_pos >= 0 and exon_profile[end_pos] == 0:
end_pos -= 1

return MappedReadProfile(exon_profile, read_profile, read_exons, (start_pos, end_pos + 1))
Expand Down

0 comments on commit bee369f

Please sign in to comment.