| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = description, |
| 7 |
usage = 'fastaq fasta_to_fastq <fasta in> <qual in> <fastq out>') |
| 8 |
parser.add_argument('fasta', help='Name of input FASTA file', metavar='fasta in') |
| 9 |
parser.add_argument('qual', help='Name of input quality scores file', metavar='qual in') |
| 10 |
parser.add_argument('outfile', help='Name of output FASTQ file', metavar='fastq out') |
| 11 |
options = parser.parse_args() |
| 12 |
tasks.fasta_to_fastq(options.fasta, options.qual, options.outfile) |