Mercurial > repos > bgruening > interproscan5
view create_index.py @ 1:2d56d3ae499c draft
Uploaded
author | bgruening |
---|---|
date | Tue, 08 Oct 2013 09:14:43 -0400 |
parents | 98c6e970cbc1 |
children |
line wrap: on
line source
#!/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()