# HG changeset patch # User peterjc # Date 1597320455 0 # Node ID 6db2d2a796ef39994b026c9b4f71c1ea4de66ccc # Parent 7e92afcc9a7616bdf5c68fd0031aa07bf97a0734 "planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_length commit ee36da91aca79a79869e93cc3baa20cb7924669b-dirty" diff -r 7e92afcc9a76 -r 6db2d2a796ef tools/seq_length/seq_length.py --- a/tools/seq_length/seq_length.py Fri Feb 22 10:24:41 2019 -0500 +++ b/tools/seq_length/seq_length.py Thu Aug 13 12:07:35 2020 +0000 @@ -186,7 +186,7 @@ """ # Continuing the above example, input L would be {2:3, 3:2, 4:1, 8:2} # and L' becomes {2:6, 3:6, 4:4, 8:16}} as tally tables. - l_prime = dict((v, v * c) for v, c in counts_dict.items()) + l_prime = {v: v * c for v, c in counts_dict.items()} return median_from_counts_dict(l_prime)