Mercurial > repos > rmarenco > hubarchivecreator
comparison BigWig.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 | fcc1021bd496 |
children |
comparison
equal
deleted
inserted
replaced
25:99dad5f9444c | 26:df42241d3731 |
---|---|
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): |