| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = description, |
| 7 |
usage = 'fastaq to_fake_qual [options] <infile> <outfile>') |
| 8 |
parser.add_argument('infile', help='Name of input file') |
| 9 |
parser.add_argument('outfile', help='Name of output file') |
| 10 |
parser.add_argument('-q', '--qual', type=int, help='Quality score to assign to all bases [%(default)s]', default=40) |
| 11 |
options = parser.parse_args() |
| 12 |
tasks.fastaq_to_fake_qual( |
| 13 |
options.infile, |
| 14 |
options.outfile, |
| 15 |
q=options.qual |
| 16 |
) |
| 17 |
|