Skip to content

Commit

Permalink
fix: initial subprocess command, removed quotes around config.yaml path
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysnewell committed Aug 4, 2023
1 parent d3bd50c commit b63a6b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aviary/modules/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,14 @@ def run_workflow(self, cores=16, profile=None,
cmd = (
"snakemake --snakefile {snakefile} --directory {working_dir} "
"{jobs} --rerun-incomplete {args} {rerun_triggers} "
"--configfile '{config_file}' --nolock "
"--configfile {config_file} --nolock "
"{profile} {conda_frontend} {resources} --use-conda {conda_prefix} "
"{dryrun} {notemp} "
"{target_rule}"
).format(
snakefile=get_snakefile(),
working_dir=self.output,
jobs="--cores{}".format(cores) if cores is not None else "",
jobs="--cores {}".format(cores) if cores is not None else "--jobs 1",
config_file=self.config,
profile="" if (profile is None) else "--profile {}".format(profile),
dryrun="--dryrun" if dryrun else "",
Expand All @@ -402,9 +402,9 @@ def run_workflow(self, cores=16, profile=None,

try:
logging.info("Executing: %s" % cmd)
subprocess.run(cmd.split(), stderr=subprocess.PIPE) #shell=True)
subprocess.run(cmd.split())
logging.info("Finished: %s" % workflow)
logging.info("stderr: %s" % cmd.stderr)
# logging.info("stderr: %s" % cmd_output)
except subprocess.CalledProcessError as e:
# removes the traceback
logging.critical(e)
Expand Down

0 comments on commit b63a6b4

Please sign in to comment.