# HG changeset patch # User yating-l # Date 1490976299 14400 # Node ID 9c45b81bc4e6bf9fc3f73cc9a99b2abe695aad3c # Parent 1e4806330e51798fbf4b0418ef15a46d632c812d planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit a505d6c97db9d044761b5ce92be4a39cb84eda29-dirty diff -r 1e4806330e51 -r 9c45b81bc4e6 TrackHub.py --- a/TrackHub.py Fri Mar 31 11:54:09 2017 -0400 +++ b/TrackHub.py Fri Mar 31 12:04:59 2017 -0400 @@ -103,7 +103,7 @@ with open(self.outfile, 'w') as htmlfile: htmlstr = 'The JBrowse Hub is created:
' zipfiles = '
  • Download
  • ' - jbrowse_hub = '
  • View JBrowse Hub
  • ' + jbrowse_hub = '
  • View JBrowse Hub
  • ' filedir_abs = os.path.abspath(self.outfile) filedir = os.path.dirname(filedir_abs) filedir = os.path.join(filedir, self.outfolder) @@ -113,7 +113,9 @@ relative_directory = os.path.relpath(root, filedir) relative_file_path = os.path.join(relative_directory, file) htmlstr += zipfiles % relative_file_path - htmlstr += jbrowse_hub % slink + link_name = os.path.basename(slink) + relative_path = os.path.join('data', link_name + '/json') + htmlstr += jbrowse_hub % relative_path htmlfile.write(htmlstr) def createTrackList(self):