Skip to content

Commit

Permalink
Print total number of reads at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
Psy-Fer committed Aug 16, 2024
1 parent a619c1d commit b4a5c99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/buttery_eel.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
from .basecaller import start_guppy_server_and_client, basecaller_proc

# region constants
total_reads = 0
div = 50
skipped = 0
# total_reads = 0
# div = 50
# skipped = 0

# How we get data out of the model files if they are not provided by the metadata output

Expand Down
2 changes: 2 additions & 0 deletions src/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def write_worker(args, q, files, SAM_OUT):
for fffile in bc_files:
bc_files[fffile].close()

print("Total reads: {}".format(total_reads))

if args.profile:
pr.disable()
s = io.StringIO()
Expand Down

0 comments on commit b4a5c99

Please sign in to comment.