diff TrackHub.py @ 12:e1f188b43750 draft

planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit f18ea51d27ec7addfa6413716391cfefebc8acbc-dirty
author yating-l
date Tue, 14 Mar 2017 14:31:36 -0400
parents e7c80e9b70ae
children 8627394693c6
line wrap: on
line diff
--- a/TrackHub.py	Tue Mar 14 14:00:30 2017 -0400
+++ b/TrackHub.py	Tue Mar 14 14:31:36 2017 -0400
@@ -80,9 +80,9 @@
             label = track['fileName']
             if track['dataType'] == 'bedSpliceJunctions' or track['dataType'] == 'gtf':
                 p = subprocess.Popen(['flatfile-to-json.pl', '--gff', gff3_file, '--trackType', 'CanvasFeatures', '--trackLabel', label, '--config', '{"glyph": "JBrowse/View/FeatureGlyph/Segments"}', '--out', self.json])
-            elif track['dataType'] == 'gff3-transcript':
+            elif track['dataType'] == 'gff3_transcript':
                 p = subprocess.Popen(['flatfile-to-json.pl', '--gff', gff3_file, '--trackType', 'MyPlugin/GenePred', '--trackLabel', label, '--config', '{"transcriptType": "transcript"}', '--out', self.json])
-            elif track['dataType'] == 'gff3':
+            elif track['dataType'] == 'gff3_mrna':
                 p = subprocess.Popen(['flatfile-to-json.pl', '--gff', gff3_file, '--trackType', 'MyPlugin/GenePred', '--trackLabel', label, '--out', self.json])
             else:
                 p = subprocess.Popen(['flatfile-to-json.pl', '--gff', gff3_file, '--trackType', 'CanvasFeatures', '--trackLabel', label, '--out', self.json])