Mercurial > repos > yating-l > hubarchivecreator
comparison Datatype.py @ 51:364b8db8de17 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 6ac76e7da539ca1773fb809054679f0bf8a06972-dirty
| author | yating-l | 
|---|---|
| date | Wed, 12 Apr 2017 16:51:03 -0400 | 
| parents | 3e0c61b52a06 | 
| children | c66803bff0cc | 
   comparison
  equal
  deleted
  inserted
  replaced
| 50:47dc3e7470dd | 51:364b8db8de17 | 
|---|---|
| 93 # Convert hexa to rgb array | 93 # Convert hexa to rgb array | 
| 94 hexa_without_sharp = track_color.lstrip('#') | 94 hexa_without_sharp = track_color.lstrip('#') | 
| 95 rgb_array = [int(hexa_without_sharp[i:i+2], 16) for i in (0, 2, 4)] | 95 rgb_array = [int(hexa_without_sharp[i:i+2], 16) for i in (0, 2, 4)] | 
| 96 rgb_ucsc = ','.join(map(str, rgb_array)) | 96 rgb_ucsc = ','.join(map(str, rgb_array)) | 
| 97 | 97 | 
| 98 #sanitize the track_name | |
| 99 sanitized_name = subtools.fixName(track_name) | |
| 100 | |
| 98 track_db = TrackDb( | 101 track_db = TrackDb( | 
| 99 trackName=track_name, | 102 trackName=sanitized_name, | 
| 100 longLabel=long_label, | 103 longLabel=long_label, | 
| 101 shortLabel=short_label, | 104 shortLabel=short_label, | 
| 102 trackDataURL=data_url, | 105 trackDataURL=data_url, | 
| 103 trackType=track_type, | 106 trackType=track_type, | 
| 104 visibility=visibility, | 107 visibility=visibility, | 
