diff --git a/ISFinder_search.py b/ISFinder_search.py index 949dfd5..5174f02 100755 --- a/ISFinder_search.py +++ b/ISFinder_search.py @@ -11,6 +11,7 @@ import argparse import sys import requests +from lib import variables try: from HTMLParser import HTMLParser except ImportError: @@ -40,7 +41,7 @@ command.add_argument('file', nargs="+", type=argparse.FileType("r"), \ help='PanISa result files to merge') command.add_argument('-v', '--version', action='version', \ - version='%(prog)s 0.1.4') + version='%(prog)s ' + variables.version) class URLParser(HTMLParser): diff --git a/annotateISresult.py b/annotateISresult.py index da858ff..68dc641 100755 --- a/annotateISresult.py +++ b/annotateISresult.py @@ -10,7 +10,8 @@ import argparse import sys -from lib import gff +from lib import gff +from lib import variables desc = "annotated an ISFinder result with gene informations" command = argparse.ArgumentParser(prog='annotateISresult.py', \ @@ -32,7 +33,7 @@ command.add_argument('gff', type=argparse.FileType("r"), \ help='Gff file containing annotation of genome') command.add_argument('-v', '--version', action='version', \ - version='%(prog)s 0.1.0') + version='%(prog)s ' + variables.version) def splitline(line): return line.rstrip("\n").split("\t") diff --git a/lib/variables.py b/lib/variables.py index 024865a..6403d5b 100644 --- a/lib/variables.py +++ b/lib/variables.py @@ -9,3 +9,4 @@ """List of global variable setup""" cigarclip = set([4,5]) +version="0.1.5" diff --git a/panISa.py b/panISa.py index 7432081..4dc0c91 100755 --- a/panISa.py +++ b/panISa.py @@ -15,6 +15,7 @@ from lib import bamreader from lib.couple import Couples from lib.writer import writetabular +from lib import variables desc = "Search integrative element (IS) insertion on a genome using BAM alignment" command = argparse.ArgumentParser(prog='panISa.py', \ @@ -37,7 +38,7 @@ command.add_argument('bam', type=argparse.FileType("r"), \ help='Alignment on BAM/SAM format') command.add_argument('-v', '--version', action='version', \ - version='%(prog)s 0.1.4') + version='%(prog)s ' + variables.version) if __name__=='__main__':