Skip to content

Commit

Permalink
v1.0.8
Browse files Browse the repository at this point in the history
fixed an edge case when blast output contains a lot of hits with no taxid
  • Loading branch information
GDKO committed Dec 18, 2024
1 parent ed4e038 commit 98c1029
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions aux_scripts/calculate_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def main():
if gene not in best_hit_ingroup.keys():
best_hit_ingroup[gene] = {}
best_hit_ingroup[gene]["hit"] = hit
best_hit_ingroup[gene]["pos"] = str(num_hits[gene])
best_hit_ingroup[gene]["pos"] = str(num_hits[gene] + skip)
best_hit_ingroup[gene]["iden"] = iden
best_hit_ingroup[gene]["evalue"] = str(evalue)
best_hit_ingroup[gene]["bitscore"] = bitscore
Expand All @@ -111,7 +111,7 @@ def main():
if gene not in best_hit_donor.keys():
best_hit_donor[gene] = {}
best_hit_donor[gene]["hit"] = hit
best_hit_donor[gene]["pos"] = str(num_hits[gene])
best_hit_donor[gene]["pos"] = str(num_hits[gene] + skip)
best_hit_donor[gene]["iden"] = iden
best_hit_donor[gene]["evalue"] = str(evalue)
best_hit_donor[gene]["bitscore"] = bitscore
Expand Down
2 changes: 1 addition & 1 deletion avp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
#v1.0.7
#v1.0.8

from depot.interface import main

Expand Down
2 changes: 1 addition & 1 deletion depot/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from docopt import docopt

def main():
args = docopt(__doc__,version='1.0.7', options_first=True)
args = docopt(__doc__,version='1.0.8', options_first=True)
if args['<module>'] == 'prepare':
import depot.prepare as prepare
prepare.main()
Expand Down
2 changes: 1 addition & 1 deletion depot/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def main():
if len(query_id) > 255:
sys.exit("[x] Query names are too long")
if query_id in queries_info.keys(): # Queries that pass the initial selection
if(len(query_dict_set[query_id]) <= queries_info[query_id]["pos"]):
if(len(query_dict_set[query_id]) < queries_info[query_id]["pos"]):
query_hit_id = L_hitqline[1]
if "@" in query_id:
sys.exit("@ symbol is not allowed: " + query_id)
Expand Down

0 comments on commit 98c1029

Please sign in to comment.