Custom BLAST database fails to assign taxonomy

Hi @laura.d,
Thanks for posting examples of your reference data! Allows me to very quickly diagnose the issue: consensus taxonomic assignment is failing because your reference taxonomy consists of only one level, and so when a query sequence hits two distinct reference taxa the result is "unassigned" — this classifier is not simply using BLAST, it follows the BLAST alignment with a consensus assignment step in q2-feature-classifier. See this topic for more details on this diagnosis and some potential fixes:

So you have two fixes:

  1. Fix the reference taxonomy to contain multiple levels, as described in that topic
  2. Maybe you don't want to have multiple levels? Maybe you cannot? You could always set --p-maxaccepts 1 so that BLAST just returns the top hit... not what I recommend but just clarifying that's how to do that if that's what you are after.

I personally recommend the classify-consensus-vsearch in q2-feature-classifier instead of BLAST... among other reasons it has a top hits only option that could be put to good use with your custom database.

Probably because Geneious is performing top-hit BLAST instead of the consensus step that q2-feature-classifier has implemented.

Give that a spin and let me know how it goes!

1 Like