Mercurial > repos > yating-l > jbrowse_hub
diff TrackHub.py @ 15:8627394693c6 draft
planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit f18ea51d27ec7addfa6413716391cfefebc8acbc-dirty
author | yating-l |
---|---|
date | Tue, 14 Mar 2017 14:57:39 -0400 |
parents | e1f188b43750 |
children | 49841ae99869 |
line wrap: on
line diff
--- a/TrackHub.py Tue Mar 14 14:43:09 2017 -0400 +++ b/TrackHub.py Tue Mar 14 14:57:39 2017 -0400 @@ -97,6 +97,8 @@ shutil.make_archive(self.out_path, 'zip', self.out_path) shutil.rmtree(self.out_path) + #TODO: this will list all zip files in the filedir and sub-dirs. worked in Galaxy but all list zip files in test-data when + #run it locally. May need modify def outHtml(self): #htmloutput = tempfile.NamedTemporaryFile(self.outfile, suffix = '.html', bufsize=0, delete=False) with open(self.outfile, 'w') as htmlfile: @@ -111,6 +113,7 @@ relative_directory = os.path.relpath(root, filedir) relative_file_path = os.path.join(relative_directory, file) htmlstr += zipfiles % relative_file_path + #htmlstr = htmlstr % zipfile htmlfile.write(htmlstr)