# HG changeset patch
# User yating-l
# Date 1496259771 14400
# Node ID 45b5cb50c29ecfe19b26cee3f09c99be5acf375f
# Parent 91b3558fa73f31e339b74e28f360570eec8153b1
planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit 479fc6490e24ca0e5034ae6c3579882e97e095e6-dirty
diff -r 91b3558fa73f -r 45b5cb50c29e TrackHub.py
--- a/TrackHub.py Wed May 31 13:38:46 2017 -0400
+++ b/TrackHub.py Wed May 31 15:42:51 2017 -0400
@@ -73,14 +73,6 @@
print "finished name index \n"
def makeArchive(self):
- #shutil.make_archive(self.out_path, 'zip', self.out_path)
- os.chdir(os.path.dirname(self.out_path))
- with zipfile.ZipFile(self.out_path + '.zip', 'w', zipfile.ZIP_DEFLATED, allowZip64=True) as zf:
- for root, _, filenames in os.walk(os.path.basename(self.out_path)):
- for name in filenames:
- name = os.path.join(root, name)
- name = os.path.normpath(name)
- zf.write(name, name)
file_dir = os.path.abspath(self.outfile)
source_dir = os.path.dirname(file_dir)
folder_name = os.path.basename(self.outfolder)
@@ -96,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 = '