Skip to content

Commit

Permalink
fix the bug in hmmscan_parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
linnabrown committed Aug 30, 2022
1 parent 3daa09a commit 2a6051a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbcan_cli/hmmscan_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def run(input_file, eval_num=1e-15, coverage=0.35, verbose=False):
for line in f:
row = line.rstrip().split('\t')
row.append(float(int(row[6])-int(row[5]))/int(row[1]))
if float(row[4]) <= eval_num and float(row[-1]) >= coverage:
if float(row[4]) <= float(eval_num) and float(row[-1]) >= float(coverage):
if verbose:
print('\t'.join([str(x) for x in row]))
output += '\t'.join([str(x) for x in row]) + '\n'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(name='dbcan',
# The version number here is the single source in the package
version="3.0.6",
version="3.0.7",
description='Standalone version of dbCAN annotation tool for automated CAZyme annotation',
long_description=long_description,
author='Tanner Yohe, Le Huang, Qiwei Ge, and Haidong Yi',
Expand Down

0 comments on commit 2a6051a

Please sign in to comment.