changeset 21:5201e615dd7f draft

Uploaded
author greg
date Mon, 20 Nov 2017 14:48:21 -0500
parents 696e435f5607
children a3740127fc5e
files ideas_genome_tracks.xml
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ideas_genome_tracks.xml	Mon Nov 20 10:34:37 2017 -0500
+++ b/ideas_genome_tracks.xml	Mon Nov 20 14:48:21 2017 -0500
@@ -7,9 +7,11 @@
          <requirement type="package" version="332">ucsc-bedtobigbed</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
-#import string
+#import re
 #set dbkey = None
-#set sanitized_hub_name = $hub_name.translate(dict.fromkeys(map(ord, whitespace)))
+#set sanitized_hub_name = $re.sub('\s+', '', str($hub_name), flags=re.UNICODE)
+#set sanitized_long_label = str($long_label)[:79]
+#set sanitized_short_label = str($short_label)[:16]
 #if str($__user__.email) == 'None':
     #set email = "foo@bar.net"
 #else:
@@ -36,14 +38,13 @@
 -b $dbkey
 -c '$chromInfo'
 -e '$email'
--l '$long_label[:79]'
--n '$sanitized_hub_name'
+-l '$sanitized_long_label'
+-n '$hub_name'
 -p '$input_dir_para'
 -q '$input_dir_state'
--s '$short_label[:16]'
+-s '$sanitized_short_label'
 -w '$output_trackhub'
 -x '$output_trackhub.files_path'
-&>/dev/null
     ]]></command>
     <inputs>
         <param name="input" format="txt" type="data_collection" collection_type="list" label="IDEAS files" />