Mercurial > repos > greg > gene_family_classifier
comparison gene_family_classifier.py @ 104:c21d3f7b11a4 draft
Uploaded
author | greg |
---|---|
date | Mon, 27 Feb 2017 11:18:49 -0500 |
parents | 55052911cac3 |
children | 8abf3c06e7e1 |
comparison
equal
deleted
inserted
replaced
103:55052911cac3 | 104:c21d3f7b11a4 |
---|---|
83 sys.exit(1) | 83 sys.exit(1) |
84 | 84 |
85 | 85 |
86 def write_html_output(output, title, dir): | 86 def write_html_output(output, title, dir): |
87 fh = open(output, 'wb') | 87 fh = open(output, 'wb') |
88 fh.write('<html>\n<head><title>%s</title>\n</head>\n<body>\n<p/>\n<ul>\n' % title) | 88 fh.write('<html>\n<head><title>%s</title>\n</head>\n<body>\n<p/>\n<ul>\n' % str(title)) |
89 for fname in dir: | 89 for fname in dir: |
90 fh.write('<li><a href="%s">%s</a></li>\n' % (fname, fname)) | 90 fh.write('<li><a href="%s">%s</a></li>\n' % (fname, fname)) |
91 fh.write('</ul>\n</body>\n</html>\n') | 91 fh.write('</ul>\n</body>\n</html>\n') |
92 fh.close() | 92 fh.close() |
93 | 93 |