diff protein_blast_grouping.py @ 4:258afe02e34a draft

planemo upload commit 1098c37fcd6cf35d77748a08aa8b3ee9093c5aea
author cpt
date Thu, 08 Aug 2024 03:52:37 +0000
parents c5e0e05ce58a
children 11701cc63084
line wrap: on
line diff
--- a/protein_blast_grouping.py	Thu Aug 08 03:33:45 2024 +0000
+++ b/protein_blast_grouping.py	Thu Aug 08 03:52:37 2024 +0000
@@ -44,19 +44,12 @@
         top_hits = self.get_top_hits(num_hits, sort_key)
         print(f"# Top {num_hits} Hits", file=output_file)
         print(
-            "{:>4} {:<20} {:>10} {:>10}".format(
-                "Rank", "Phage Name", "Unique Query Matches", "Unique Subject Hits"
-            ),
+            "Rank\tPhage Name\tUnique Query Matches\tUnique Subject Hits",
             file=output_file,
         )
         for rank, (organism, data) in enumerate(top_hits):
             print(
-                "{:>4} {:<50} {:<25} {:<25}".format(
-                    rank,
-                    organism,
-                    len(data["unique_queries"]),
-                    len(data["unique_hits"]),
-                ),
+                f"{rank}\t{organism}\t{len(data['unique_queries'])}\t{len(data['unique_hits'])}",
                 file=output_file,
             )