comparison tools/protein_analysis/promoter2.py @ 28:22e71e53f534 draft

Capture version of promoter2
author peterjc
date Tue, 01 Sep 2015 08:24:49 -0400
parents 20139cb4c844
children 3cb02adf4326
comparison
equal deleted inserted replaced
27:9e36a1b9302d 28:22e71e53f534
31 import commands 31 import commands
32 import tempfile 32 import tempfile
33 from seq_analysis_utils import sys_exit, split_fasta, run_jobs, thread_count 33 from seq_analysis_utils import sys_exit, split_fasta, run_jobs, thread_count
34 34
35 FASTA_CHUNK = 500 35 FASTA_CHUNK = 500
36
37 if "-v" in sys.argv or "--version" in sys.argv:
38 sys.exit(os.system("promoter -V"))
36 39
37 if len(sys.argv) != 4: 40 if len(sys.argv) != 4:
38 sys_exit("Require three arguments, number of threads (int), input DNA FASTA file & output tabular file. " 41 sys_exit("Require three arguments, number of threads (int), input DNA FASTA file & output tabular file. "
39 "Got %i arguments." % (len(sys.argv)-1)) 42 "Got %i arguments." % (len(sys.argv)-1))
40 43