diff --git a/astrocyte_pkg.yml b/astrocyte_pkg.yml index 754c0910e628d4fa88430f51e6c7d3be9ad77565..5c2f7f547ac2ce94b882b439f88e6668ba5aa0ac 100644 --- a/astrocyte_pkg.yml +++ b/astrocyte_pkg.yml @@ -112,9 +112,9 @@ workflow_parameters: - id: toppeakcount type: integer required: true - description: | - The number of top peaks to use for motif discovery. This program won't sort peak BED files for you, so please make sure your peak files are already sorted. Default : -1, use all the peaks default: -1 + description: | + The number of top peaks to use for motif discovery. This program will nott sort peak BED files for you, so please make sure your peak files are already sorted.If want all peaks to be used, use -1. # ----------------------------------------------------------------------------- # SHINY APP CONFIGURATION diff --git a/workflow/scripts/runMemechip.py b/workflow/scripts/runMemechip.py index 1838e17c09449304d5ef81ed9713313747e68fd0..36f84c512e79c1f6381bc2066954a849c4fc6b0d 100644 --- a/workflow/scripts/runMemechip.py +++ b/workflow/scripts/runMemechip.py @@ -58,7 +58,7 @@ def run(infile, genome, limit, output): rowcount = 0 limit = int(limit) logging.debug(limit) - if limit ==-1: + if limit < 0: limit = len(infile) for record in infile: rowcount += 1