Skip to content

Commit

Permalink
Merge pull request #329 from valentynbez/patch-1
Browse files Browse the repository at this point in the history
fix: wrong attribute for `hmmer.plan7.Hit`
  • Loading branch information
gbouras13 committed Feb 6, 2024
2 parents b1173c8 + 2206c61 commit fbf1b3f
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 fbf1b3f

Please sign in to comment.