diff amino2consensus.py @ 20:b1e1f49ebe14 draft

planemo upload for repository https://github.com/dfornika/galaxytools/tree/master/tools/micall-lite commit 822e7e1c2de31a72c2a13bcc15b9df06b699561f-dirty
author dfornika
date Wed, 25 Sep 2019 18:36:16 -0400
parents 8e6d3de9c7fa
children d099ef46fd42
line wrap: on
line diff
--- a/amino2consensus.py	Wed Sep 25 18:31:49 2019 -0400
+++ b/amino2consensus.py	Wed Sep 25 18:36:16 2019 -0400
@@ -13,7 +13,7 @@
     amino_with_max_counts = sorted(amino_counts, key=amino_counts.get, reverse=True)[0]
     if total_count == 0:
         amino = "#"
-    elif (amino_counts[amino_with_max_counts] / total_count) > threshold:
+    elif (amino_counts[amino_with_max_counts] / float(total_count)) > threshold:
         amino = amino_with_max_counts
     else:
         amino = "@"