File: vsearch.patch

package info (click to toggle)
q2-feature-classifier 2020.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,412 kB
  • sloc: python: 3,323; makefile: 30; sh: 13
file content (20 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: fix failure to invoke vsearch --search_exact
Author: Étienne Mollier <etienne.mollier@mailoo.org>
Forwarded: https://github.com/qiime2/q2-feature-classifier/pull/170
Last-Update: 2021-01-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- q2-feature-classifier.orig/q2_feature_classifier/_vsearch.py
+++ q2-feature-classifier/q2_feature_classifier/_vsearch.py
@@ -50,6 +50,11 @@
            '--threads', str(threads)]
     if search_exact:
         cmd[1] = '--search_exact'
+        # These options are not compatible with a --search_exact command.
+        for pop_arg in ['--id', '--maxaccepts', '--maxrejects', '--query_cov']:
+            pop_idx = cmd.index(pop_arg)
+            cmd.pop(pop_idx)
+            cmd.pop(pop_idx)
     if top_hits_only:
         cmd.append('--top_hits_only')
     if output_no_hits: