Mercurial > repos > greg > gene_family_classifier
comparison gene_family_classifier.py @ 107:bdb3929a4d09 draft
Uploaded
| author | greg |
|---|---|
| date | Mon, 27 Feb 2017 13:04:13 -0500 |
| parents | a2a3593a42d4 |
| children | 82144bc3626a |
comparison
equal
deleted
inserted
replaced
| 106:a2a3593a42d4 | 107:bdb3929a4d09 |
|---|---|
| 82 sys.stderr.write(msg) | 82 sys.stderr.write(msg) |
| 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 with open(output, 'wb') 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 href="%s">%s</a></li>\n' % (fname, fname)) |
| 91 fh.write('</ul></body></html>\n') | 91 fh.write('</ul></body></html>\n') |
| 92 | 92 |
