| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = description, |
| 7 |
usage = 'fastaq interleave <infile_1> <infile_2> <outfile>') |
| 8 |
parser.add_argument('--suffix1', help='Suffix to add to all names from infile_1 (if suffix not already present)') |
| 9 |
parser.add_argument('--suffix2', help='Suffix to add to all names from infile_2 (if suffix not already present)') |
| 10 |
parser.add_argument('infile_1', help='Name of first input file') |
| 11 |
parser.add_argument('infile_2', help='Name of second input file') |
| 12 |
parser.add_argument('outfile', help='Name of output file of interleaved reads') |
| 13 |
options = parser.parse_args() |
| 14 |
tasks.interleave( |
| 15 |
options.infile_1, |
| 16 |
options.infile_2, |
| 17 |
options.outfile, |
| 18 |
suffix1=options.suffix1, |
| 19 |
suffix2=options.suffix2 |
| 20 |
) |