comparison TrackHub.py @ 4:7e471cdd9e71 draft

planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit 8d93b27353190eb23490c9480e560d84cb60c973
author yating-l
date Fri, 07 Jul 2017 16:17:57 -0400
parents eda851e52060
children 237707a6b74d
comparison
equal deleted inserted replaced
3:eda851e52060 4:7e471cdd9e71
11 class TrackHub: 11 class TrackHub:
12 def __init__(self, inputFiles, reference, outputDirect, tool_dir, genome, extra_files_path, metaData, jbrowse_host): 12 def __init__(self, inputFiles, reference, outputDirect, tool_dir, genome, extra_files_path, metaData, jbrowse_host):
13 self.input_files = inputFiles.tracks 13 self.input_files = inputFiles.tracks
14 self.outfile = outputDirect 14 self.outfile = outputDirect
15 self.outfolder = extra_files_path 15 self.outfolder = extra_files_path
16 self.out_path = os.path.join(extra_files_path, genome) 16 self.out_path = os.path.join(extra_files_path, 'myHub')
17 self.reference = reference 17 self.reference = reference
18 self.tool_dir = tool_dir 18 self.tool_dir = tool_dir
19 self.metaData = metaData 19 self.metaData = metaData
20 self.raw = os.path.join(self.out_path, 'raw') 20 self.raw = os.path.join(self.out_path, 'raw')
21 self.json = os.path.join(self.out_path, 'json') 21 self.json = os.path.join(self.out_path, 'json')
151 metadata['style']['neg_color'] = "#005EFF" 151 metadata['style']['neg_color'] = "#005EFF"
152 if 'category' not in metadata.keys() or metadata['category'] == '': 152 if 'category' not in metadata.keys() or metadata['category'] == '':
153 metadata['category'] = "Default group" 153 metadata['category'] = "Default group"
154 if track['dataType'] == 'blastxml': 154 if track['dataType'] == 'blastxml':
155 metadata['type'] = "G-OnRamp_plugin/BlastAlignment" 155 metadata['type'] = "G-OnRamp_plugin/BlastAlignment"
156 elif track['dataType'] == 'bigpsl':
157 metadata['type'] = "G-OnRamp_plugin/BlatAlignment"
156 elif track['dataType'] == 'gff3_transcript' or track['dataType'] == 'gff3_mrna': 158 elif track['dataType'] == 'gff3_transcript' or track['dataType'] == 'gff3_mrna':
157 metadata['type'] = "G-OnRamp_plugin/GenePred" 159 metadata['type'] = "G-OnRamp_plugin/GenePred"
158 else: 160 else:
159 metadata['type'] = "CanvasFeatures" 161 metadata['type'] = "CanvasFeatures"
160 162