| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = description, |
| 7 |
usage = 'fastaq trim_ends <infile> <bases off start> <bases off end> <outfile>') |
| 8 |
parser.add_argument('infile', help='Name of input file') |
| 9 |
parser.add_argument('start_trim', type=int, help='Number of bases to trim off start') |
| 10 |
parser.add_argument('end_trim', type=int, help='Number of bases to trim off end') |
| 11 |
parser.add_argument('outfile', help='Name of output file') |
| 12 |
options = parser.parse_args() |
| 13 |
tasks.trim(options.infile, options.outfile, options.start_trim, options.end_trim) |