Skip to content

Commit

Permalink
Add datagathering benchmark option
Browse files Browse the repository at this point in the history
  • Loading branch information
rhpvorderman committed Jun 3, 2024
1 parent 313efed commit 113a6c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sequali/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ def argument_parser() -> argparse.ArgumentParser:
"decompression will be used. Default: 2.")
parser.add_argument("--version", action="version",
version=__version__)
# Option to skip report creation and only run the module data gathering.
# For benchmarking purposes.
parser.add_argument("--no-report", action="store_true",
help=argparse.SUPPRESS)
return parser


Expand Down Expand Up @@ -278,6 +282,8 @@ def main() -> None:
raise RuntimeError(
f"FASTQ Files out of sync {args.input_reverse} has "
f"more FASTQ records than {args.input}.")
if args.no_report:
return
report_modules = calculate_stats(
filename=args.input,
metrics=metrics1,
Expand Down

0 comments on commit 113a6c2

Please sign in to comment.