| 1 |
Description: run Debian SPAdes wrapper |
| 2 |
Debian's /usr/bin/spades.py is not a Python script, but a wrapper |
| 3 |
around a common executable only provided for compatibility reasons. |
| 4 |
Ariba is trying to execute it explicitly as a Python script. |
| 5 |
This patch just calls the executable without forcing it through the |
| 6 |
Python interpreter. |
| 7 |
Author: Sascha Steinbiss <[email protected]> |
| 8 |
Last-Update: 2020-06-30 |
| 9 |
--- a/ariba/assembly.py |
| 10 |
+++ b/ariba/assembly.py |
| 11 |
@@ -140,7 +140,7 @@ |
| 12 |
spades_out_seq_base = "contigs.fasta" |
| 13 |
else: |
| 14 |
raise ValueError("Unknown spades_mode value: {}".format(self.spades_mode)) |
| 15 |
- asm_cmd = ['python3', spades_exe, "-t", str(self.threads), "--pe1-1", self.reads1, "--pe1-2", self.reads2, "-o", self.assembler_dir] + \ |
| 16 |
+ asm_cmd = [spades_exe, "-t", str(self.threads), "--pe1-1", self.reads1, "--pe1-2", self.reads2, "-o", self.assembler_dir] + \ |
| 17 |
spades_options |
| 18 |
asm_ok,err = common.syscall(asm_cmd, verbose=True, verbose_filehandle=self.log_fh, shell=False, allow_fail=True) |
| 19 |
if not asm_ok: |