Mercurial > repos > yating-l > jbrowsearchivecreator
diff tracks/CanvasFeatures.py @ 39:4a69515eed63 draft
planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit 91271a6c0d39c923f0d460b2979247baa297286b-dirty
| author | yating-l |
|---|---|
| date | Fri, 13 Apr 2018 18:21:35 -0400 |
| parents | d17f629f5486 |
| children | 627cce51523f |
line wrap: on
line diff
--- a/tracks/CanvasFeatures.py Fri Apr 06 13:44:56 2018 -0400 +++ b/tracks/CanvasFeatures.py Fri Apr 13 18:21:35 2018 -0400 @@ -23,30 +23,13 @@ track = dict() track['type'] = 'JBrowse/View/Track/' + self.trackType track['storeClass'] = 'JBrowse/Store/SeqFeature/GFF3Tabix' - track['urlTemplate'] = os.path.join('tracks', self.trackName) + if self.dataType == 'gff': + track['urlTemplate'] = os.path.join('tracks', self.trackName + '.gff3.gz') + else: + track['urlTemplate'] = os.path.join('tracks', self.trackName) track['label'] = self.trackLabel track['category'] = self.extraSettings['category'] track['style'] = self.extraSettings['style'] extraConfigs = track return extraConfigs - # def prepareExtraSetting(self): - # """ set CanvasFeatures configuration options """ - # extraConfigs = dict() - # self.extraSettings["clientConfig"] = dict() - # self.extraSettings["config"] = dict() - # if 'color' not in self.extraSettings or not self.extraSettings['color']: - # self.extraSettings["clientConfig"]['color'] = "#daa520" - # else: - # self.extraSettings["clientConfig"]['color'] = self.extraSettings['color'] - # if 'category' not in self.extraSettings or not self.extraSettings['category']: - # self.extraSettings["config"]['category'] = "Default group" - # else: - # self.extraSettings["config"]['category'] = self.extraSettings['category'] - # if 'glyph' in self.extraSettings: - # self.extraSettings["config"]['glyph'] = self.extraSettings['glyph'] - # if 'transcriptType' in self.extraSettings: - # self.extraSettings['config']['transcriptType'] = self.extraSettings['transcriptType'] - # extraConfigs["config"] = json.dumps(self.extraSettings["config"]) - # extraConfigs["clientConfig"] = json.dumps(self.extraSettings["clientConfig"]) - # return extraConfigs \ No newline at end of file
