Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a couple of functions in
humann/search/translated.py
to enable a "2-pass" approach to DIAMOND:--sensitive
mode on all query sequences that were unaligned from the first passThe user can enable this mode versus the standard "1-pass" diamond alignment method by including
--two-pass
in the diamond options (eg.,--diamond-options "--two-pass --query-cover 80 --id 50 --max-target-seqs 1"
).The approach was recommended by Benjamin Buchfink, the developer of DIAMOND. I've used this approach with humann2 for quite a while now, and it has helped speed up the translated search part of humann. I don't want to continue "patching" newer versions of humann3 as they are released; hence this PR.