# HG changeset patch # User Jan Kanis # Date 1403188173 -7200 # Node ID c0804e6443c66eec452d30fb3419fa4ffa389d9e # Parent 05500bdd73761c472761427e05e5b6466f8fd4e7 comment diff -r 05500bdd7376 -r c0804e6443c6 blast2html.py --- a/blast2html.py Thu Jun 19 14:17:09 2014 +0200 +++ b/blast2html.py Thu Jun 19 16:29:33 2014 +0200 @@ -350,7 +350,7 @@ cover = "{0:.0%}".format(cover_count / query_length), e_value = "{0:.4g}".format(min(hsp_val('Hsp_evalue'))), # FIXME: is this the correct formula vv? - # float(...) because non-rounding division doesn't work with lxml elements in python 2.6 + # float(...) because non-flooring division doesn't work with lxml elements in python 2.6 ident = "{0:.0%}".format(float(min(float(hsp.Hsp_identity) / blastxml_len(hsp) for hsp in hsps))), accession = hit.Hit_accession)