Mercurial > repos > mkh > play
diff interproscan5/create_index.py @ 0:f41c8f299270 draft default tip
Untested version
| author | mkh |
|---|---|
| date | Sat, 16 Jan 2016 12:30:10 -0500 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/interproscan5/create_index.py Sat Jan 16 12:30:10 2016 -0500 @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +import os +import sys + +o = open(sys.argv[1], 'w+') + +o.write('<html> <body> <h1> InterProScan result summary page </h1> <ul>') + +for filename in [f for f in os.listdir(sys.argv[2]) if os.path.isfile(os.path.join(sys.argv[2], f))]: + o.write('<li><a href="%s"> %s </a></li>' % (filename, os.path.splitext(filename)[0])) + +o.write('</ul></body></html>') +o.close()
