Skip to content

Commit

Permalink
set executable for subprocess.run
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Jun 25, 2024
1 parent 09d6ee5 commit 2027c3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wort/blueprints/compute/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import shutil
from io import BytesIO
import shlex
from subprocess import run, CalledProcessError
from tempfile import NamedTemporaryFile

Expand Down Expand Up @@ -104,10 +105,11 @@ def compute_genomes(accession, path, name):
"sourmash compute -k 21,31,51 "
" --scaled 1000 "
" --track-abundance "
" --name {name:q} "
" --name {shlex.quote(name)} "
f" -o {f.name} "
f" <(curl {path})",
f" <(curl {path} | zcat)",
shell=True, capture_output=True, check=True,
executable="/bin/bash",
)
except CalledProcessError as e:
# We ignore SIGPIPE, since it is informational (and makes sense,
Expand Down

0 comments on commit 2027c3d

Please sign in to comment.