diff TrackHub.py @ 18:d786bca6a75d draft

planemo upload for repository https://github.com/goeckslab/hub-archive-creator commit 3007f4ce1d6e8ac8324970d355f028b9394e2a5f
author rmarenco
date Fri, 30 Sep 2016 18:33:03 -0400
parents c02720d1afee
children 7e8a8b732db3
line wrap: on
line diff
--- a/TrackHub.py	Fri Sep 30 15:14:24 2016 -0400
+++ b/TrackHub.py	Fri Sep 30 18:33:03 2016 -0400
@@ -96,6 +96,9 @@
             )
             trackDbFile.write(htmlMakoRendered)
 
+        logging.debug("We just added track {0} (in group {1})".format(trackDbObject.trackName,
+                                                                  trackDbObject.group_name.lower().replace(' ', '_')))
+
     def addGroup(self, group_name="Default"):
         # If not already present in self.groups, add to groups.txt
         # Create the trackDb.txt file in the specie folder, if not exists
@@ -105,6 +108,8 @@
 
         # If the group is already present, we don't need to add it
         if group_name in self.groups:
+            logging.debug("We DON'T add in {0} the group {1}".format(groupsTxtFilePath,
+                                                                      group_name))
             return
 
         # Append to trackDbTxtFilePath the trackDbTemplate populate with the newTrack object
@@ -115,6 +120,8 @@
                     label=group_name
             )
             groupFile.write(htmlMakoRendered)
+        logging.debug("We just added in {0} the group {1}".format(groupsTxtFilePath,
+                                                                  group_name))
         self.groups.add(group_name)
 
     def terminate(self):