Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Fixed wrong assignment of parser in scorebigwig
Browse files Browse the repository at this point in the history
  • Loading branch information
msbentsen committed Apr 29, 2019
1 parent 922de82 commit 04ea5f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions tobias/footprinting/scorebigwig.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

"""
FootprintScores: Calculate footprint tracks from cutsite bigwig
ScoreBigwig: Calculate footprint tracks from cutsite bigwig
@author: Mette Bentsen
@contact: mette.bentsen (at) mpi-bn.mpg.de
Expand Down Expand Up @@ -37,7 +37,7 @@ def add_scorebigwig_arguments(parser):
description = "ScoreBigwig calculates scores (such as footprint-scores) from bigwig files (such as ATAC-seq cutsites calculated using the ATACorrect tool).\n\n"
description += "Usage: ScoreBigwig --signal <cutsites.bw> --regions <regions.bed> --output <output.bw>\n\n"
description += "Output:\n- <output.bw>"
parser.description = format_help_description("FootprintScores", description)
parser.description = format_help_description("ScoreBigwig", description)

parser._action_groups.pop() #pop -h

Expand All @@ -57,10 +57,10 @@ def add_scorebigwig_arguments(parser):
optargs.add_argument('--max-limit', metavar="<float>", type=float, help="Limit input bigwig score range (default: no upper limit)") #default none

footprintargs = parser.add_argument_group('Parameters for score == footprint')
optargs.add_argument('--fp-min', metavar="<int>", type=int, help="Minimum footprint width (default: 20)", default=20)
optargs.add_argument('--fp-max', metavar="<int>", type=int, help="Maximum footprint width (default: 50)", default=50)
optargs.add_argument('--flank-min', metavar="<int>", type=int, help="Minimum range of flanking regions (default: 10)", default=10)
optargs.add_argument('--flank-max', metavar="<int>", type=int, help="Maximum range of flanking regions (default: 30)", default=30)
footprintargs.add_argument('--fp-min', metavar="<int>", type=int, help="Minimum footprint width (default: 20)", default=20)
footprintargs.add_argument('--fp-max', metavar="<int>", type=int, help="Maximum footprint width (default: 50)", default=50)
footprintargs.add_argument('--flank-min', metavar="<int>", type=int, help="Minimum range of flanking regions (default: 10)", default=10)
footprintargs.add_argument('--flank-max', metavar="<int>", type=int, help="Maximum range of flanking regions (default: 30)", default=30)

sumargs = parser.add_argument_group('Parameters for score == sum')
sumargs.add_argument('--window', metavar="<int>", type=int, help="The window for calculation of sum (default: 100)", default=100)
Expand Down Expand Up @@ -141,7 +141,7 @@ def run_scorebigwig(args):
logger = TobiasLogger("ScoreBigwig", args.verbosity)
logger.begin()

parser = add_footprint_arguments(argparse.ArgumentParser())
parser = add_scorebigwig_arguments(argparse.ArgumentParser())
logger.arguments_overview(parser, args)
logger.output_files([args.output])

Expand Down
2 changes: 1 addition & 1 deletion tobias/motifs/tfbscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def add_tfbscan_arguments(parser):
optional_arguments.add_argument('--gc', metavar="", type=lambda x: restricted_float(x,0,1), help='Set the gc content for background regions (default: will be estimated from fasta)')
optional_arguments.add_argument('--pvalue', metavar="", type=lambda x: restricted_float(x,0,1), help='Set p-value for motif matches (default: 0.0001)', default=0.0001)
optional_arguments.add_argument('--keep-overlaps', action='store_true', help='Keep overlaps of same motifs (default: overlaps are resolved by keeping best-scoring site)')
optional_arguments.add_argument('--add-region-columns', action='store_true', help="Add extra information columns (from 4th column) from --regions to the output .bed-file(s) (default: off)")
optional_arguments.add_argument('--add-region-columns', action='store_true', help="Add extra information columns (starting from 4th column) from --regions to the output .bed-file(s) (default: off)")

RUN = parser.add_argument_group('Run arguments')
RUN.add_argument('--split', metavar="<int>", type=int, help="Split of multiprocessing jobs (default: 100)", default=100)
Expand Down

0 comments on commit 04ea5f7

Please sign in to comment.