Mercurial > repos > yating-l > jbrowsearchivecreator
comparison tracks/CanvasFeatures.py @ 20:85971ec2a527 draft default tip
planemo upload for repository https://github.com/goeckslab/jbrowse-archive-creator.git commit 81d946d4544a4ea7e5b55f90caef971eca6abba0
author | sargentl |
---|---|
date | Fri, 21 Sep 2018 16:30:54 -0400 |
parents | 62dee5369e80 |
children |
comparison
equal
deleted
inserted
replaced
19:62dee5369e80 | 20:85971ec2a527 |
---|---|
21 else: | 21 else: |
22 self.extraSettings['style']['color'] = self.extraSettings['color'] | 22 self.extraSettings['style']['color'] = self.extraSettings['color'] |
23 track = dict() | 23 track = dict() |
24 track['type'] = 'JBrowse/View/Track/' + self.trackType | 24 track['type'] = 'JBrowse/View/Track/' + self.trackType |
25 track['storeClass'] = 'JBrowse/Store/SeqFeature/GFF3Tabix' | 25 track['storeClass'] = 'JBrowse/Store/SeqFeature/GFF3Tabix' |
26 if self.dataType == 'bed': | |
27 track['storeClass'] = 'JBrowse/Store/SeqFeature/BEDTabix' | |
26 if self.dataType == 'gff': | 28 if self.dataType == 'gff': |
27 # need .gff3.gz extension to index the name of the track with generate-name.pl | 29 # need .gff3.gz extension to index the name of the track with generate-name.pl |
28 track['urlTemplate'] = os.path.join('tracks', self.trackName + '.gff3.gz') | 30 track['urlTemplate'] = os.path.join('tracks', self.trackName + '.gff3.gz') |
29 else: | 31 else: |
30 track['urlTemplate'] = os.path.join('tracks', self.trackName) | 32 track['urlTemplate'] = os.path.join('tracks', self.trackName) |
38 if "menuTemplate" in self.extraSettings: | 40 if "menuTemplate" in self.extraSettings: |
39 track["menuTemplate"] = [{}, self.extraSettings["menuTemplate"]] | 41 track["menuTemplate"] = [{}, self.extraSettings["menuTemplate"]] |
40 #self.track["menuTemplate"] += [{"label" : "View details"}, {"label" : "Highlight this gene"}, self.extraSettings["menuTemplate"]] | 42 #self.track["menuTemplate"] += [{"label" : "View details"}, {"label" : "Highlight this gene"}, self.extraSettings["menuTemplate"]] |
41 extraConfigs = track | 43 extraConfigs = track |
42 return extraConfigs | 44 return extraConfigs |
43 |