comparison BigWig.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
21 self.name_bigwig = data_bigwig["name"] 21 self.name_bigwig = data_bigwig["name"]
22 self.priority = data_bigwig["order_index"] 22 self.priority = data_bigwig["order_index"]
23 self.track_color = data_bigwig["track_color"] 23 self.track_color = data_bigwig["track_color"]
24 # TODO: Think about how to avoid repetition of the group_name everywhere 24 # TODO: Think about how to avoid repetition of the group_name everywhere
25 self.group_name = data_bigwig["group_name"] 25 self.group_name = data_bigwig["group_name"]
26 self.database = data_bigwig["database"]
26 if data_bigwig["long_label"]: 27 if data_bigwig["long_label"]:
27 self.long_label = data_bigwig["long_label"] 28 self.long_label = data_bigwig["long_label"]
28 else: 29 else:
29 self.long_label = self.name_bigwig 30 self.long_label = self.name_bigwig
30 #print "Creating TrackHub BigWig from (falsePath: %s; name: %s)" % ( self.input_bigwig_path, self.name_bigwig ) 31 #print "Creating TrackHub BigWig from (falsePath: %s; name: %s)" % ( self.input_bigwig_path, self.name_bigwig )
41 track_type=self.determine_track_type(myBigWigFilePath), 42 track_type=self.determine_track_type(myBigWigFilePath),
42 visibility='full', 43 visibility='full',
43 priority=self.priority, 44 priority=self.priority,
44 track_file=myBigWigFilePath, 45 track_file=myBigWigFilePath,
45 track_color=self.track_color, 46 track_color=self.track_color,
46 group_name=self.group_name) 47 group_name=self.group_name,
48 database = self.database)
47 49
48 print("- BigWig %s created" % self.name_bigwig) 50 print("- BigWig %s created" % self.name_bigwig)
49 #print("- %s created in %s" % (trackName, myBigWigFilePath)) 51 #print("- %s created in %s" % (trackName, myBigWigFilePath))
50 52
51 def determine_track_type(self, bw_file): 53 def determine_track_type(self, bw_file):