Mercurial > repos > yating-l > jbrowse_hub
comparison TrackHub.py @ 21:7e1c25080972 draft
planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit e81fecac281f299db00cfc88a068e056b031ae9d-dirty
author | yating-l |
---|---|
date | Tue, 14 Mar 2017 16:17:48 -0400 |
parents | 49841ae99869 |
children | fcf2865c950c |
comparison
equal
deleted
inserted
replaced
20:49841ae99869 | 21:7e1c25080972 |
---|---|
56 if track['dataType'] == 'bam': | 56 if track['dataType'] == 'bam': |
57 json_file = os.path.join(self.json, "trackList.json") | 57 json_file = os.path.join(self.json, "trackList.json") |
58 bam_track = dict() | 58 bam_track = dict() |
59 bam_track['type'] = 'JBrowse/View/Track/Alignments2' | 59 bam_track['type'] = 'JBrowse/View/Track/Alignments2' |
60 bam_track['label'] = track['fileName'] | 60 bam_track['label'] = track['fileName'] |
61 bam_track['urlTemplate'] = os.path.join('../raw', track['fileName']) | 61 bam_track['urlTemplate'] = os.path.join(self.raw, track['fileName']) |
62 utils.add_tracks_to_json(json_file, bam_track, 'add_tracks') | 62 utils.add_tracks_to_json(json_file, bam_track, 'add_tracks') |
63 print "add bam track\n" | 63 print "add bam track\n" |
64 elif track['dataType'] == 'bigwig': | 64 elif track['dataType'] == 'bigwig': |
65 json_file = os.path.join(self.json, "trackList.json") | 65 json_file = os.path.join(self.json, "trackList.json") |
66 bigwig_track = dict() | 66 bigwig_track = dict() |
67 bigwig_track['label'] = 'rnaseq' | 67 bigwig_track['label'] = track['fileName'] |
68 bigwig_track['key'] = 'RNA-Seq Coverage' | 68 bigwig_track['urlTemplate'] = os.path.join(self.raw, track['fileName']) |
69 bigwig_track['urlTemplate'] = os.path.join('../raw', track['fileName']) | |
70 bigwig_track['type'] = 'JBrowse/View/Track/Wiggle/XYPlot' | 69 bigwig_track['type'] = 'JBrowse/View/Track/Wiggle/XYPlot' |
71 bigwig_track['variance_band'] = True | 70 bigwig_track['variance_band'] = True |
72 bigwig_track['style'] = dict() | 71 bigwig_track['style'] = dict() |
73 bigwig_track['style']['pos_color'] = '#FFA600' | 72 bigwig_track['style']['pos_color'] = '#FFA600' |
74 bigwig_track['style']['neg_color'] = '#005EFF' | 73 bigwig_track['style']['neg_color'] = '#005EFF' |