diff jbrowse.py @ 13:69c5e9c0add0 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/jbrowse commit bb4fe9cc4bc03918afa525569ed36144a819ce79
author iuc
date Thu, 09 Feb 2017 12:36:16 -0500
parents db5fe5a3176a
children 18be2d72fdee
line wrap: on
line diff
--- a/jbrowse.py	Mon Feb 06 12:52:09 2017 -0500
+++ b/jbrowse.py	Thu Feb 09 12:36:16 2017 -0500
@@ -424,6 +424,10 @@
                '--trackType', 'JBrowse/View/Track/CanvasFeatures'
                ]
 
+        # className in --clientConfig is ignored, it needs to be set with --className
+        if 'className' in trackData['style']:
+            cmd += ['--className', trackData['style']['className']]
+
         self.subprocess_check_call(cmd)
         os.unlink(gff3)
 
@@ -506,6 +510,10 @@
             '--key', trackData['key']
         ]
 
+        # className in --clientConfig is ignored, it needs to be set with --className
+        if 'className' in trackData['style']:
+            cmd += ['--className', trackData['style']['className']]
+
         config = copy.copy(trackData)
         clientConfig = trackData['style']
         del config['style']
@@ -528,6 +536,9 @@
                 config['subParts'] = gffOpts['subParts']
             if 'impliedUTRs' in gffOpts and gffOpts['impliedUTRs']:
                 config['impliedUTRs'] = gffOpts['impliedUTRs']
+        elif trackType == 'JBrowse/View/Track/HTMLFeatures':
+            if 'transcriptType' in gffOpts and gffOpts['transcriptType']:
+                cmd += ['--type', gffOpts['transcriptType']]
 
         cmd += [
             '--trackType', gffOpts['trackType']