Skip to content

Commit

Permalink
fix number of hmmhits core compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
trvinh committed Feb 17, 2023
1 parent f7c4cf8 commit 03c9038
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions fdog/libs/corecompile.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ def compile_core(args):
if not leaf == refspec_id and \
not leaf in added_taxa and \
not leaf in ignored_taxa:
output_fn.print_debug(debugCore, '','')
output_fn.print_debug(
debugCore, '',
'Leaf %s - %s' % (leaf, tax_ids[leaf]))
Expand Down
3 changes: 2 additions & 1 deletion fdog/libs/hmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ def sort_hmm_hits(hmm_hits, hitLimit = 10, scoreCutoff = 10, debug = False):
score_dict[best_domain_score].append(best_domain_hit)
output_fn.print_debug(debug, 'All HMM hits', ori_hits)
hmm_cand = {}
n = 1
n = 0
score_dict = {
key:val for key, val in score_dict.items() \
if key >= cutoff
}
output_fn.print_debug(debug, 'Candidate HMM hits', score_dict)
for score in sorted(score_dict, reverse = True):
if n < hitLimit:
for id in score_dict[score]:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

setup(
name="fdog",
version="0.1.8",
version="0.1.9",
python_requires='>=3.7.0',
description="Feature-aware Directed OrtholoG search tool",
long_description=long_description,
Expand Down

0 comments on commit 03c9038

Please sign in to comment.