diff util/subtools.py @ 18:79b23a8afb15 draft

planemo upload for repository https://github.com/goeckslab/jbrowse-archive-creator.git commit 398c2fd8d1cb38decddf8cd58574cf39b1b52eaa
author yating-l
date Fri, 20 Jul 2018 12:25:36 -0400
parents 315a40b0b694
children 62dee5369e80
line wrap: on
line diff
--- a/util/subtools.py	Mon Jun 25 16:05:01 2018 -0400
+++ b/util/subtools.py	Fri Jul 20 12:25:36 2018 -0400
@@ -384,8 +384,9 @@
 
 def generate_names(outputFolder, nameIndexTrackList, hashBits=4):
     array_call = ['generate-names.pl', '--hashBits', str(hashBits), '-v', '--completionLimit', '0', '--out', outputFolder]
-    array_call.append('--tracks')
-    array_call.append(','.join(nameIndexTrackList))
+    if nameIndexTrackList:
+        array_call.append('--tracks')
+        array_call.append(','.join(nameIndexTrackList))
     p = _handleExceptionAndCheckCall(array_call)
     return p