Debian Codegraph @

pyfastaq/runners/to_orfs_gff.py

raw
1 import argparse
2 from pyfastaq import tasks
3
4 def run(description):
5 parser = argparse.ArgumentParser(
6 description = 'Writes a GFF file of open reading frames from a sequence file',
7 usage = 'fastaq to_orfs_gff [options] <infile> <outfile>')
8 parser.add_argument('--min_length', type=int, help='Minimum length of ORF, in nucleotides [%(default)s]', default=300, metavar='INT')
9 parser.add_argument('infile', help='Name of input file')
10 parser.add_argument('outfile', help='Name of output GFF file')
11 options = parser.parse_args()
12 tasks.fastaq_to_orfs_gff(options.infile, options.outfile, min_length=options.min_length)