Skip to content

Commit

Permalink
fix: wrong attribute for hmmer.plan7.Hit
Browse files Browse the repository at this point in the history
  • Loading branch information
valentynbez authored Feb 6, 2024
1 parent b1173c8 commit 2206c61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/hmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bin/proteins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2206c61

Please sign in to comment.