comparison TrackHub.py @ 59:caf649fc310b draft

planemo upload for repository https://github.com/Yating-L/jbrowse_hub commit a505d6c97db9d044761b5ce92be4a39cb84eda29-dirty
author yating-l
date Fri, 31 Mar 2017 17:11:11 -0400
parents 08bd1378bf43
children ed17bb465bde
comparison
equal deleted inserted replaced
58:08bd1378bf43 59:caf649fc310b
105 #run it locally. May need modify 105 #run it locally. May need modify
106 def outHtml(self, slink): 106 def outHtml(self, slink):
107 with open(self.outfile, 'w') as htmlfile: 107 with open(self.outfile, 'w') as htmlfile:
108 htmlstr = 'The JBrowse Hub is created: <br>' 108 htmlstr = 'The JBrowse Hub is created: <br>'
109 zipfiles = '<li><a href = "%s">Download</a></li>' 109 zipfiles = '<li><a href = "%s">Download</a></li>'
110 jbrowse_hub = '<li><a href = "/JBrowse-1.12.1/index.html?data=%s" target="_blank" onclick="javascript:event.target.port=80">View JBrowse Hub</a></li>' 110 jbrowse_hub = '<li><a href = "http://192.168.56.11/JBrowse-1.12.1/index.html?data=%s" target="_blank">View JBrowse Hub</a></li>'
111 filedir_abs = os.path.abspath(self.outfile) 111 filedir_abs = os.path.abspath(self.outfile)
112 filedir = os.path.dirname(filedir_abs) 112 filedir = os.path.dirname(filedir_abs)
113 filedir = os.path.join(filedir, self.outfolder) 113 filedir = os.path.join(filedir, self.outfolder)
114 for root, dirs, files in os.walk(filedir): 114 for root, dirs, files in os.walk(filedir):
115 for file in files: 115 for file in files: