Skip to content

Commit 045debf

Browse files
authored
Fix last chunk missing (#165) (#635)
1 parent 5e86bd8 commit 045debf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CRISPResso2/CRISPRessoPooledCORE.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ def rreplace(s, old, new):
12221222
chr_output_filenames.append(chr_output_filename)
12231223
curr_pos = curr_end
12241224
curr_end = curr_pos + chr_step_size
1225-
if curr_end < chr_len:
1225+
if curr_pos < chr_len:
12261226
chr_output_filename = _jp('MAPPED_REGIONS/%s_%s_%s.info' % (chr_str, curr_pos, chr_len))
12271227
sub_chr_command = chr_cmd.replace("__REGION__", ":%d-%d " % (curr_pos, chr_len)).replace("__DEMUX_CHR_LOGFILENAME__", chr_output_filename)
12281228
chr_commands.append(sub_chr_command)

0 commit comments

Comments
 (0)