# HG changeset patch
# User yating-l
# Date 1496259947 14400
# Node ID eda851e52060c6e384d861d87ca631f3fb1b3ef7
# Parent 25ad6770359e3707679f7f8db2e0d10560feb0fd
planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit 479fc6490e24ca0e5034ae6c3579882e97e095e6-dirty
diff -r 25ad6770359e -r eda851e52060 TrackHub.py
--- a/TrackHub.py Mon May 22 15:48:56 2017 -0400
+++ b/TrackHub.py Wed May 31 15:45:47 2017 -0400
@@ -3,6 +3,7 @@
import os
import subprocess
import shutil
+import zipfile
import json
import utils
@@ -72,7 +73,6 @@
print "finished name index \n"
def makeArchive(self):
- shutil.make_archive(self.out_path, 'zip', self.out_path)
file_dir = os.path.abspath(self.outfile)
source_dir = os.path.dirname(file_dir)
folder_name = os.path.basename(self.outfolder)
@@ -88,23 +88,11 @@
os.symlink(source, slink)
return slink
- #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, slink):
with open(self.outfile, 'w') as htmlfile:
htmlstr = 'The JBrowse Hub is created:
'
- zipfiles = '