Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken --version options on 'make_macs_xls.py' & 'make_macs2_xls.py' #135

Merged
merged 1 commit into from Sep 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions ChIP-seq/make_macs2_xls.py
Expand Up @@ -51,7 +51,7 @@
# Module metadata
#######################################################################

__version__ = '0.6.2'
__version__ = '0.6.3'

#######################################################################
# Class definitions
Expand Down Expand Up @@ -1144,14 +1144,15 @@ def main(macs_file,xls_out,xls_format="xlsx",bed_out=None):

if __name__ == "__main__":
# Process command line
p = argparse.ArgumentParser(version="%(prog)s "+__version__,
description=
p = argparse.ArgumentParser(description=
"Create an XLS(X) spreadsheet from the output "
"of the MACS2 peak caller. MACS2_XLS is the "
"output '.xls' file from MACS2; if supplied "
"then XLS_OUT is the name to use for the output "
"file (otherwise it will be called "
"'XLS_<MACS2_XLS>.xls(x)').")
p.add_argument('--version',action='version',
version="%(prog)s "+__version__)
p.add_argument("-f","--format",
action="store",dest="xls_format",default="xlsx",
help="specify the output Excel spreadsheet format; must be "
Expand Down
5 changes: 3 additions & 2 deletions ChIP-seq/make_macs_xls.py
Expand Up @@ -45,7 +45,7 @@
# Module metadata
#######################################################################

__version__ = '0.2.1'
__version__ = '0.2.2'

#######################################################################
# Class definitions
Expand All @@ -66,12 +66,13 @@
if __name__ == "__main__":
# Process command line
p = argparse.ArgumentParser(
version="%(prog)s "+__version__,
description=
"Create an XLS spreadsheet from the output of the MACS peak "
"caller. <MACS_OUTPUT> is the output '.xls' file from MACS; "
"if supplied then <XLS_OUT> is the name to use for the output "
"file, otherwise it will be called 'XLS_<MACS_OUTPUT>.xls'.")
p.add_argument('--version',action='version',
version="%(prog)s "+__version__)
p.add_argument('macs_in',metavar="MACS_OUTPUT",action='store',
help="output .xls file from MACS")
p.add_argument('xls_out',metavar="XLS_OUT",action='store',nargs='?',
Expand Down