-
Notifications
You must be signed in to change notification settings - Fork 0
/
digIS_search.py
27 lines (17 loc) · 1.06 KB
/
digIS_search.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import argparse
from src.search_tool.digISConfiguration import digISConfiguration
from src.search_tool.digISMultifasta import digISMultifasta
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="digIS search")
parser.add_argument('-i', "--input", action='store', dest='input_fasta', required=True,
help='Input fasta file, nucleotide')
parser.add_argument('-g', "--genbank", action='store', dest='genbank_file', required=False, default=None,
help='Genbank annotations for genome in the input fasta file.')
parser.add_argument('-o', "--output", action='store', dest='output_dir', required=False, default="digIS_output",
type=str, help='Output directory name, default=digIS_output.')
args = parser.parse_args()
digIS_conf = digISConfiguration(genome_file=args.input_fasta,
genbank_file=args.genbank_file,
output_dir=args.output_dir)
digIS = digISMultifasta(digIS_conf)
digIS.run()