comparison bigPsl.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
19 self.name_bigpsl = data_bigpsl["name"] 19 self.name_bigpsl = data_bigpsl["name"]
20 self.priority = data_bigpsl["order_index"] 20 self.priority = data_bigpsl["order_index"]
21 self.track_color = data_bigpsl["track_color"] 21 self.track_color = data_bigpsl["track_color"]
22 # TODO: Think about how to avoid repetition of the group_name everywhere 22 # TODO: Think about how to avoid repetition of the group_name everywhere
23 self.group_name = data_bigpsl["group_name"] 23 self.group_name = data_bigpsl["group_name"]
24 self.database = data_bigpsl["database"]
24 if data_bigpsl["long_label"]: 25 if data_bigpsl["long_label"]:
25 self.long_label = data_bigpsl["long_label"] 26 self.long_label = data_bigpsl["long_label"]
26 else: 27 else:
27 self.long_label = self.name_bigpsl 28 self.long_label = self.name_bigpsl
28 #sortedBedFile = tempfile.NamedTemporaryFile(suffix=".sortedBed") 29 #sortedBedFile = tempfile.NamedTemporaryFile(suffix=".sortedBed")
42 subtools.bedToBigBed(self.input_bigpsl_false_path, 43 subtools.bedToBigBed(self.input_bigpsl_false_path,
43 self.chromSizesFile.name, 44 self.chromSizesFile.name,
44 bigBedFile.name, 45 bigBedFile.name,
45 typeOption='bed12+12', 46 typeOption='bed12+12',
46 tab='True', 47 tab='True',
47 autoSql=auto_sql_option) 48 autoSql=auto_sql_option,
49 extraIndex='name')
48 50
49 self.createTrack(file_path=trackName, 51 self.createTrack(file_path=trackName,
50 track_name=trackName, 52 track_name=trackName,
51 long_label=self.long_label, track_type='bigPsl', visibility='dense', 53 long_label=self.long_label, track_type='bigPsl', visibility='dense',
52 priority=self.priority, 54 priority=self.priority,
53 track_file=myBigBedFilePath, 55 track_file=myBigBedFilePath,
54 track_color=self.track_color, 56 track_color=self.track_color,
55 group_name=self.group_name) 57 group_name=self.group_name,
58 database=self.database)
56 59
57 60
58 # dataURL = "tracks/%s" % trackName 61 # dataURL = "tracks/%s" % trackName
59 # 62 #
60 # trackDb = TrackDb( 63 # trackDb = TrackDb(