Skip to content

Commit

Permalink
Adding --version to some files
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimwolff committed Nov 22, 2018
1 parent dcca49a commit 3fee43f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion hicexplorer/findRestSite.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.Alphabet import generic_dna
from hicexplorer._version import __version__

import logging
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -42,7 +43,8 @@ def parse_arguments(args=None):
parserOpt = parser.add_argument_group('Optional arguments')

parserOpt.add_argument("--help", "-h", action="help", help="show this help message and exit")

parserOpt.add_argument('--version', action='version',
version='%(prog)s {}'.format(__version__))
return parser


Expand Down
4 changes: 3 additions & 1 deletion hicexplorer/hicAggregateContacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import hicexplorer.utilities
from .utilities import toString
from .utilities import check_chrom_str_bytes
from hicexplorer._version import __version__

import logging
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -81,7 +82,8 @@ def parse_arguments(args=None):
default='median')

parserOpt.add_argument("--help", "-h", action="help", help="show this help message and exit")

parserOpt.add_argument('--version', action='version',
version='%(prog)s {}'.format(__version__))
parserOut = parser.add_argument_group('Output options')

parserOut.add_argument('--outFilePrefixMatrix',
Expand Down
4 changes: 3 additions & 1 deletion hicexplorer/hicMergeTADbins.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from builtins import range
import numpy as np
from hicexplorer.utilities import toString
from hicexplorer._version import __version__

import logging
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -37,7 +38,8 @@ def parse_arguments():
parser.add_argument('--outFile', '-o',
help='Name for the resulting matrix file.',
required=True)

parser.add_argument('--version', action='version',
version='%(prog)s {}'.format(__version__))
return parser


Expand Down
4 changes: 3 additions & 1 deletion hicexplorer/hicPlotViewpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import os
from hicexplorer._version import __version__

import logging
log = logging.getLogger(__name__)
Expand Down Expand Up @@ -50,7 +51,8 @@ def parse_arguments(args=None):
'ouput is a raster graphics image (e.g png, jpg)',
type=int,
default=300)

parserOpt.add_argument('--version', action='version',
version='%(prog)s {}'.format(__version__))
parserOpt.add_argument("--help", "-h", action="help", help="show this help message and exit")

return parser
Expand Down
2 changes: 0 additions & 2 deletions hicexplorer/test/general/test_hicConvertFormat.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
original_matrix_h5 = ROOT + "/small_test_matrix.h5"
original_matrix_cool = ROOT + "/small_test_matrix.cool"

original_matrix_h5_li = ROOT + "/small_test_matrix.h5"
original_matrix_cool_li = ROOT + "/small_test_matrix.cool"
# test cases for:
# - h5 to cool
# - h5 to homer
Expand Down

0 comments on commit 3fee43f

Please sign in to comment.