Assign-Taxonomy-with-BLAST icon indicating copy to clipboard operation
Assign-Taxonomy-with-BLAST copied to clipboard

error with length percentage cutoff using 0.7 and higher

Open bioinfo17 opened this issue 4 years ago • 1 comments

Hello,

The taxonomy_assignment_BLAST_V2.py script works great for taxonomic assignment using default parameters. However when I use it with the filtering option "length_percentage" with values equal to or > than 0.7 I get this error:

Traceback (most recent call last): File "taxonomy_assignment_BLAST_V2.py", line 363, in best_level_taxonomy, blast_percent = Assign_Taxonomy(current_query, current_best_hits) File "taxonomy_assignment_BLAST_V2.py", line 248, in Assign_Taxonomy if max(top_hits) >= args.cutoff_family: ValueError: max() arg is an empty sequence

For some reason, it works well with values < 0.7.

Once again, thanks heaps for your time in advance.

bioinfo17 avatar Oct 29 '19 03:10 bioinfo17