Skip to content

Commit

Permalink
Merge pull request #5 from cpauvert/fix-4-with-conda
Browse files Browse the repository at this point in the history
ensure conda execution is enabled in configuration
  • Loading branch information
beardymcjohnface authored Jul 8, 2024
2 parents 57e6dda + 58be741 commit 3da98f7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def append_config_block(nf_config="nextflow.config", scope=None, **kwargs):
with open(nf_config, "a") as f:
f.write(scope.rstrip() + "{" + "\n")
for k in kwargs:
f.write(f"{k} = {kwargs[k]}\n")
f.write(f"\t{k} = {kwargs[k]}\n")
f.write("}\n")


Expand Down Expand Up @@ -138,6 +138,9 @@ def run_nextflow(

# Use conda
if use_conda:
append_config_block(
scope="conda", enabled='"true"'
)
if conda_frontend == "mamba":
append_config_block(
scope="conda", useMamba='"true"', cacheDir=f'"{conda_prefix}"'
Expand Down

0 comments on commit 3da98f7

Please sign in to comment.