comparison Bam.py @ 26:df42241d3731 draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit c11beb58525fe6453a2180fe7783f6e8b0151901-dirty
author yating-l
date Mon, 03 Jul 2017 17:30:20 -0400
parents 2677f1899aa8
children
comparison
equal deleted inserted replaced
25:99dad5f9444c 26:df42241d3731
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(