Mercurial > repos > greg > gene_family_classifier
comparison gene_family_classifier.py @ 105:8abf3c06e7e1 draft
Uploaded
author | greg |
---|---|
date | Mon, 27 Feb 2017 12:52:58 -0500 |
parents | c21d3f7b11a4 |
children | a2a3593a42d4 |
comparison
equal
deleted
inserted
replaced
104:c21d3f7b11a4 | 105:8abf3c06e7e1 |
---|---|
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' % str(title)) | 88 fh.write('<html><head><title>%s</title></head><body><p/><ul>' % str(title)) |
89 for fname in 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 href="%s">%s</a></li>' % (fname, fname)) |
91 fh.write('</ul>\n</body>\n</html>\n') | 91 fh.write('</ul></body></html>') |
92 fh.close() | 92 fh.close() |
93 | 93 |
94 | 94 |
95 # Define command response buffers. | 95 # Define command response buffers. |
96 tmp_out = tempfile.NamedTemporaryFile().name | 96 tmp_out = tempfile.NamedTemporaryFile().name |