changeset 6:6db2d2a796ef draft default tip

"planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_length commit ee36da91aca79a79869e93cc3baa20cb7924669b-dirty"
author peterjc
date Thu, 13 Aug 2020 12:07:35 +0000
parents 7e92afcc9a76
children
files tools/seq_length/seq_length.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)