diff Bed.py @ 11:d05236b15f81 draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 3760d0c8353b924ecf994131a5c2eb381aa81fb2
author rmarenco
date Wed, 27 Jul 2016 10:10:49 -0400
parents acc233161f50
children 25809f699cb3
line wrap: on
line diff
--- a/Bed.py	Thu Jul 21 05:58:51 2016 -0400
+++ b/Bed.py	Wed Jul 27 10:10:49 2016 -0400
@@ -36,23 +36,30 @@
             subtools.bedToBigBed(self.sortedBedFile.name, self.chromSizesFile.name, self.bigBedFile.name)
 
         # Create the Track Object
-        dataURL = "tracks/%s" % trackName
+        self.createTrack(file_path=trackName,
+                         track_name=trackName,
+                         long_label=self.name_bed_generic, track_type='bigBed', visibility='dense',
+                         priority=self.priority,
+                         track_file=myBigBedFilePath)
 
-        trackDb = TrackDb(
-            trackName=trackName,
-            longLabel=self.name_bed_generic,
-            shortLabel=self.getShortName(self.name_bed_generic),
-            trackDataURL=dataURL,
-            trackType='bigBed',
-            visibility='dense',
-            thickDrawItem='on',
-            priority=self.priority,
-        )
+        # dataURL = "tracks/%s" % trackName
+        #
+        # trackDb = TrackDb(
+        #     trackName=trackName,
+        #     longLabel=self.name_bed_generic,
+        #     shortLabel=self.getShortName(self.name_bed_generic),
+        #     trackDataURL=dataURL,
+        #     trackType='bigBed',
+        #     visibility='dense',
+        #     thickDrawItem='on',
+        #     priority=self.priority,
+        # )
+        #
+        # # Return the BigBed track
+        # self.track = Track(
+        #     trackFile=myBigBedFilePath,
+        #     trackDb=trackDb,
+        # )
 
-        # Return the BigBed track
-        self.track = Track(
-            trackFile=myBigBedFilePath,
-            trackDb=trackDb,
-        )
-
-        print("- %s created in %s" % (trackName, myBigBedFilePath))
+        print("- Bed %s created" % self.name_bed_generic)
+        #print("- %s created in %s" % (trackName, myBigBedFilePath))