Skip to content

Commit

Permalink
fixed bug that breaks when there are not enough reads
Browse files Browse the repository at this point in the history
  • Loading branch information
fairliereese committed Jul 26, 2023
1 parent 2ce2ced commit eec6f93
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TranscriptClean.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ def main():

# run_chunk(sam_chunks[0], options, header)

for i in range(n_threads):
# for i in range(n_threads):
# only run in range n_threads in case multiproc allocation
# doesn't need all threads
for i in range(len(sam_chunks)):
if options.dryRun == True:
t = mp.Process(target=run_chunk_dryRun,
args=(sam_chunks[i], options))
Expand Down Expand Up @@ -551,7 +554,6 @@ def split_input(my_list, n):
batch = my_list[index:]
chunks.append(batch)
index += batch_size

return chunks


Expand Down

0 comments on commit eec6f93

Please sign in to comment.