Mercurial > repos > bgruening > interproscan5
annotate create_index.py @ 1:e32f2ea6a139 draft default tip
Uploaded
author | bgruening |
---|---|
date | Tue, 08 Oct 2013 10:23:22 -0400 |
parents | 82547f0d3a29 |
children |
rev | line source |
---|---|
0 | 1 #!/usr/bin/env python |
2 | |
3 import os | |
4 import sys | |
5 | |
6 o = open( sys.argv[1], 'w+' ) | |
7 | |
8 | |
9 o.write('<html> <body> <h1> InterProScan result summary page </h1> <ul>' ) | |
10 | |
11 for filename in [f for f in os.listdir( sys.argv[2] ) if os.path.isfile( os.path.join( sys.argv[2], f) )]: | |
12 o.write( '<li><a href="%s"> %s </a></li>' % ( filename, os.path.splitext( filename )[0] ) ) | |
13 | |
14 o.write( '</ul></body></html>' ) | |
15 o.close() |