| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = description, |
| 7 |
usage = 'fastaq replace_bases <infile> <outfile> <old> <new>') |
| 8 |
parser.add_argument('infile', help='Name of input file') |
| 9 |
parser.add_argument('outfile', help='Name of output file') |
| 10 |
parser.add_argument('old', help='Base to be replaced') |
| 11 |
parser.add_argument('new', help='Replace with this letter') |
| 12 |
options = parser.parse_args() |
| 13 |
tasks.replace_bases(options.infile, options.outfile, options.old, options.new) |