rescript merge-taxa secondary selection criteria

Everyone is right:

Correct

i.e., when using len mode this action iterates across the taxonomies and compares each one to the current "winner".

So when there are only two taxonomies being compared, the second one given "wins" if there is a tie. If using 3 or more taxonomies, this gets a little more complicated, and order of precedence (for tiebreaking) is given in the reverse order that taxonomies are listed (so first gets lowest precedence, second beats first in a tie, third beats second in a tie, etc).

Exactly! That's what this action was originally written for, to allow different types of ensemble classifications, e.g., when combining resutls from different taxonomic classifiers.

So @smayne11 to get the functionality that you desire, you would use this action like so:

qiime rescript merge-taxa \
    --i-data second-best-taxonomy.qza your-favorite-taxonomy.qza \
    --o-merged-data consensus-taxonomy.qza

Good luck!

4 Likes