Skip to content

Commit eec6f93

Browse files
committed
fixed bug that breaks when there are not enough reads
1 parent 2ce2ced commit eec6f93

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

TranscriptClean.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ def main():
4242

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

45-
for i in range(n_threads):
45+
# for i in range(n_threads):
46+
# only run in range n_threads in case multiproc allocation
47+
# doesn't need all threads
48+
for i in range(len(sam_chunks)):
4649
if options.dryRun == True:
4750
t = mp.Process(target=run_chunk_dryRun,
4851
args=(sam_chunks[i], options))
@@ -551,7 +554,6 @@ def split_input(my_list, n):
551554
batch = my_list[index:]
552555
chunks.append(batch)
553556
index += batch_size
554-
555557
return chunks
556558

557559

0 commit comments

Comments
 (0)