Skip to content

Commit

Permalink
Added more percent_complete statements to info blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Colelyman committed Aug 20, 2024
1 parent a58b915 commit 888a423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRISPResso2/CRISPRessoCORE.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def numpy_encoder(obj):
variant_lines = ""
file.write(variant_lines)

info(f"Process {process_id + 1} has finished processing {index} unique reads")
info(f"Process {process_id + 1} has finished processing {index} unique reads", {'percent_complete': 10})


def process_fastq(fastq_filename, variantCache, ref_names, refs, args, files_to_remove, output_directory, fastq_write_out=False):
Expand Down Expand Up @@ -682,7 +682,7 @@ def process_fastq(fastq_filename, variantCache, ref_names, refs, args, files_to_
processes.append(process)
for p in processes:
p.join() # pauses the main thread until the processes are finished
info("Finished processing unique reads, now generating statistics...")
info("Finished processing unique reads, now generating statistics...", {'percent_complete': 15})
if os.path.exists(variants_dir):
variant_file_list = []
for n_processes in range(n_processes):
Expand Down Expand Up @@ -883,7 +883,7 @@ def process_bam(bam_filename, bam_chr_loc, output_bam, variantCache, ref_names,
for p in processes:
p.join() # pauses the main thread until the processes are finished

info("Finished processing unique reads, now generating statistics...")
info("Finished processing unique reads, now generating statistics...", {'percent_complete': 15})
variant_file_list = []
if os.path.exists(variants_dir):
for n_processes in range(n_processes):
Expand Down

0 comments on commit 888a423

Please sign in to comment.