Skip to content

Commit

Permalink
Add version variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bvalot committed Oct 19, 2020
1 parent 1fb87b5 commit 57b7886
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ISFinder_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import argparse
import sys
import requests
from lib import variables
try:
from HTMLParser import HTMLParser
except ImportError:
Expand Down Expand Up @@ -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):
Expand Down
5 changes: 3 additions & 2 deletions annotateISresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', \
Expand All @@ -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")
Expand Down
1 change: 1 addition & 0 deletions lib/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
"""List of global variable setup"""

cigarclip = set([4,5])
version="0.1.5"
3 changes: 2 additions & 1 deletion panISa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', \
Expand All @@ -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__':
Expand Down

0 comments on commit 57b7886

Please sign in to comment.