Debian Codegraph @

pyfastaq/runners/acgtn_only.py

raw
1 import argparse
2 from pyfastaq import tasks
3
4 def run(description):
5 parser = argparse.ArgumentParser(
6 description = 'Replaces any character that is not one of acgtACGTnN with an N',
7 usage = 'fastaq acgtn_only [options] <infile> <outfile>')
8 parser.add_argument('infile', help='Name of input file')
9 parser.add_argument('outfile', help='Name of output file')
10 options = parser.parse_args()
11 tasks.acgtn_only(options.infile, options.outfile)
12