diff 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
line wrap: on
line diff
--- a/tools/protein_analysis/promoter2.py	Thu May 21 10:57:40 2015 -0400
+++ b/tools/protein_analysis/promoter2.py	Tue Sep 01 08:24:49 2015 -0400
@@ -34,6 +34,9 @@
 
 FASTA_CHUNK = 500
 
+if "-v" in sys.argv or "--version" in sys.argv:
+    sys.exit(os.system("promoter -V"))
+
 if len(sys.argv) != 4:
     sys_exit("Require three arguments, number of threads (int), input DNA FASTA file & output tabular file. "
              "Got %i arguments." % (len(sys.argv)-1))