comparison TrackHub.py @ 55:972b83917c18 draft

planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit a505d6c97db9d044761b5ce92be4a39cb84eda29-dirty
author yating-l
date Fri, 31 Mar 2017 12:26:25 -0400
parents 9c45b81bc4e6
children 95b9d8acc235
comparison
equal deleted inserted replaced
54:9c45b81bc4e6 55:972b83917c18
70 subprocess.call(['generate-names.pl', '-v', '--out', self.json]) 70 subprocess.call(['generate-names.pl', '-v', '--out', self.json])
71 print "finished name index \n" 71 print "finished name index \n"
72 72
73 def makeArchive(self): 73 def makeArchive(self):
74 shutil.make_archive(self.out_path, 'zip', self.out_path) 74 shutil.make_archive(self.out_path, 'zip', self.out_path)
75 source = os.path.abspath(self.out_path) 75 file_dir = os.path.abspath(self.outfile)
76 source_dir = os.path.dirname(file_dir)
77 source_name = os.path.basename(self.out_path)
78 source = os.path.join(source_dir, source_name)
76 slink = source.replace('/', '_') 79 slink = source.replace('/', '_')
77 slink = os.path.join('/home/galaxy/galaxy/static/JBrowse-1.12.1/data', slink) 80 slink = os.path.join('/home/galaxy/galaxy/static/JBrowse-1.12.1/data', slink)
78 try: 81 try:
79 if os.path.islink(slink): 82 if os.path.islink(slink):
80 os.unlink(slink) 83 os.unlink(slink)