| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = 'Given a file of capillary reads, makes an interleaved file of read pairs (where more than read from same ligation, takes the longest read) and a file of unpaired reads. Replaces the .p1k/.q1k part of read names to denote fwd/rev reads with /1 and /2', |
| 7 |
usage = 'fastaq capillary_to_pairs <infile> <outfiles prefix>') |
| 8 |
parser.add_argument('infile', help='Name of input fasta/q file') |
| 9 |
parser.add_argument('outprefix', help='Prefix of output files', metavar='outfiles prefix') |
| 10 |
options = parser.parse_args() |
| 11 |
tasks.capillary_to_pairs(options.infile, options.outprefix) |
| 12 |
|