import argparse from pyfastaq import tasks def run(description): parser = argparse.ArgumentParser( description = description, usage = 'fastaq interleave ') parser.add_argument('--suffix1', help='Suffix to add to all names from infile_1 (if suffix not already present)') parser.add_argument('--suffix2', help='Suffix to add to all names from infile_2 (if suffix not already present)') parser.add_argument('infile_1', help='Name of first input file') parser.add_argument('infile_2', help='Name of second input file') parser.add_argument('outfile', help='Name of output file of interleaved reads') options = parser.parse_args() tasks.interleave( options.infile_1, options.infile_2, options.outfile, suffix1=options.suffix1, suffix2=options.suffix2 )