Mercurial > repos > jjohnson > cummerbund
diff cummerbund_wrapper.py @ 2:fdf01b3c1841
Update to new cuffdiff wrapper, add cuffdb_info.txt to cummerbund html output
author | Jim Johnson <jj@umn.edu> |
---|---|
date | Fri, 08 Nov 2013 14:54:01 -0600 |
parents | da7241f92ecf |
children |
line wrap: on
line diff
--- a/cummerbund_wrapper.py Mon Feb 04 21:23:20 2013 -0600 +++ b/cummerbund_wrapper.py Fri Nov 08 14:54:01 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__():