File: fix-tests-and-binary-names-and-options.patch

package info (click to toggle)
q2-phylogeny 2022.11.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 840 kB
  • sloc: python: 3,574; makefile: 26; sh: 13
file content (80 lines) | stat: -rw-r--r-- 3,366 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Description: Following things:
 - Renamed binaries according to the names available in our distribution
 - Disabled one failing test
 - Remove tests which test SSE or AVX extensions of raxml
 - Modify a test to use Standard raxml rather than SSE3
Author: Nilesh Patra <nilesh@debian.org>
Forwarded: not-needed
Last-Update: 2021-07-18
--- a/q2_phylogeny/tests/test_raxml.py
+++ b/q2_phylogeny/tests/test_raxml.py
@@ -88,37 +88,13 @@
         self.assertTrue('raxmlHPC' in str(obs_stand_1[0]))
         self.assertTrue(len(obs_stand_1) == 1)
 
-        obs_sse3_1 = _set_raxml_version(raxml_version='SSE3', n_threads=1)
-        self.assertTrue('raxmlHPC-SSE3' in str(obs_sse3_1[0]))
-        self.assertTrue(len(obs_sse3_1) == 1)
-
-        obs_avx2_1 = _set_raxml_version(raxml_version='AVX2', n_threads=1)
-        self.assertTrue('raxmlHPC-AVX2' in str(obs_avx2_1[0]))
-        self.assertTrue(len(obs_avx2_1) == 1)
-
-        obs_stand_4 = _set_raxml_version(raxml_version='Standard',
-                                         n_threads=4)
-        self.assertTrue('raxmlHPC-PTHREADS' in str(obs_stand_4[0]))
-        self.assertTrue('4' in str(obs_stand_4[1]))
-        self.assertTrue(len(obs_stand_4) == 2)
-
-        obs_sse3_4 = _set_raxml_version(raxml_version='SSE3', n_threads=4)
-        self.assertTrue('raxmlHPC-PTHREADS-SSE3' in str(obs_sse3_4[0]))
-        self.assertTrue('4' in str(obs_sse3_4[1]))
-        self.assertTrue(len(obs_sse3_4) == 2)
-
-        obs_avx2_4 = _set_raxml_version(raxml_version='AVX2', n_threads=4)
-        self.assertTrue('raxmlHPC-PTHREADS-AVX2' in str(obs_avx2_4[0]))
-        self.assertTrue('4' in str(obs_avx2_4[1]))
-        self.assertTrue(len(obs_avx2_4) == 2)
-
     def test_raxml_version(self):
         # Test that an output tree is made when invoking threads.
         input_fp = self.get_data_path('aligned-dna-sequences-3.fasta')
         input_sequences = AlignedDNAFASTAFormat(input_fp, mode='r')
 
         with redirected_stdio(stderr=os.devnull):
-            obs = raxml(input_sequences, raxml_version='SSE3')
+            obs = raxml(input_sequences, raxml_version='Standard')
         obs_tree = skbio.TreeNode.read(str(obs), convert_underscores=False)
 
         # load the resulting tree and test that it has the right number of
--- a/q2_phylogeny/_fasttree.py
+++ b/q2_phylogeny/_fasttree.py
@@ -42,7 +42,7 @@
             env.pop('OMP_NUM_THREADS', 0)
         else:
             env.update({'OMP_NUM_THREADS': str(n_threads)})
-        cmd = ['FastTreeMP']
+        cmd = ['fasttreeMP']
 
     cmd.extend(['-quote', '-nt', aligned_fp])
     run_command(cmd, tree_fp, env=env)
--- a/q2_phylogeny/_iqtree.py
+++ b/q2_phylogeny/_iqtree.py
@@ -75,7 +75,7 @@
             '-pre', str(run_prefix)]
 
     if n_cores == 'auto' and n_cores_max:
-        cmd += ['-nt', 'AUTO', '--threads-max', '%i' % n_cores_max]
+        cmd += ['-nt', 'AUTO', '-ntmax', '%i' % n_cores_max]
     elif n_cores == 'auto' and n_cores_max is None:
         cmd += ['-nt', 'AUTO']
     else:
@@ -217,7 +217,7 @@
             '-pre', str(run_prefix)]
 
     if n_cores == 'auto' and n_cores_max:
-        cmd += ['-nt', 'AUTO', '--threads-max', '%i' % n_cores_max]
+        cmd += ['-nt', 'AUTO', '-ntmax', '%i' % n_cores_max]
     elif n_cores == 'auto' and n_cores_max is None:
         cmd += ['-nt', 'AUTO']
     else: