Mercurial > repos > jjohnson > cummerbund
diff cummerbund_wrapper.py @ 15:2d7eee38ab5b
Update to new cuffdiff wrapper, add cuffdb_info.txt to cummerbund html output
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Fri, 08 Nov 2013 13:28:44 -0600 |
parents | b0d11fcbc3ac |
children |
line wrap: on
line diff
--- a/cummerbund_wrapper.py Wed Jul 17 08:25:52 2013 -0500 +++ b/cummerbund_wrapper.py Fri Nov 08 13:28:44 2013 -0600 @@ -13,8 +13,10 @@ def html_report_from_directory( html_out, dir ): html_out.write( '<html>\n<head>\n<title>Galaxy - cummeRbund Output</title>\n</head>\n<body>\n<p/>\n<ul>\n' ) for fname in sorted( os.listdir( dir ) ): - # html_out.write( '<li><a href="%s">%s</a></li>\n' % ( fname, fname ) ) - html_out.write( '<li><a href="%s"><img src="%s" alt="" height="80" width="80">%s</a></li>\n' % ( fname, fname , fname ) ) + if fname.endswith(".txt"): + html_out.write( '<li><a href="%s">%s</a></li>\n' % ( fname, fname ) ) + else: + html_out.write( '<li><a href="%s"><img src="%s" alt="" height="80" width="80">%s</a></li>\n' % ( fname, fname , fname ) ) html_out.write( '</ul>\n</body>\n</html>\n' ) def __main__():