Skip to content

Commit 9f57289

Browse files
Merge branch 'version'
2 parents e5623d2 + 7a63a1f commit 9f57289

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/samplot.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
from matplotlib.offsetbox import AnchoredText
1818
import matplotlib.ticker as ticker
1919

20+
VERSION="1.0.1"
21+
2022
INTERCHROM_YAXIS=5000
2123

2224
COLORS = {
@@ -1966,11 +1968,17 @@ def print_arguments(options):
19661968
def setup_arguments():
19671969
"""Defines the allowed arguments for samplot
19681970
"""
1969-
parser = argparse.ArgumentParser(
1971+
parser = argparse.ArgumentParser( \
1972+
prog="samplot",
19701973
description="SAMPLOT creates images of genome regions from " + \
19711974
"CRAM/SAM alignments, "+\
19721975
"optimized for structural variant call review")
19731976

1977+
parser.add_argument('--version',
1978+
action='version',
1979+
version='%(prog)s ' + VERSION)
1980+
1981+
19741982
parser.add_argument("--marker_size",
19751983
type=int,
19761984
default=3,

0 commit comments

Comments
 (0)