Mercurial > repos > yating-l > hubarchivecreator
comparison Bam.py @ 57:b39dd0b5a166 draft
planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit ce28781f52a4f84039de300cb41e3982f2e8bf51-dirty
| author | yating-l |
|---|---|
| date | Fri, 30 Jun 2017 14:49:14 -0400 |
| parents | c66803bff0cc |
| children |
comparison
equal
deleted
inserted
replaced
| 56:04cc7c2e7b47 | 57:b39dd0b5a166 |
|---|---|
| 35 # TODO: Think about how to avoid repetition of the color treatment | 35 # TODO: Think about how to avoid repetition of the color treatment |
| 36 self.track_color = self.data_bam["track_color"] | 36 self.track_color = self.data_bam["track_color"] |
| 37 | 37 |
| 38 # TODO: Think about how to avoid repetition of the group_name everywhere | 38 # TODO: Think about how to avoid repetition of the group_name everywhere |
| 39 self.group_name = self.data_bam["group_name"] | 39 self.group_name = self.data_bam["group_name"] |
| 40 self.database = self.data_bam["database"] | |
| 40 if self.data_bam["long_label"]: | 41 if self.data_bam["long_label"]: |
| 41 self.long_label = self.data_bam["long_label"] | 42 self.long_label = self.data_bam["long_label"] |
| 42 else: | 43 else: |
| 43 self.long_label = self.name_bam | 44 self.long_label = self.name_bam |
| 44 # First: Add the bam file | 45 # First: Add the bam file |
| 56 self.createTrack(file_path=self.name_bam, | 57 self.createTrack(file_path=self.name_bam, |
| 57 track_name=self.name_bam, | 58 track_name=self.name_bam, |
| 58 long_label=self.long_label, track_type='bam', visibility='pack', priority=self.priority, | 59 long_label=self.long_label, track_type='bam', visibility='pack', priority=self.priority, |
| 59 track_file=bam_index_file_path, | 60 track_file=bam_index_file_path, |
| 60 track_color=self.track_color, | 61 track_color=self.track_color, |
| 61 group_name=self.group_name | 62 group_name=self.group_name, |
| 63 database=self.database | |
| 62 ) | 64 ) |
| 63 # | 65 # |
| 64 # dataURL = "tracks/%s" % self.name_bam | 66 # dataURL = "tracks/%s" % self.name_bam |
| 65 # | 67 # |
| 66 # trackDb = TrackDb( | 68 # trackDb = TrackDb( |
