comparison bigPsl.py @ 23:2677f1899aa8 draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 07210e24fe7d22f5dfc84061310280f67f781fb1-dirty
author yating-l
date Tue, 09 May 2017 15:42:43 -0400
parents 884ee2a71680
children df42241d3731
comparison
equal deleted inserted replaced
22:7ddf651457df 23:2677f1899aa8
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 24 if data_bigpsl["long_label"]:
25 self.long_label = data_bigpsl["long_label"]
26 else:
27 self.long_label = self.name_bigpsl
25 #sortedBedFile = tempfile.NamedTemporaryFile(suffix=".sortedBed") 28 #sortedBedFile = tempfile.NamedTemporaryFile(suffix=".sortedBed")
26 29
27 # Sort processing 30 # Sort processing
28 #subtools.sort(self.input_bigpsl_false_path, sortedBedFile.name) 31 #subtools.sort(self.input_bigpsl_false_path, sortedBedFile.name)
29 32
43 tab='True', 46 tab='True',
44 autoSql=auto_sql_option) 47 autoSql=auto_sql_option)
45 48
46 self.createTrack(file_path=trackName, 49 self.createTrack(file_path=trackName,
47 track_name=trackName, 50 track_name=trackName,
48 long_label=self.name_bigpsl, track_type='bigPsl', visibility='dense', 51 long_label=self.long_label, track_type='bigPsl', visibility='dense',
49 priority=self.priority, 52 priority=self.priority,
50 track_file=myBigBedFilePath, 53 track_file=myBigBedFilePath,
51 track_color=self.track_color, 54 track_color=self.track_color,
52 group_name=self.group_name) 55 group_name=self.group_name)
53 56