diff TrackHub.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 3233451a3bd6
line wrap: on
line diff
--- a/TrackHub.py	Thu Jul 21 05:58:51 2016 -0400
+++ b/TrackHub.py	Wed Jul 27 10:10:49 2016 -0400
@@ -28,6 +28,7 @@
         self.reference_genome = inputFastaFile
         # TODO: Add the specie name
         self.genome_name = inputFastaFile.assembly_id
+        self.specie_html = self.genome_name + '.html'
         self.default_pos = None
         self.user_email = user_email
 
@@ -148,8 +149,7 @@
         self.__fillHubTxt__(hubTxtFilePath)
 
         # Add the hub.html file
-        # TODO: Change the name and get it depending on the specie
-        hubHtmlFilePath = os.path.join(myHubPath, 'dbia.html')
+        hubHtmlFilePath = os.path.join(myHubPath, self.specie_html)
         self.__fillHubHtmlFile__(hubHtmlFilePath)
 
 
@@ -208,7 +208,7 @@
                 longLabel=self.genome_name,
                 genomesFile='genomes.txt',
                 email=self.user_email,
-                descriptionUrl='dbia.html'
+                descriptionUrl=self.specie_html
             )
             genomesTxtFile.write(htmlMakoRendered)