| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = 'Creates a file of contigs from a file of scaffolds - i.e. breaks at every gap in the input', |
| 7 |
usage = 'fastaq scaffolds_to_contigs [options] <infile> <outfile>') |
| 8 |
parser.add_argument('--number_contigs', action='store_true', help='Use this to enumerate contig names 1,2,3,... within each scaffold') |
| 9 |
parser.add_argument('infile', help='Name of input file') |
| 10 |
parser.add_argument('outfile', help='Name of output contigs file') |
| 11 |
options = parser.parse_args() |
| 12 |
tasks.scaffolds_to_contigs(options.infile, options.outfile, number_contigs=options.number_contigs) |