commit/galaxy-central: dan: Have GATK file listings written as html, be sorted.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/2a9b21e76d77/ changeset: r5547:2a9b21e76d77 user: dan date: 2011-05-12 18:13:18 summary: Have GATK file listings written as html, be sorted. affected #: 2 files (49 bytes) --- a/test-data/gatk/gatk_analyze_covariates/gatk_analyze_covariates_out_1.html Thu May 12 11:55:32 2011 -0400 +++ b/test-data/gatk/gatk_analyze_covariates/gatk_analyze_covariates_out_1.html Thu May 12 12:13:18 2011 -0400 @@ -1,1 +1,17 @@ -<html><head><title>Galaxy - GATK Output</title></head><body><p/><ul><li><a href="A Fake phiX Sample.CycleCovariate.dat">A Fake phiX Sample.CycleCovariate.dat</a></li><li><a href="A Fake phiX Sample.DinucCovariate.dat">A Fake phiX Sample.DinucCovariate.dat</a></li><li><a href="A Fake phiX Sample.HomopolymerCovariate.dat">A Fake phiX Sample.HomopolymerCovariate.dat</a></li><li><a href="A Fake phiX Sample.MinimumNQSCovariate.dat">A Fake phiX Sample.MinimumNQSCovariate.dat</a></li><li><a href="A Fake phiX Sample.PositionCovariate.dat">A Fake phiX Sample.PositionCovariate.dat</a></li><li><a href="A Fake phiX Sample.QualityScoreCovariate.dat">A Fake phiX Sample.QualityScoreCovariate.dat</a></li><li><a href="A.qual_diff_v_Fake.pdf">A.qual_diff_v_Fake.pdf</a></li></ul></body></html> \ No newline at end of file +<html> +<head> +<title>Galaxy - GATK Output</title> +</head> +<body> +<p/> +<ul> +<li><a href="A Fake phiX Sample.CycleCovariate.dat">A Fake phiX Sample.CycleCovariate.dat</a></li> +<li><a href="A Fake phiX Sample.DinucCovariate.dat">A Fake phiX Sample.DinucCovariate.dat</a></li> +<li><a href="A Fake phiX Sample.HomopolymerCovariate.dat">A Fake phiX Sample.HomopolymerCovariate.dat</a></li> +<li><a href="A Fake phiX Sample.MinimumNQSCovariate.dat">A Fake phiX Sample.MinimumNQSCovariate.dat</a></li> +<li><a href="A Fake phiX Sample.PositionCovariate.dat">A Fake phiX Sample.PositionCovariate.dat</a></li> +<li><a href="A Fake phiX Sample.QualityScoreCovariate.dat">A Fake phiX Sample.QualityScoreCovariate.dat</a></li> +<li><a href="A.qual_diff_v_Fake.pdf">A.qual_diff_v_Fake.pdf</a></li> +</ul> +</body> +</html> --- a/tools/gatk/gatk_wrapper.py Thu May 12 11:55:32 2011 -0400 +++ b/tools/gatk/gatk_wrapper.py Thu May 12 12:13:18 2011 -0400 @@ -37,10 +37,10 @@ return None def html_report_from_directory( html_out, dir ): - html_out.write( '<html><head><title>Galaxy - GATK Output</title></head><body><p/><ul>' ) - for fname in os.listdir( dir ): - html_out.write( '<li><a href="%s">%s</a></li>' % ( fname, fname ) ) - html_out.write( '</ul></body></html>' ) + html_out.write( '<html>\n<head>\n<title>Galaxy - GATK 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( '</ul>\n</body>\n</html>\n' ) def __main__(): #Parse Command Line Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket