From a9a30ca300cc706b60b98f5db56775544ac111e4 Mon Sep 17 00:00:00 2001 From: Samuel Lampa Date: Tue, 13 Aug 2024 17:49:32 +0200 Subject: [PATCH] Fix missing VIM gene by not deleting genes with the same coverage --- microSALT/utils/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microSALT/utils/scraper.py b/microSALT/utils/scraper.py index daee21d..00782a8 100644 --- a/microSALT/utils/scraper.py +++ b/microSALT/utils/scraper.py @@ -391,7 +391,7 @@ def scrape_blast(self, type="", file_list=[]): # Identical identity and span, seperating based on contig coverage else: # Rightmost is worse - if float(hypo[ind].get("contig_coverage")) >= float( + if float(hypo[ind].get("contig_coverage")) > float( hypo[targ].get("contig_coverage") ): del hypo[targ]