Skip to content

Commit

Permalink
removed sdm option and mount output
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Nov 8, 2024
1 parent c183f0f commit 684cb22
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions mess/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
msg_box,
)

workflow_basedir = os.path.join(os.path.dirname(os.path.realpath(__file__)))


def snake_base(rel_path):
"""Get the filepath to a Snaketool system file (relative to __main__.py)"""
Expand Down Expand Up @@ -107,9 +105,14 @@ def run_snakemake(
snake_command += ["--sdm conda"]

if sdm == "apptainer":
snake_command += [
f"--sdm apptainer --apptainer-args '-B {workflow_basedir}:{workflow_basedir}'"
snake_command += ["--sdm apptainer --apptainer-args"]
paths = [
os.path.join(os.path.dirname(os.path.realpath(__file__))),
os.path.abspath(snake_config["args"]["output"]),
]
args = " ".join([f"-B {path}:{path}" for path in paths])

snake_command += [f"'{args}'"]

# add snakemake default args
if snake_default:
Expand Down Expand Up @@ -175,13 +178,6 @@ def common_options(func):
click.option(
"--threads", help="Number of threads to use", default=1, show_default=True
),
click.option(
"--sdm",
type=click.Choice(["apptainer", "conda"]),
default="apptainer",
help="Software deplolyment method",
show_default=True,
),
click.option(
"--profile",
default=None,
Expand Down

0 comments on commit 684cb22

Please sign in to comment.