pyfastaq/runners/count_sequences.py
raw| 1 | import argparse |
| 2 | from pyfastaq import tasks |
| 3 | |
| 4 | def run(description): |
| 5 | parser = argparse.ArgumentParser( |
| 6 | description = 'Prints the number of sequences in input file to stdout', |
| 7 | usage = 'fastaq count_sequences <infile>') |
| 8 | parser.add_argument('infile', help='Name of input file') |
| 9 | options = parser.parse_args() |
| 10 | print(tasks.count_sequences(options.infile)) |