diff Bam.py @ 17:c02720d1afee draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 1adbf397de1fc7af4d91e026093d7fff983e21cf
author rmarenco
date Fri, 30 Sep 2016 15:14:24 -0400
parents 3233451a3bd6
children 884ee2a71680
line wrap: on
line diff
--- a/Bam.py	Sun Sep 25 11:25:38 2016 -0400
+++ b/Bam.py	Fri Sep 30 15:14:24 2016 -0400
@@ -32,12 +32,11 @@
 
         self.priority = self.data_bam["order_index"]
         self.index_bam = self.data_bam["index"]
-        # TODO: Think about how to avoir repetition of the color treatment
+        # TODO: Think about how to avoid repetition of the color treatment
         self.track_color = self.data_bam["track_color"]
 
-        logging.debug("Color of bam: {0}".format(self.track_color))
-
-        #print "Creating TrackHub BAM from (falsePath: %s; name: %s)" % ( self.input_bam_false_path, self.name_bam)
+        # TODO: Think about how to avoid repetition of the group_name everywhere
+        self.group_name = self.data_bam["group_name"]
 
         # First: Add the bam file
         # Second: Add the bam index file, in the same folder (https://genome.ucsc.edu/goldenpath/help/bam.html)
@@ -55,7 +54,9 @@
                          track_name=self.name_bam,
                          long_label=self.name_bam, track_type='bam', visibility='pack', priority=self.priority,
                          track_file=bam_index_file_path,
-                         track_color=self.track_color)
+                         track_color=self.track_color,
+                         group_name=self.group_name
+                         )
         #
         # dataURL = "tracks/%s" % self.name_bam
         #