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