| 1 |
import argparse |
| 2 |
from pyfastaq import tasks |
| 3 |
|
| 4 |
def run(description): |
| 5 |
parser = argparse.ArgumentParser( |
| 6 |
description = 'Searches for an exact match on a given string and its reverse complement, in every sequence of input sequence file. Case insensitive. Guaranteed to find all hits', |
| 7 |
usage = 'fastaq search_for_seq [options] <infile> <outfile> <search_string>') |
| 8 |
parser.add_argument('infile', help='Name of input file') |
| 9 |
parser.add_argument('outfile', help='Name of outputfile. Tab-delimited output: sequence name, position, strand') |
| 10 |
parser.add_argument('search_string', help='String to search for in the sequences') |
| 11 |
options = parser.parse_args() |
| 12 |
tasks.search_for_seq(options.infile, options.outfile, options.search_string) |