Mercurial > repos > si-datascience > genome_tools
diff interproscan5-e32f2ea6a139/create_index.py @ 2:5a720d9e7071 draft default tip
Uploaded
author | si-datascience |
---|---|
date | Thu, 24 May 2018 14:39:59 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/interproscan5-e32f2ea6a139/create_index.py Thu May 24 14:39:59 2018 -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()