Skip to content

Commit

Permalink
Added versioning functionality and release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Foster committed Sep 5, 2022
1 parent 533da16 commit c074909
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file removed src/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion src/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from Bio import SeqIO
from Bio.Seq import Seq
from src import __version__
import os
import subprocess
import argparse
Expand Down Expand Up @@ -180,9 +181,11 @@ def main(sysargs = sys.argv[1:]):
parser.add_argument('-r','--reference', required=False, help="Reference genome in fasta format", default = os.path.join(os.getcwd(),"MN908947.3.fasta"))
parser.add_argument('-t','--threads', required=False, action="store", default=os.cpu_count(), help='Number of threads to use in parallel processing. Defaults to all available threads.')
parser.add_argument('-o','--outfile', required=False, action="store", default='deletion_results.tsv', help='Name of the outfile to store results')
parser.add_argument("--version",action="version", version=f"v{__version__}")
args=parser.parse_args()

printc("\nDeletion Detector\n", 'green')
printc("\nDeletion Detector", 'green')
printc("Version: {}\n".format(__version__),'blue')

if len(sysargs)<1:
parser.print_help()
Expand Down

0 comments on commit c074909

Please sign in to comment.