comparison gene_family_classifier.py @ 108:82144bc3626a draft

Uploaded
author greg
date Mon, 27 Feb 2017 13:14:40 -0500
parents bdb3929a4d09
children 06f121a1974e
comparison
equal deleted inserted replaced
107:bdb3929a4d09 108:82144bc3626a
85 85
86 def write_html_output(output, title, dir): 86 def write_html_output(output, title, dir):
87 with open(output, 'w') as fh: 87 with open(output, 'w') as fh:
88 fh.write('<html><head><title>%s</title></head><body><p/><ul>\n' % title) 88 fh.write('<html><head><title>%s</title></head><body><p/><ul>\n' % title)
89 for fname in os.listdir(dir): 89 for fname in os.listdir(dir):
90 fh.write('<li><a href="%s">%s</a></li>\n' % (fname, fname)) 90 fh.write('<li><a type="text/plain" href="%s">%s</a></li>\n' % (fname, fname))
91 fh.write('</ul></body></html>\n') 91 fh.write('</ul></body></html>\n')
92 92
93 93
94 # Define command response buffers. 94 # Define command response buffers.
95 tmp_out = tempfile.NamedTemporaryFile().name 95 tmp_out = tempfile.NamedTemporaryFile().name