From 480f260b4e2f46744a5248404e5f0d47896d00a6 Mon Sep 17 00:00:00 2001
From: Beibei Chen <beibei.chen@utsouthwestern.edu>
Date: Wed, 26 Apr 2017 10:36:31 -0500
Subject: [PATCH] update yaml

---
 astrocyte_pkg.yml               | 4 ++--
 workflow/scripts/runMemechip.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/astrocyte_pkg.yml b/astrocyte_pkg.yml
index 754c091..5c2f7f5 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 1838e17..36f84c5 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   
-- 
GitLab