[go: nahoru, domu]

Skip to content

Commit

Permalink
Add script to calculate base quality calibration.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 455499409
  • Loading branch information
kishwarshafin authored and Copybara-Service committed Jun 17, 2022
1 parent 0bb1adb commit 002752b
Show file tree
Hide file tree
Showing 7 changed files with 4,155 additions and 2 deletions.
9 changes: 7 additions & 2 deletions deepconsensus/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
Commands:
preprocess: Convert aligned subreads to tf.Example format.
run: Run DeepConsenseus beginning with aligned subreads.
calculate_baseq_calibration: Calculate base-quliaty calibration.
"""

import argparse
Expand All @@ -46,7 +46,7 @@

from deepconsensus.utils import dc_constants

COMMANDS = ['preprocess', 'run']
COMMANDS = ['preprocess', 'run', 'calculate_baseq_calibration']


def parse_flags(argv):
Expand Down Expand Up @@ -100,6 +100,11 @@ def main(argset):
quick_inference.register_required_flags()
handle_help(passed, quick_inference)
app.run(quick_inference.main, argv=passed)
elif args.command == 'calculate_baseq_calibration':
from deepconsensus.quality_calibration import calculate_baseq_calibration
calculate_baseq_calibration.register_required_flags()
handle_help(passed, calculate_baseq_calibration)
app.run(calculate_baseq_calibration.main, argv=passed)


def run():
Expand Down
Loading

0 comments on commit 002752b

Please sign in to comment.