Mercurial > repos > bgruening > interproscan5
diff create_index.py @ 0:82547f0d3a29 draft
Initial interproscan5 wrapper.
author | bgruening |
---|---|
date | Tue, 08 Oct 2013 09:18:17 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/create_index.py Tue Oct 08 09:18:17 2013 -0400 @@ -0,0 +1,15 @@ +#!/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()