| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = 'Translates all sequences in input file. Output is always FASTA format', |
| 7 |
usage = 'fastaq translate [options] <infile> <outfile>') |
| 8 |
parser.add_argument('--frame', type=int, choices=[0,1,2], help='Frame to translate [%(default)s]', default=0) |
| 9 |
parser.add_argument('infile', help='Name of file to be translated') |
| 10 |
parser.add_argument('outfile', help='Name of output FASTA file') |
| 11 |
options = parser.parse_args() |
| 12 |
tasks.translate(options.infile, options.outfile, frame=options.frame) |