From 2206c61538405a0b1905ff379ea51cb5aac8a193 Mon Sep 17 00:00:00 2001 From: Valentyn Bezshapkin <61702053+valentynbez@users.noreply.github.com> Date: Tue, 6 Feb 2024 10:34:40 +0100 Subject: [PATCH] fix: wrong attribute for `hmmer.plan7.Hit` --- bin/hmm.py | 2 +- bin/proteins.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hmm.py b/bin/hmm.py index d4d9db4..1be64ea 100644 --- a/bin/hmm.py +++ b/bin/hmm.py @@ -55,7 +55,7 @@ def run_pyhmmer(db_dir, out_dir, threads, gene_predictor, evalue): best_results[result.protein] = result keep_protein.add(result.protein) elif result.bitscore == previous_bitscore: - if best_results[result.protein].phrog != hit.phrog: + if best_results[result.protein].phrog != hit.name.decode(): keep_protein.remove(result.protein) else: best_results[result.protein] = result diff --git a/bin/proteins.py b/bin/proteins.py index aa4d85f..ab3ce81 100644 --- a/bin/proteins.py +++ b/bin/proteins.py @@ -244,7 +244,7 @@ def run_pyhmmer_proteins(input_fasta, db_dir, threads, evalue): best_results[result.protein] = result keep_protein.add(result.protein) elif result.bitscore == previous_bitscore: - if best_results[result.protein].phrog != hit.phrog: + if best_results[result.protein].phrog != hit.name.decode(): keep_protein.remove(result.protein) else: best_results[result.protein] = result